Open richardsanqi opened 4 years ago
I believe you're talking about this tutorial:
http://gazebosim.org/tutorials?tut=set_velocity
You may be using an old Gazebo 7 version. That function was added on 7.1.0. Update your version as explained on this tutorial.
I believe you're talking about this tutorial:
http://gazebosim.org/tutorials?tut=set_velocity
You may be using an old Gazebo 7 version. That function was added on 7.1.0. Update your version as explained on this tutorial.
Thanks a lot.I just reinstall the GAZEBO,and this problem is sloved.But I use this command GAZEBO_PLUGIN_PATH=. gazebo --pause --verbose ../set_velocity.world
as tutorials,the model is loaded,but they don not move.In fact,I have no idea how to use this plugin.Although the tutorials give some code.I want to set my robot jointvelocity real-time by using this plugin.Do you have any program or example to set robot jointvelocity.Thanks!
I have a bit of hacky way of fixing this. I know it's old issue, but here it is for everyone else that might be googling. DISCLAIMER: The hacky part modifies configurations on your system, modify it only if you understand what can happen later.
Code in this repo is probably a bit old, and there's stuff in gazebo dependencies that changed. Since i need only joint velocity example, you can completely ignore all the errors from the link one. In case you need the link example - code is a bit too broken for me to fix it at the moment, so you're on your own.
To get the example to build, edit your gazebo's cmake config.
sudo nano /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake
find the line (mine was 62, but i believe it may vary) where it says set (GAZEBO_HAS_SIMBODY TRUE)
and change it to set (GAZEBO_HAS_SIMBODY FALSE)
then open the cmake-lists of the example (this repo)
nano /path/to/gazebo_tutorials/set_velocity/examples/set_vel_plugin/CMakeLists.txt
and remove the lines
add_library(SetLinkVelocityPlugin SHARED src/SetLinkVelocityPlugin.cpp)
target_link_libraries(SetLinkVelocityPlugin ${GAZEBO_LIBRARIES})
Save the CMakeLists.txt, clear the build cache from the build folder, and start the cmake command again. Voila.
EDIT: probably related to #151 and #145
I follow the gazebo tutorials,and use gazebo7.It seems cmake works without error,but when i use make ,the terminal get this error,ubuntu 16.06+ros kinetic