Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

GetName() has not been declared

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() ?

GetName() has not been declared

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() ?

GetName() has not been declareddeclared Gazebo 8

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() GetName() ?

GetName() has not been declared Gazebo 8

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);
node->Init(_parent->Name());

Why isn't being found GetName() ?

GetName() has not been declared Gazebo 8

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:

node->Init(_parent->Name());
node->Init(_parent->GetName());

Why isn't being found GetName() ?

GetName() has not been declared Gazebo 8

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:

node->Init(_parent->GetName());

Why isn't being found GetName() ?