Calculate the global robot position after initialpose has been set

asked 2022-07-23 08:50:13 -0500

kashif99 gravatar image

I have a physical robot. Using ROS2 galactic.

I am able to calculate the robot position by using the following two TF2 transforms: mapToOdom, odomToBaselink

Works fine.

But if I set initialPose of the robot. Now I am unable to calculate the robot position.

How do I calculate the robot position? How do I cater for the initialPose?

edit retag flag offensive close merge delete