Pull the docker container
docker pull ghcr.io/kalanaratnayake/jetson-ros-pytorch:1.13-humble-core-r32.7.1
Build the docker container
docker buildx build --load --platform linux/arm64 -f ros-pytorch-images/r3271.humblecore_pytorch113.Dockerfile -t jetson-ros-pytorch:1.13-humble-core-r32.7.1 .
Start the docker container
docker run --rm -it --runtime nvidia --network host --gpus all -e DISPLAY ghcr.io/kalanaratnayake/jetson-ros-pytorch:1.13-humble-core-r32.7.1 bash
Run the following commands inside the docker container to confirm that the container is working properly.
python3 -c "import torch; print(torch.__version__)"
python3 -c "import torchvision; print(torchvision.__version__)"
Run the following commands inside the docker container to confirm that the container is working properly.
ros2 run demo_nodes_cpp talker
Run the following commands on another instance of ros container or another Computer/Jetson device installed with ROS humble to check connectivity over host network and discoverability (while the above command is running).
ros2 run demo_nodes_py listener