Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

The problem is on this line:

gazebo::math::Pose pose = this->model->gazebo::physics::ModelState::GetPose();

The ModelState class is different from the Model class.

You probably want to use this->model->GetWorldPose()