plugin not getting built
from the tutorial: http://gazebosim.org/tutorials?tut=set_velocity
after running "cmake .." by running "make"
I am getting the following error:
srikarsiddarth@onetruth:~/Downloads/set_vel_plugin/build$ make
[ 50%] Built target SetJointVelocityPlugin
[ 75%] Building CXX object CMakeFiles/SetLinkVelocityPlugin.dir/src/SetLinkVelocityPlugin.cpp.o
In file included from /home/srikarsiddarth/Downloads/set_vel_plugin/src/SetLinkVelocityPlugin.cpp:21:0:
/home/srikarsiddarth/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/srikarsiddarth/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
how to fix this?
Asked by kodplayer on 2020-04-23 03:02:35 UTC
Answers
I usually get similar errors when I do not include the respective libraries in the header file/source code.
In your case #include <gazebo/physics/physics.hh>
. Might that be?
Asked by kumpakri on 2020-04-27 06:46:56 UTC
Comments
Btw. to my knowledge this question does not qualify as a wiki question. This is a specific question for a specific problem seeking a specific and objective answer. There is no discussion to be expected for this question. Just straightforward problem solving.
Asked by kumpakri on 2020-04-27 06:54:53 UTC