Home | Tutorials | Wiki | Issues
Ask Your Question

how fix compilation problem

asked 2018-07-02 09:50:26 -0500

yash6911 gravatar image

Scanning dependencies of target factory [ 50%] Building CXX object CMakeFiles/factory.dir/factory.cc.o /home/user/gazebo_plugin_tutorial/factory.cc: In member function ‘virtual void

gazebo::Factory::Load(gazebo::physics::WorldPtr, sdf::ElementPtr)’: /home/user/gazebo_plugin_tutorial/factory.cc:49:27: error: ‘class gazebo::physics::World’ has no member named ‘Name’ node->Init(_parent->Name()); ^ CMakeFiles/factory.dir/build.make:62: recipe for target 'CMakeFiles/factory.dir/factory.cc.o' failed make[2]: * [CMakeFiles/factory.dir/factory.cc.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/factory.dir/all' failed make[1]: [CMakeFiles/factory.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: ** [all] Error 2

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-07-04 07:24:23 -0500

Raskkii gravatar image

What Gazebo version are you using? The Name() function was added in Gazebo 8 so if you have an earlier version you should replace the Name() function with GetName().

Source: http://gazebosim.org/api/dev/deprecat...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-07-02 09:50:26 -0500

Seen: 107 times

Last updated: Jul 04 '18