mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 09:47:46 +08:00
Updated ros-pkg for RTAB-Map 0.8.0
Moved all nodelets and rviz plugins in "rtabmap_ros" namespace instead of "rtabmap" Refactored rtabmap_ros messages (added convenient conversion methods in rtabmap_ros/MsgConversion.h) Added noise filtering parameters for map_assembler node Added variance parameter for map_optimizer node Odometry nodes publish covariance matrices in odometry messages. Publish rtambap_ros::OdomInfo topic too.
This commit is contained in:
@@ -60,14 +60,14 @@ public:
|
||||
odomFrameId_ = msg->header.frame_id;
|
||||
}
|
||||
tf::StampedTransform t;
|
||||
rtabmap::Transform pose = rtabmap::transformFromPoseMsg(msg->pose.pose);
|
||||
rtabmap::Transform pose = rtabmap_ros::transformFromPoseMsg(msg->pose.pose);
|
||||
if(pose.isNull())
|
||||
{
|
||||
ROS_WARN("Odometry received is null! Cannot send tf...");
|
||||
}
|
||||
else
|
||||
{
|
||||
rtabmap::transformToTF(pose, t);
|
||||
rtabmap_ros::transformToTF(pose, t);
|
||||
tfBroadcaster_.sendTransform(tf::StampedTransform (t, msg->header.stamp, odomFrameId_, frameId_));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user