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

Revision history [back]

I have had it working for my robot by using

#include <gazebo/ModelState.h>

I think there is also an extra '_msgs' and 's' in your function, so try it as

void ModelStatecallback(const gazebo::ModelState::ConstPtr& msg)
{
}

Check out the ROS Gazebo and ModelState definition pages for more details.