Gazebo | Ignition | Community
Ask Your Question

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

asked 2020-07-07 01:01:31 -0600

doubleJ gravatar image

updated 2020-07-07 01:42:48 -0600


I'm following this tutorial:

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/
/home/jjy/gazebo_plugin_tutorial/ In member function ‘virtual void gazebo::Factory::Load(gazebo::physics::WorldPtr, sdf::ElementPtr)’:
/home/jjy/gazebo_plugin_tutorial/ error: ‘class gazebo::physics::World’ has no member named ‘Name’

What caused this error and how can I fix it?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-07-07 04:17:51 -0600

kumpakri gravatar image

It is GetName()in gazebo 7. You need to follow the documentation for the right gazebo version. http://osrf-distributions.s3.amazonaw...

edit flag offensive delete link more


Thank you very much for your answer. Can I ask you one more question? After fixing the problem and following the tutorial, I tried 'Run Gazebo' part, but gazebo suddenly closed with following message:

Warning [] Converting a deprecated SDF source[data-string]

What caused this error and how can I fix it?

doubleJ gravatar imagedoubleJ ( 2020-07-07 04:52:52 -0600 )edit

I don't know. Try to put a debug prints throughout your code to atleast narrow down where the problem occurs. In Gazebo plugin you can use gazebo message output stream

gzmsg << "your message\n";
kumpakri gravatar imagekumpakri ( 2020-07-07 08:22:57 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-07-07 01:01:31 -0600

Seen: 150 times

Last updated: Jul 07 '20