realsense-ros: topic /aligned_depth_to_color/image_raw is missing
Ubuntu 22.04 with 5.15.0-71-generic kernel Ros Humble librealsense2 debian package installed from Intel servers ROS2 wrapper Option 1: Install debian package from ROS servers
Now when I run as following, the /aligned_depth_to_color/image_raw topic is not available
ros2 run realsense2_camera realsense2_camera_node --ros-args --remap align_depth:=true
ros2 run realsense2_camera realsense2_camera_node --ros-args --remap align_depth:=true
[INFO] [1683288144.395186983] [camera]: RealSense ROS v4.51.1
[INFO] [1683288144.395513731] [camera]: Built with LibRealSense v2.51.1
[INFO] [1683288144.395571944] [camera]: Running with LibRealSense v2.51.1
[INFO] [1683288144.412555439] [camera]: Device with serial number 829212071017 was found.
[INFO] [1683288144.412598650] [camera]: Device with physical ID /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/video4linux/video8 was found.
[INFO] [1683288144.412609056] [camera]: Device with name Intel RealSense D435 was found.
[INFO] [1683288144.412841731] [camera]: Device with port number 2-3 was found.
[INFO] [1683288144.412867225] [camera]: Device USB type: 3.2
[INFO] [1683288144.414596457] [camera]: getParameters...
[INFO] [1683288144.414812349] [camera]: JSON file is not provided
[INFO] [1683288144.414826454] [camera]: Device Name: Intel RealSense D435
[INFO] [1683288144.414834761] [camera]: Device Serial No: 829212071017
[INFO] [1683288144.414842061] [camera]: Device physical port: /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/video4linux/video8
[INFO] [1683288144.414849525] [camera]: Device FW version: 05.14.00.00
[INFO] [1683288144.414857121] [camera]: Device Product ID: 0x0B07
[INFO] [1683288144.414864407] [camera]: Sync Mode: Off
[ERROR] [1683288144.426225983] [camera]: An error has occurred while calling sensor for: depth_module.auto_exposure_limit:hwmon command 0x80( 5 0 0 0 ) failed (response -7= HW not ready)
[ERROR] [1683288144.426542130] [camera]: An error has occurred while calling sensor for: depth_module.auto_gain_limit:hwmon command 0x80( 5 0 0 0 ) failed (response -7= HW not ready)
[ERROR] [1683288144.426848664] [camera]: An error has occurred while calling sensor for: depth_module.auto_exposure_limit_toggle:hwmon command 0x80( 5 0 0 0 ) failed (response -7= HW not ready)
[ERROR] [1683288144.427154809] [camera]: An error has occurred while calling sensor for: depth_module.auto_gain_limit_toggle:hwmon command 0x80( 5 0 0 0 ) failed (response -7= HW not ready)
[INFO] [1683288144.446846623] [camera]: Stopping Sensor: Stereo Module
[INFO] [1683288144.450432576] [camera]: Starting Sensor: Stereo Module
[INFO] [1683288144.464215260] [camera]: Open profile: stream_type: Infra(1), Format: Y8, Width: 848, Height: 480, FPS: 30
[INFO] [1683288144.464278053] [camera]: Open profile: stream_type: Infra(2), Format: Y8, Width: 848, Height: 480, FPS: 30
[INFO] [1683288144.464289105] [camera]: Open profile: stream_type: Depth(0), Format: Z16, Width: 848, Height: 480, FPS: 30
[INFO] [1683288144.464484809] [camera]: Stopping Sensor: RGB Camera
[INFO] [1683288144.522361847] [camera]: Starting Sensor: RGB Camera
[INFO] [1683288144.524914776] [camera]: Open profile: stream_type: Color(0), Format: RGB8, Width: 640, Height: 480, FPS: 30
[INFO] [1683288144.525411612] [camera]: RealSense Node Is Up!
[WARN] [1683288144.583592212] [camera]:
ros2 topic list
/color/camera_info
/color/image_raw
/color/metadata
/depth/camera_info
/depth/image_rect_raw
/depth/metadata
/extrinsics/depth_to_color
/extrinsics/depth_to_infra1
/extrinsics/depth_to_infra2
/imu
/infra1/camera_info
/infra1/image_rect_raw
/infra1/metadata
/infra2/camera_info
/infra2/image_rect_raw
/infra2/metadata
/parameter_events
/rosout
/tf_static
As shown above aligned_depth_to_color is not listed
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 19
Please next try align_depth.enable:=true instead of align_depth:=true as that is the parameter name in the rs_launch.py file.
https://github.com/IntelRealSense/realsense-ros/blob/ros2-development/realsense2_camera/launch/rs_launch.py#L54
It’s excellent to hear that adding .enable worked for you!
For ros2 run, you could try align_depth.enable with -p instead of --remap.
ros2 run realsense2_camera realsense2_camera_node --ros-args -p align_depth.enable:=true
As you suggest, I will close the case. Thanks very much for the update about your success!