How To: Get ground truth pose data in ROS Gazebo

Sometimes you might need to get the robot’s actual position to compare your state estimation code. Copy paste the contents of this file (plugin_code) into your urdf description file. It should publish the ground truth to “/ground_truth/state”.

This tag basically tells gazebo to publish an additional topic using the p3d plugin.




Leave a Reply

Your email address will not be published. Required fields are marked *