Skip to content

Commit

Permalink
ros2 bridge: rep105 only for map->base_link tfs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jan 21, 2025
1 parent 74290f4 commit 9434f03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mola_bridge_ros2/src/BridgeROS2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,11 @@ void BridgeROS2::timerPubLocalization()

geometry_msgs::msg::TransformStamped tfStmp;
tfStmp.header.stamp = myNow(l.timestamp);
if (params_.publish_localization_following_rep105)

// Follow REP105 only if we are publishing "map" -> "base_link" poses.
if (params_.publish_localization_following_rep105 &&
l.child_frame == params_.base_link_frame &&
l.reference_frame == params_.reference_frame)
{
// Recompute:
mrpt::poses::CPose3D T_base_to_odom;
Expand Down

0 comments on commit 9434f03

Please sign in to comment.