Scripts to install ROS2 (foxy) on the NVIDIA Jetson Development Kits
This is a simple script to install ROS2 on the NVIDIA Jetson Development Kits.
In order to run the script:
$ ./installROS2
The script roughly follows the 'Install ROS From Source' procedures from:
https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Development-Setup/
Much of the code is taken from the dusty-nv Github repository jetson-containers. The dusty-nv jetson-containers should be used to create a Docker container for the ROS2 on the Jetson. For more information:
Dockerfile.ros.foxy https://github.com/dusty-nv/jetson-containersCurrently the NVIDIA Jetsons run Ubuntu 18.04. ROS2 foxy requires Ubuntu 20.04. However, by providing some of the 20.04 equivalents, it is possible to run ROS2 foxy on the Jetsons. This script provides workarounds. Note that this is not exhaustive, you may run into situations where there are gaps, and certain packages may have issues.
The file ~/.bashrc is modified using this script; You will want to make sure that the modifications match your expectations. For example, you may have a preference for having the install/setup.bash in another place (i.e. /root/.bashrc).
January, 2021
- Tested on JetPack 4.5, L4T 32.5
- Tested on Jetson Xavier NX