question about tutorial "Setting Velocity on Joints and Links"

asked 2019-08-22 09:22:08 -0500

Lays gravatar image

updated 2019-08-22 21:10:09 -0500

hi friends. ubuntu 16 + gazebo 7, I am folowing the tutorial "Setting Velocity on Joints and Links"

I download the source files in here, the cmake is ok, but make is wrong, it said: "class gazebo::physics::Model’ has no member named ‘CreateLink’", full:

> In file included from /home/mw/Downloads/set_vel_plugin/src/SetLinkVelocityPlugin.cpp:21:0:
/home/mw/Downloads/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/mw/Downloads/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
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

so what is the problem? thanks

edit retag flag offensive close merge delete

Comments

Have you included the Model header file in your project?

kumpakri gravatar imagekumpakri ( 2019-08-23 06:39:43 -0500 )edit