Revision history [back]

Hi,

While @smorad's answer helped , the mentioned topic (/gazebo/model_states) did not provide timing values. Also it provides the actual pose for all models and hence requiring additional filtering for finding the actual pose of the desired object.

If using Gazebo + ROS, the /ground_truth/state topic can be enabled in the URDF ( as seen here and here ) of the required ROS robot ( which is then converted to a Gazebo model in the SDF file), making it the required solution.

Hi,

While @smorad's answer helped , the mentioned topic (/gazebo/model_states) did not provide timing values. Also it provides the actual pose for all models and hence requiring additional filtering for finding the actual pose of the desired object.

If using Gazebo + ROS, the /ground_truth/state topic can be enabled in the URDF ( as seen here and here ) of the required ROS robot ( which is then converted to a Gazebo model in the generated SDF file), making it the required solution. solution.