Did ros-kinetic-gazebo-ros-control package release?
Hi, I am trying to control my robot in the gazebo. But after following the tutorial, I get warning
Controller Spawner couldn't find the expected controller_manager ROS interface.
which is very similar to this answer. After tracking back, I find that I did not have "libgazeboroscontrol.so" file in my system. So I guess it is because I did not install ros-kinetic-gazebo-ros-control as instructed in the gazebo website. But when I try to type
sudo apt-get install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control
I get this message
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ros-kinetic-gazebo-ros-control
The gazeboroscontrol package for kinectic doesn't exist. I think that is why I don't have "libgazeboroscontrol.so" file in my system. How could I install ros-kinetic-gazebo-ros-control? Or does anyone know where my initial bug is?
Thanks in advance.
Asked by DKWatson on 2016-06-01 12:38:34 UTC
Answers
I also encountered this - as a workaround I cloned the source into my project until it's added (it should be already but you can see the last commit message for gazebo_ros_control
was about deleting CATKIN_IGNORE, so I think it just missed some sort of "submission deadline" or something?).
In project src directory;
git clone -b kinetic-devel https://github.com/ros-simulation/gazebo_ros_pkgs.git
That will clone all the packages (which doesn't really matter - and in fact may be more stable since all the packages would be of the same revision), but it adds to the build time and it's only temporary so I used git sparse checkout to have only the relevant package;
cd gazebo_ros_pkgs
git config core.sparsecheckout true
echo gazebo_ros_control/ >> .git/info/sparse-checkout
git checkout
rosdep install --from-paths . -i -y
Then just catkin_make
like normal etc.
Asked by Infinita on 2016-06-02 04:36:16 UTC
Comments
Thank you Infinita! But then then libgazebo_ros_control.so is installed in home/user/catkin_ws/devel/lib, instead of in opt/ros/kinetic/lib. And I concern that the gazebo plugin cannot find this file because it is not in the right position. Should we copy the file back to opt/ros/kinetic/lib
Asked by DKWatson on 2016-06-02 14:43:14 UTC
Or redirect the filename in the gazebo plugin?
Asked by DKWatson on 2016-06-02 14:43:42 UTC
It shouldn't be a problem as long as the package (rospack find gazebo_ros_control
to check) is in your ROS path.
After you build, source your project like normal (source devel/setup.bash
) and run gazebo from the same environment (gazebo
).
Asked by Infinita on 2016-06-02 21:11:44 UTC
I see, Thank you very much, infinita.
Asked by DKWatson on 2016-06-04 23:12:35 UTC
Hi , after trying the commands, I got this message and did not find the gazebo_ros_control: ERROR: the following rosdeps failed to install apt: command [apt-get install -y ros-kinetic-hardware-interface] failed
But surprisingly, the direct install comand worked after i tried it again: sudo apt-get install ros-kinetic-gazebo-ros-control
Asked by kodplayer on 2020-04-21 07:37:20 UTC
Comments