Gazebo Tutorial: Build Error

asked 2019-10-17 11:22:53 -0600

updated 2019-10-18 02:18:08 -0600

kumpakri gravatar image

Hi,

I'm trying to build the set_velocity plugin from here and when I build and make, this is the error I get:

[ 50%] Building CXX object CMakeFiles/SetJointVelocityPlugin.dir/src/SetJointVelocityPlugin.cpp.o
In file included from /home/psuresh/set_velocity/examples/set_vel_plugin/src/SetLinkVelocityPlugin.cpp:21:0:
/home/psuresh/set_velocity/examples/set_vel_plugin/include/ode_perfect_velocity.hh: In member function ‘void gazebo::OdePerfectVelocityController::Start(gazebo::physics::LinkPtr, gazebo::math::Vector3, gazebo::math::Vector3, double, double)’:
/home/psuresh/set_velocity/examples/set_vel_plugin/include/ode_perfect_velocity.hh:36:36: error: ‘class gazebo::physics::Model’ has no member named ‘CreateLink’
         this->phantomLink = model->CreateLink("__perfect_phantom_link__");
                                    ^
CMakeFiles/SetLinkVelocityPlugin.dir/build.make:62: recipe for target 'CMakeFiles/SetLinkVelocityPlugin.dir/src/SetLinkVelocityPlugin.cpp.o' failed
make[2]: *** [CMakeFiles/SetLinkVelocityPlugin.dir/src/SetLinkVelocityPlugin.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/SetLinkVelocityPlugin.dir/all' failed
make[1]: *** [CMakeFiles/SetLinkVelocityPlugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs...

[ 75%] Linking CXX shared library libSetJointVelocityPlugin.so

[ 75%] Built target SetJointVelocityPlugin

Makefile:83: recipe for target 'all' failed

make: *** [all] Error 2

Kindly help. I need to implement this plugin in my project asap. Thanks

edit retag flag offensive close merge delete