ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi, the topic you need to subscribe to is listed here. In this case, you probably want to do something like below:

xyz_subscriber_ = node_handle_.subscribe("/gazebo/model_states", 10, ModelStatecallback);

hope this helps.