osrf / gazebo_tutorials

Tutorials for gazebo
http://gazebosim.org/tutorials
150 stars 72 forks source link

Error in Programmatic World Control tutorial using Gazebo v9 #88

Open osrf-migration opened 6 years ago

osrf-migration commented 6 years ago

Original report (archived issue) by Julian Uribe (Bitbucket: JulianUribe).


In http://gazebosim.org/tutorials?cat=write_plugin&tut=plugins_world_properties&ver=7%2B, the line

#!c++

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

in world_edit.cc should be

#!c++

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

in Gazebo v9

osrf-migration commented 6 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Thanks for ticketing the issue. Which tutorial are you talking about? Depending on the Gazebo version, the correct function could be Name or GetName

osrf-migration commented 6 years ago

Original comment by Julian Uribe (Bitbucket: JulianUribe).


Programmatic World Control: http://gazebosim.org/tutorials?cat=write_plugin&tut=plugins_world_properties&ver=7%2B. I see now that the problem is that there is no tutorial for Gazebo v9.

osrf-migration commented 6 years ago

Original comment by Julian Uribe (Bitbucket: JulianUribe).


osrf-migration commented 5 years ago

Original comment by Chao (Bitbucket: chaochen00).


similar error in for the factory example (http://gazebosim.org/tutorials?tut=plugins_world&cat=write_plugin)

~/gazebo_plugin_tutorial/factory.cc:49:27: error: ‘class gazebo::physics::World’ has no member named ‘Name’ node->Init(_parent->Name()); ^