Hi I’m having an issue running the docker image for ROS2 Galactic on my Jetson Nano 4GB, Model B01, running Jetpack-SDK-4.6.3 (after upgrading from 4.6.1)
Here are the steps taken so far:
- create directory
- create shell script docker_run.sh and paste the template
- modify to use the right tag: CONTAINER_IMAGE=“dustynv/ros:galactic-pytorch-l4t-r32.7.1”
- save and make it executable: chmod 755 docker_run.sh
- run it ./docker_run.sh
This is the output it creates:
administrator@rosnet:~/Documents/docker_container/ros2_galactic_pytorch$ ./docker_run.sh
xhost: unable to open display “”
xauth: file /home/administrator/.Xauthority does not exist
xauth: (argv):1: unable to read any entries from file “(stdin)”
chmod: changing permissions of ‘/tmp/.docker.xauth’: Operation not permitted
sourcing /opt/ros/galactic/install/setup.bash
ROS_ROOT /opt/ros/galactic
ROS_DISTRO galactic
root@rosnet:/# exit
exit
What am I missing? I didn’t see the usual download and fetch happening…
Then I tried to copy the repository and build from source instead, with following result:
Before I started I did ensure to add the defualt entry in /etc/docker/daemon.json as per instructions!>
administrator@rosnet:~/Documents/git_clones/jetson-containers$ sudo ./scripts/docker_build_ros.sh --distro galactic --package desktop --with-pytorch
ARCH: aarch64
reading L4T version from /etc/nv_tegra_release
L4T BSP Version: L4T R32.7.3
l4t-base image: nvcr.io/nvidia/l4t-base:r32.7.3
selecting OpenCV for L4T R32.7.3…
OPENCV_URL=https://nvidia.box.com/shared/static/5v89u6g5rb62fpz4lh0rz531ajo2t5ef.gz
OPENCV_DEB=OpenCV-4.5.0-aarch64.tar.gz
ROS_DISTRO: galactic
ROS_PACKAGE: desktop
WITH_PYTORCH: onBuilding container ros:galactic-desktop-l4t-r32.7.3
BASE_IMAGE=nvcr.io/nvidia/l4t-base:r32.7.3Building ros:galactic-desktop-l4t-r32.7.3 container…
Sending build context to Docker daemon 174.1kB
[WARNING]: Empty continuation line found in:
RUN mkdir -p ${ROS_ROOT}/src && cd ${ROS_ROOT} && rosinstall_generator --deps --rosdistro ${ROS_DISTRO} ${ROS_PKG} launch_xml launch_yaml launch_testing launch_testing_ament_cmake demo_nodes_cpp demo_nodes_py example_interfaces camera_calibration_parsers camera_info_manager cv_bridge v4l2_camera vision_opencv vision_msgs image_geometry image_pipeline image_transport compressed_image_transport compressed_depth_image_transport > ros2.${ROS_DISTRO}.${ROS_PKG}.rosinstall && cat ros2.${ROS_DISTRO}.${ROS_PKG}.rosinstall && vcs import src < ros2.${ROS_DISTRO}.${ROS_PKG}.rosinstall && rm -r ${ROS_ROOT}/src/ament_cmake && git -C ${ROS_ROOT}/src/ clone GitHub - ament/ament_cmake: Supporting CMake packages for working with ament -b ${ROS_DISTRO} && apt-get update && cd ${ROS_ROOT} && rosdep init && rosdep update && rosdep install -y --ignore-src --from-paths src --rosdistro ${ROS_DISTRO} --skip-keys “libopencv-dev libopencv-contrib-dev libopencv-imgproc-dev python-opencv python3-opencv” && rm -rf /var/lib/apt/lists/* && apt-get clean && colcon build --merge-install --cmake-args -DCMAKE_BUILD_TYPE=Release && rm -rf ${ROS_ROOT}/src && rm -rf ${ROS_ROOT}/logs && rm -rf ${ROS_ROOT}/build && rm ${ROS_ROOT}/*.rosinstall
[WARNING]: Empty continuation lines will become errors in a future release.
Step 1/35 : ARG BASE_IMAGE=nvcr.io/nvidia/l4t-base:r32.5.0
Step 2/35 : FROM ${BASE_IMAGE}
manifest for nvcr.io/nvidia/l4t-base:r32.7.3 not found: manifest unknown: manifest unknown
Seems like my update from r32.7.1 to r32.7.3 was pre-mature and it messed everything up.
Any idea what I could do from here?