ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Gazebo9 with ROS Kinetic

asked 2020-09-30 07:06:46 -0500

fenixkz gravatar image

updated 2022-10-30 09:29:10 -0500

lucasw gravatar image

I installed Gazebo 9 using ROS Kinetic and everything seems to be fine. I can launch it, however I cannot launch my robot in this gazebo.

It outputs:

[WARN] [1601466892.576848, 0.000000]: Controller Spawner couldn't find the expected controller_manager ROS interface.

Although, when I was using Gazebo7 everything was working. I installed all gazebo ros packages: ros-kinetic-gazebo9-ros-pkgs; ros-kinetic-gazebo9-ros-control; controller manager and etc.

I think the problem is that it wants me to use old packages that are connected to Gazebo7. However, as I use Gazebo9 I can only use new packages.

For example, when I wanted to install ros-kinetic-gazebo-ros-control, it showed: ros-kinetic-gazebo-ros-control : Depends: libgazebo7 but it is not going to be installed

Does any of you encountered this problem?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-10-02 04:30:57 -0500

Weasfas gravatar image

updated 2020-10-02 04:32:16 -0500

Hi @fenixkz,

A particular ROS distribution comes with a specific Gazebo version. Extracted from official resources: "Using a specific Gazebo version with ROS; Warning!: Using this option, you won't be able to use any ROS Ubuntu package related to Gazebo from ROS deb repository."

That means if you are working with ROS kinetic and you want Gazebo 9 you have two options to make it work:

  1. You update your enviroment to ROS Melodic that comes with Gazebo 9 with the Desktop installation.
  2. You continue working on Kinetic, install Gazebo 9 and clone and compile every Gazebo repository you need. E.g.: gazebo_ros_control, gazebo_plugins, etc. Since the apt method will not work for incompatibilities issues.

Hope this helps.

Regards.

edit flag offensive delete link more

Comments

This should not be necessary. The Gazebo repositories provide binary packages for all supported versions of Gazebo x ros_control. They're just named differently, such as ros-kinetic-gazebo9-ros-control.

I have a Xenial system running Gazebo 9 including ros_control here.

The only thing you need to be careful about is to never blindly run rosdep install -y .. on a workspace containing packages which explicitly depend on a specific version of Gazebo.

gvdhoorn gravatar image gvdhoorn  ( 2020-10-02 11:05:39 -0500 )edit

Question Tools

Stats

Asked: 2020-09-30 07:06:46 -0500

Seen: 193 times

Last updated: Oct 02 '20