Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

‘class gazebo::physics::World’ has no member named ‘Name’

Hello.

I'm following this tutorial: http://gazebosim.org/tutorials?tut=plugins_world.

When I doing 'compile' part, I got the following error message:

jjy@jjy-desktop:~/gazebo_plugin_tutorial/build$ make [ 33%] Built target model_push [ 66%] Built target hello_world [ 83%] Building CXX object CMakeFiles/factory.dir/factory.cc.o /home/jjy/gazebo_plugin_tutorial/factory.cc: In member function ‘virtual void gazebo::Factory::Load(gazebo::physics::WorldPtr, sdf::ElementPtr)’: /home/jjy/gazebo_plugin_tutorial/factory.cc:49:27: error: ‘class gazebo::physics::World’ has no member named ‘Name’ node->Init(_parent->Name());

What caused this error and how can I fix it?

‘class gazebo::physics::World’ has no member named ‘Name’

Hello.

I'm following this tutorial: http://gazebosim.org/tutorials?tut=plugins_world.

When I doing 'compile' part, I got the following error message:

jjy@jjy-desktop:~/gazebo_plugin_tutorial/build$ make
[ 33%] Built target model_push
[ 66%] Built target hello_world
[ 83%] Building CXX object CMakeFiles/factory.dir/factory.cc.o
/home/jjy/gazebo_plugin_tutorial/factory.cc: In member function ‘virtual void gazebo::Factory::Load(gazebo::physics::WorldPtr, sdf::ElementPtr)’:
/home/jjy/gazebo_plugin_tutorial/factory.cc:49:27: error: ‘class gazebo::physics::World’ has no member named ‘Name’
       node->Init(_parent->Name());

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

What caused this error and how can I fix it?