I can not calibrate a USB Camera with the NVIDIA tutorial

I tried to calibrate a USB camera of my laptop with following this page.

I think I did the steps 1-8, however I encounter an warning and I could not proceed.

And I could not press Calibrate button.

An warning is this.

admin@7-ssd:/workspaces/isaac_ros-dev$ ros2 run camera_calibration cameracalibrator --size 6x8 --square 0.20 image:=/my_camera/image_raw camera:=/my_camera
[WARN] [1706578266.099333686] [rcl]: Found remap rule ‘image:=/my_camera/image_raw’. This syntax is deprecated. Use ‘–ros-args --remap image:=/my_camera/image_raw’ instead.
[WARN] [1706578266.099346440] [rcl]: Found remap rule ‘camera:=/my_camera’. This syntax is deprecated. Use ‘–ros-args --remap camera:=/my_camera’ instead.
[WARN] [1706578266.099625202] [rcl]: Found remap rule ‘image:=/my_camera/image_raw’. This syntax is deprecated. Use ‘–ros-args --remap image:=/my_camera/image_raw’ instead.
[WARN] [1706578266.099657082] [rcl]: Found remap rule ‘camera:=/my_camera’. This syntax is deprecated. Use ‘–ros-args --remap camera:=/my_camera’ instead.
Waiting for service camera/set_camera_info …
OK
Waiting for service left_camera/set_camera_info …
OK
Waiting for service right_camera/set_camera_info …
OK

(display:20436): dbind-WARNING **: 10:31:21.188: Couldn’t connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus_1: No such file or directory

But I think there is the file or directory in my Ubuntu22.04.

uma7@7-ssd:~/workspaces/isaac_ros-dev/src/isaac_ros_common$ ls -l /run/user/1000/at-spi/bus_1
srwxrwxrwx 1 uma7 uma7 0 Jan 30 10:14 /run/user/1000/at-spi/bus_1

Through the NVIDIA Docker, I can not connect to the file or directory.

uma7@7-ssd:~/workspaces/isaac_ros-dev/src/isaac_ros_common$ cd ${ISAAC_ROS_WS}/src/isaac_ros_common &&
./scripts/run_dev.sh
admin@7-ssd:/workspaces/isaac_ros-dev$ ls /run/user/1000/at-spi/bus_1
ls: cannot access ‘/run/user/1000/at-spi/bus_1’: No such file or directory

What should I do for this?
Thank you.

Thank you for your message.

I am reporting the same issue. I am forwarding your warning to the engineers.

Meanwhile, as such a workaround, you can add a line on the isaac_ros_common script

in: scripts/run_dev.sh at the end of the script the volume: -v /run/user/1000:/run/user/1000 \ after line -v /dev/*:/dev/* \

like the line below:

docker run -it --rm \
    --privileged \
    --network host \
    ${DOCKER_ARGS[@]} \
    -v $ISAAC_ROS_DEV_DIR:/workspaces/isaac_ros-dev \
    -v /dev/*:/dev/* \
    -v /run/user/1000:/run/user/1000 \
    -v /etc/localtime:/etc/localtime:ro \
    --name "$CONTAINER_NAME" \
    --runtime nvidia \
    --user="admin" \
    --entrypoint /usr/local/bin/scripts/workspace-entrypoint.sh \
    --workdir /workspaces/isaac_ros-dev \
    $@ \
    $BASE_NAME \
    /bin/bash

Hi, @Raffaello. Followed your advice, I could calibrate a check board. Thank you so much. I appreciate your help.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.