ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
ament_lint_common
is a package released into most (if not all) ROS 2 distros, including Foxy:
https://github.com/ros/rosdistro/blob/768978dabf304bdac04b7f1cc01f1022af76097d/dashing/distribution.yaml#L130
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