I am following this tutorial from the official Gazebo Web page.
When compiling the code using make, I get an error:
error: ‘gazebo::physics::WorldPtr {aka class boost::shared_ptr<gazebo::physics::World>}’ has no member named ‘Name’
Code:
sdf::ElementPtr model = sphereSDF.Root()->GetElement("model");
model->GetAttribute("name")->SetFromString("unique_sphere");
_parent->InsertModelSDF(sphereSDF);
Why isn't being found GetName() ?