Gazebo | Ignition | Community
Ask Your Question

GetName() has not been declared Gazebo 9

asked 2017-06-06 16:56:51 -0500

michael1234 gravatar image

updated 2017-06-06 17:33:56 -0500

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’



Why isn't being found GetName() ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2017-06-06 16:58:29 -0500

michael1234 gravatar image

updated 2017-06-06 18:30:31 -0500

The tutorial isn't updated, GetName() is deprecated. You need to use Name().

edit flag offensive delete link more


@michael1234, are you sure you're using Gazebo 8? Do you mind checking by running "gazebo --version"?

chapulina gravatar imagechapulina ( 2017-06-06 17:17:17 -0500 )edit

My bad, I am using Gazebo 9. I got confused because when I tried to install: 'sudo apt-get install libgazebo9' it doesn't exist. Is it okay to have Gazebo 9 with libgazebo8?

michael1234 gravatar imagemichael1234 ( 2017-06-06 17:38:54 -0500 )edit

It would be safer to use matching versions. Thanks for all the reports about tutorials which need to be updated though, we should tackle these before the Gazebo 9 release in January. It would be great if you could ticket issues on Gazbeo tutorials: Even better if you make pull requests fixing the tutorials :)

chapulina gravatar imagechapulina ( 2017-06-06 17:53:04 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-06-06 16:56:51 -0500

Seen: 2,386 times

Last updated: Jun 06 '17