Ask Your Question

No definition of [gazebo] for OS version [melodic]

asked 2020-08-31 11:11:03 -0600

joehays gravatar image

updated 2020-09-01 02:30:03 -0600

gvdhoorn gravatar image

I have a Ubuntu 18.04 docker image/container with ROS melodic and Gazebo 9 installed. When I try to run from the console within the docker container,

source devel/setup.bash && \
    rosdep fix-permissions && \
    rosdep update && \
    rosdep install --from-paths src --ignore-src -r --rosdistro=${ROS_DISTRO} -y --os=ubuntu:melodic

rosdep complains with,

[some package]: No definition of [gazebo] for OS version [melodic]

for a handful of packages.

I can successfully launch gazebo and load models but for some reason the 'rosdep install' step is failing to find gazebo.

Any ideas why?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-09-01 02:32:14 -0600

gvdhoorn gravatar image

updated 2020-09-01 02:33:11 -0600

I have a Ubuntu 18.04 docker image/container with ROS melodic

is this the official ros:melodic or osrf/ros:melodic-desktop-full container, or something custom?

In the end it doesn't really matter, as I believe the issue is this:

rosdep install --from-paths src --ignore-src -r --rosdistro=${ROS_DISTRO} -y --os=ubuntu:melodic

melodic is not a codename for any Ubuntu release, but a ROS version, so ubuntu:melodic is not a legal value for --os.

You probably want to use ubuntu:bionic instead.

But since your container is based on 18.04 already, there wouldn't seem to be a need to explicitly spec the --os.

edit flag offensive delete link more


<sheepish grin>

changing --os=ubuntu:melodic to --os=ubuntu:bionic seemed to do it.

Thanks for catching that!

BTW: this is a custom container.

joehays gravatar image joehays  ( 2020-09-01 10:48:15 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-08-31 11:11:03 -0600

Seen: 32 times

Last updated: Sep 01