jetson-containers
jetson-containers copied to clipboard
I met an error message when I execute 'rosdep install -i --from-path src --rosdistro foxy -y'
Hello, @dusty-nv
Thank you for good materials. I met an error message when I execute 'rosdep install -i --from-path src --rosdistro foxy -y'
ros2 tutorial url : https://docs.ros.org/en/foxy/Tutorials/Beginner-Client-Libraries/Writing-A-Simple-Cpp-Publisher-And-Subscriber.html
root@manager-desktop:~/robot_ws# rosdep install -i --from-path src --rosdistro foxy -y ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: rqt_example: No definition of [rqt_py_common] for OS version [bionic] testbot_description: No definition of [rviz2] for OS version [bionic] root@manager-desktop:~/robot_ws#
Could you tell me how to resolve this issue?
Thank you.
Hi @leeyunhome, when rosdep tries to install dependencies, it will look for the package here and find how to install it. For example, in your example rosdep would try to install ros-foxy-rqt and ros-foxy-rviz. It seems like it does not find them in the available apt repos, it might be because you are missing apt update or because they are not available for your architecture. You can manually search for them using apt update && apt search rviz2 and see if they are available
There aren't ROS Foxy apt packages available for 18.04 (bionic). The ROS Foxy distro that's in these containers is built from source. Normally you would use the --skip-keys argument to rosdep to skip these packages like here.
Anyways, from the tutorial:
You likely already have the rclcpp and std_msgs packages installed as part of your ROS 2 system. It’s good practice to run rosdep in the root of your workspace (dev_ws) to check for missing dependencies before building:
So anyways, I think you may just be able to skip this step.