mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-05 01:07:49 +08:00
ros-pkg: don't use anymore image sequence from the ros msg received (fixed ids bug when restarting rtabmap with an existing database)
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@925 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -125,7 +125,7 @@ void CoreWrapper::imageReceivedCallback(const sensor_msgs::ImageConstPtr & msg)
|
|||||||
{
|
{
|
||||||
//ROS_INFO("Received image.");
|
//ROS_INFO("Received image.");
|
||||||
cv_bridge::CvImageConstPtr ptr = cv_bridge::toCvShare(msg);
|
cv_bridge::CvImageConstPtr ptr = cv_bridge::toCvShare(msg);
|
||||||
rtabmap_->process(ptr->image, ptr->header.seq);
|
rtabmap_->process(ptr->image);
|
||||||
const Statistics & stats = rtabmap_->getStatistics();
|
const Statistics & stats = rtabmap_->getStatistics();
|
||||||
this->publishStats(stats);
|
this->publishStats(stats);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user