Gazebo | Ignition | Community
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/ /home/user/gazebo_plugin_tutorial/ In member function ‘virtual void

gazebo::Factory::Load(gazebo::physics::WorldPtr, sdf::ElementPtr)’: /home/user/gazebo_plugin_tutorial/ 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/' failed make[2]: * [CMakeFiles/factory.dir/] 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().


edit flag offensive delete link more


Thanks to you, I solved the problem.

homey gravatar imagehomey ( 2020-05-07 01:29:21 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 186 times

Last updated: Jul 04 '18