ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Like this: https://github.com/ros-planning/navigation2/blob/f510bbc4ed42274ce13bcc756758113e70b6145e/nav2_util/src/robot_utils.cpp
Use TF2 to get the pose from the map frame to your base frame, whatever you like.