mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 17:57:45 +08:00
point_cloud_assembler: fixed subscription warning still shown while receiving correctly the topics
This commit is contained in:
@@ -110,11 +110,12 @@ private:
|
||||
getName().c_str(),
|
||||
syncCloudSub_.getTopic().c_str(),
|
||||
syncOdomSub_.getTopic().c_str());
|
||||
|
||||
warningThread_ = new boost::thread(boost::bind(&PointCloudAssembler::warningLoop, this, subscribedTopicsMsg));
|
||||
}
|
||||
|
||||
cloudPub_ = nh.advertise<sensor_msgs::PointCloud2>("assembled_cloud", 1);
|
||||
|
||||
warningThread_ = new boost::thread(boost::bind(&PointCloudAssembler::warningLoop, this, subscribedTopicsMsg));
|
||||
NODELET_INFO("%s", subscribedTopicsMsg.c_str());
|
||||
}
|
||||
|
||||
@@ -122,6 +123,7 @@ private:
|
||||
const sensor_msgs::PointCloud2ConstPtr & cloudMsg,
|
||||
const nav_msgs::OdometryConstPtr & odomMsg)
|
||||
{
|
||||
callbackCalled_ = true;
|
||||
rtabmap::Transform odom = rtabmap_ros::transformFromPoseMsg(odomMsg->pose.pose);
|
||||
if(!odom.isNull())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user