mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
Explicitly use parent frame id for tags
This commit is contained in:
+3
-1
@@ -2177,7 +2177,9 @@ void CoreWrapper::tagDetectionsAsyncCallback(const apriltags2_ros::AprilTagDetec
|
||||
{
|
||||
if(tagDetections.detections[i].id.size() >= 1)
|
||||
{
|
||||
uInsert(tags_, std::make_pair(tagDetections.detections[i].id[0], tagDetections.detections[i].pose));
|
||||
geometry_msgs::PoseWithCovarianceStamped p = tagDetections.detections[i].pose;
|
||||
p.header.frame_id = tagDetections.header.frame_id; // make sure we pass frame_id of parent
|
||||
uInsert(tags_, std::make_pair(tagDetections.detections[i].id[0], p));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user