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

Cannot locate rosdep definition for [ament_lint_common]

asked 2021-02-16 22:46:30 -0500

jb01011 gravatar image

updated 2021-02-17 14:20:54 -0500

jacobperron gravatar image

I'm trying to clone a robot simulator from https://github.com/chapulina/dolly I'm using Ubuntu 20.04 Focal Fossa and ROS 2 on Foxy Fitzroy on a VM.

Once I try to install dependencies using the command: "rosdep install --from-paths src --ignore-src -r -y" I get the error

WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 3
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies (ROS distro is not set. Make sure ROS_DISTRO environment variable is set, or use --rosdistro option to specify the distro, e.g. --rosdistro indigo):
dolly_follow: Cannot locate rosdep definition for [ament_lint_common]
dolly_ignition: Cannot locate rosdep definition for [ament_lint_common]
dolly_gazebo: Cannot locate rosdep definition for [ament_lint_common]
dolly: Cannot locate rosdep definition for [ament_lint_common]
Continuing to install resolvable dependencies...
All required rosdeps installed successfully

I tried finding another package name for amen_lint_common from

https://github.com/ros/rosdistro/blob... but no luck.

Any help would be very appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-02-17 14:29:13 -0500

jacobperron gravatar image

ament_lint_common is a package released into most (if not all) ROS 2 distros, including Foxy:

https://github.com/ros/rosdistro/blob...

The hint is in the error message:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies (ROS distro is not set. Make sure ROS_DISTRO environment variable is set, or use --rosdistro option to specify the distro, e.g. --rosdistro indigo):

If you don't source a ROS installation before running rosdep, then the tool doesn't know for what distro it should be installing packages. Alternatively, you can give it a hint with the --rosdistro option. Try:

rosdep install --from-paths src --ignore-src -r -y --rosdistro foxy

Also, the warning WARNING: ROS_PYTHON_VERSION is unset. Defaulting to 3 is suspect. How did you install rosdep? You should make sure you've installed the python3 version of the package as described in the build instructions:

sudo apt install -y python3-rosdep
edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-02-16 22:25:05 -0500

Seen: 7,471 times

Last updated: Feb 17 '21