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

Error building gazebo_ros2_plugin [closed]

asked 2021-01-24 07:19:33 -0500

frave gravatar image

Hi guys, i'm quite new to ROS2 (didn't work with ROS1 neither) but made it through the tutorials. :-) I now want to start simulating wiht ros2_control and Gazebo. I was able to build the ros2_control repository and want now to install and use the gazebo_ros2_plugin. I cloned the repository and tried to build it as described here: https://github.com/ros-simulation/gazebo_ros2_control/blob/master/README.md

My problem is, that i get the following Error:

**ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
gazebo_ros2_control: Cannot locate rosdep definition for [joint_limits_interface]**

Any idea how i can resolve this?

Following the whole output of the docker cmd:

docker build -t gazebo_ros2_control .
Sending build context to Docker daemon  3.584kB
Step 1/8 : FROM osrf/ros:foxy-desktop
 ---> 0edb0156cf5d
Step 2/8 : RUN apt-get update   && apt-get upgrade -y   && apt-get clean
 ---> Using cache
 ---> 043309133ead
Step 3/8 : RUN apt-get update && apt-get install -q -y --no-install-recommends     dirmngr     gnupg2     lsb-release     python3-colcon-ros     && apt-get clean
 ---> Using cache
 ---> 03a6f584016e
Step 4/8 : RUN mkdir -p /home/ros2_control_ws/src     && cd /home/ros2_control_ws/src/     && git clone https://github.com/ros-simulation/gazebo_ros2_control     && git clone https://github.com/ros-controls/ros2_control     && git clone https://github.com/ros-controls/ros2_controllers     && rosdep update     && rosdep install --from-paths ./ -i -y --rosdistro foxy       --ignore-src
 ---> Running in 67b067776eb8
Cloning into 'gazebo_ros2_control'...
Cloning into 'ros2_control'...
Cloning into 'ros2_controllers'...
reading in sources list data from /etc/ros/rosdep/sources.list.d
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
Skip end-of-life distro "ardent"
Skip end-of-life distro "bouncy"
Skip end-of-life distro "crystal"
Add distro "dashing"
Skip end-of-life distro "eloquent"
Add distro "foxy"
Skip end-of-life distro "groovy"
Skip end-of-life distro "hydro"
Skip end-of-life distro "indigo"
Skip end-of-life distro "jade"
Add distro "kinetic"
Skip end-of-life distro "lunar"
Add distro "melodic"
Add distro "noetic"
Add distro "rolling"
updated cache in /root/.ros/rosdep/sources.cache
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
gazebo_ros2_control: Cannot locate rosdep definition for [joint_limits_interface]
The command '/bin/sh -c mkdir -p /home/ros2_control_ws/src     && cd /home/ros2_control_ws/src/     && git clone https://github.com/ros-simulation/gazebo_ros2_control     && git clone https://github.com/ros-controls/ros2_control     && git clone https://github.com/ros-controls/ros2_controllers     && rosdep update     && rosdep install --from-paths ./ -i -y --rosdistro foxy       --ignore-src' returned a non-zero code: 1
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by frave
close date 2021-01-24 12:01:40.925124

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-24 08:31:07 -0500

frave gravatar image

ok, found that it's a known issue.

edit flag offensive delete link more

Comments

Hi

Could you indicate where you found this issue solution ?

Best regards

Bigbaf gravatar image Bigbaf  ( 2021-02-16 06:52:50 -0500 )edit

Hi, the problem was mentioned in this issue: https://github.com/ros-simulation/gaz... and was addressed in the following PR: https://github.com/ros-simulation/gaz..., so it's already part of the master branch.

I build the ros2_control and the gazebo_ros2_control from source and was then able to run the examples. Kind regards

frave gravatar image frave  ( 2021-02-17 00:58:22 -0500 )edit

Question Tools

Stats

Asked: 2021-01-24 07:19:33 -0500

Seen: 344 times

Last updated: Jan 24 '21