Skip to content

Manually creating a ROS2 Foxy Docker image for the NVIDIA Jetson TX2 with Triton Pipeline

Fei Kuan edited this page Jan 29, 2023 · 2 revisions

Requirements

  • NVIDIA Jetson TX2 flashed to the correct version according to the guide on our Wiki
  • Ethernet Cable (or go through the hassle of connecting the TX2 to WiFi)

Important Note

This is intended to document the process of how the Docker image is created. This process should realistically be automated with Dockerfile.

Instructions (will be updated to contain the exact steps needed, only a rough idea now)

  1. sudo apt install libssl-dev qtbase5-dev libboost-all-devbuild cmake from source: https://github.com/Kitware/CMake/releases/download/v3.23.0-rc5/cmake-3.23.0-rc5.tar.gz
  2. run ./bootstrap.sh, after its done do make && sudo make install
  3. do exec bash to reload shell before next part
  4. go into /opt/rosy/foxy/src, clone the following repos (make sure to always use the foxy or foxy-devel branch, or ros2 branch if foxy branch isn't there):
https://github.com/ros-drivers/phidgets_drivers
https://github.com/ros-perception/image_common
https://github.com/ros-perception/vision_opencv
https://github.com/ros-perception/image_transport_plugins
https://github.com/ros-drivers/usb_cam
https://github.com/ros/diagnostics
https://github.com/CCNYRoboticsLab/imu_tools.git (touch rviz_imu_plugin/COLCON_IGNORE)
  1. run colcon build --symlink-install --merge-install again from /opt/ros/foxy to build new libraries
  2. setup usb rule for imu :sudo cp ~/colcon_ws/src/phidgets_drivers/phidgets_api/debian/udev /etc/udev/rules.d/99-phidgets.rules
  3. sudo udevadm control --reload-rules
  • Update the Kitware repo keyring if apt complains:
sudo rm /usr/share/keyrings/kitware-archive-keyring.gpg
sudo apt-get install kitware-archive-keyring

Clone this wiki locally