mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 17:57:45 +08:00
rtabmap: don't assert on invalid tags, just print error. Added "landmarks" topic (type geometry_msg::PoseArray) and added landmark ids in labels MarkerArray.
This commit is contained in:
@@ -1247,6 +1247,11 @@ rtabmap::Landmarks landmarksFromROS(
|
||||
rtabmap::Landmarks landmarks;
|
||||
for(std::map<int, geometry_msgs::PoseWithCovarianceStamped>::const_iterator iter=tags.begin(); iter!=tags.end(); ++iter)
|
||||
{
|
||||
if(iter->first <=0)
|
||||
{
|
||||
ROS_ERROR("Invalid landmark received! IDs should be > 0 (it is %d). Ignoring this landmark.", iter->first);
|
||||
continue;
|
||||
}
|
||||
rtabmap::Transform baseToCamera = rtabmap_ros::getTransform(
|
||||
frameId,
|
||||
iter->second.header.frame_id,
|
||||
|
||||
Reference in New Issue
Block a user