Closed ghost closed 4 months ago
Hi @GiladRobee Not all parameters that are configurable are included in the launch file. They can be configured in the launch instruction though. For example:
ros2 launch realsense2_camera rs_launch.py depth_module.depth_profile:=1280x720x30 depth_module.depth_profile:=1280x720x30 rgb_camera.color_profile:=1280x720x30
thank you for the quick reply, I will check it as soon as possible. Isn't it a bit counter-productive not having those parameters appear in the launch file or the ros2 param list? How can I find the full list of parameters that I can send?
You can obtain the full list of parameters with the command ros2 param list
https://github.com/IntelRealSense/realsense-ros?tab=readme-ov-file#available-parameters
So rgb_camera is not in the ros2 param list for some reason. Also I just tried the launch command that you sent me and got:
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-06-19-09-24-25-595599-ubuntu-96150
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [realsense2_camera_node-1]: process started with pid [96151]
[realsense2_camera_node-1] [INFO] [1718789065.836746874] [camera.camera]: RealSense ROS v4.54.1
[realsense2_camera_node-1] [INFO] [1718789065.836933595] [camera.camera]: Built with LibRealSense v2.55.1
[realsense2_camera_node-1] [INFO] [1718789065.836965755] [camera.camera]: Running with LibRealSense v2.55.1
[realsense2_camera_node-1] [INFO] [1718789066.605714529] [camera.camera]: Device with serial number 123622270351 was found.
[realsense2_camera_node-1]
[realsense2_camera_node-1] [INFO] [1718789066.605901282] [camera.camera]: Device with physical ID 2-3.2.1-4 was found.
[realsense2_camera_node-1] [INFO] [1718789066.605934306] [camera.camera]: Device with name Intel RealSense D405 was found.
[realsense2_camera_node-1] [INFO] [1718789066.606245349] [camera.camera]: Device with port number 2-3.2.1 was found.
[realsense2_camera_node-1] [INFO] [1718789066.606346853] [camera.camera]: Device USB type: 3.2
[realsense2_camera_node-1] [INFO] [1718789066.606502342] [camera.camera]: getParameters...
[realsense2_camera_node-1] [INFO] [1718789066.608004080] [camera.camera]: JSON file is not provided
[realsense2_camera_node-1] [INFO] [1718789066.608079313] [camera.camera]: Device Name: Intel RealSense D405
[realsense2_camera_node-1] [INFO] [1718789066.608102673] [camera.camera]: Device Serial No: 123622270351
[realsense2_camera_node-1] [INFO] [1718789066.608119601] [camera.camera]: Device physical port: 2-3.2.1-4
[realsense2_camera_node-1] [INFO] [1718789066.608132209] [camera.camera]: Device FW version: 5.16.0.1
[realsense2_camera_node-1] [INFO] [1718789066.608144689] [camera.camera]: Device Product ID: 0x0B5B
[realsense2_camera_node-1] [INFO] [1718789066.608155377] [camera.camera]: Sync Mode: Off
[realsense2_camera_node-1] [WARN] [1718789072.431210345] [camera.camera]: re-enable the stream for the change to take effect.
[realsense2_camera_node-1] [WARN] [1718789072.432513938] [camera.camera]: re-enable the stream for the change to take effect.
[realsense2_camera_node-1] [INFO] [1718789072.451933621] [camera.camera]: Stopping Sensor: Depth Module
[realsense2_camera_node-1] [INFO] [1718789072.853218188] [camera.camera]: Starting Sensor: Depth Module
[realsense2_camera_node-1] [INFO] [1718789072.966540585] [camera.camera]: Open profile: stream_type: Color(0), Format: RGB8, Width: 848, Height: 480, FPS: 30
[realsense2_camera_node-1] [INFO] [1718789072.966682538] [camera.camera]: Open profile: stream_type: Depth(0), Format: Z16, Width: 1280, Height: 720, FPS: 30
[realsense2_camera_node-1] 19/06 09:24:32,967 WARNING [281472745203936] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] [INFO] [1718789072.970476004] [camera.camera]: RealSense Node Is Up!
[realsense2_camera_node-1] 19/06 09:24:32,978 WARNING [281472745203936] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
so the rgb camera didn't change its default profile
The D405 can be a bit more awkward to configure sometimes in regard to the color stream because it does not have a separate RGB sensor and instead obtains its RGB from the depth sensor and passes the data through an Image Signal Processor (ISP) chip to generate the final RGB image.
If you plan to align depth and color together and are concerned about RGB having a different resolution, librealsense's align processing block should automatically calculate for differences between resolutions when align_depth.enable is true. Or you could use 848x480 for the depth profile so that the resolutions match.
I need the RGB stream on a high res for a separate task. But thank you very much for your help
Hi @GiladRobee Do you require further assistance with this case, please? Thanks!
hi @MartyG-RealSense if you confirm that there is no way for me to control the RGB profile with the D405 then you can close this issue. Thank you very much for the assistance
A RealSense ROS user at https://github.com/IntelRealSense/realsense-ros/issues/3090#issuecomment-2105521061 set the color profile for D405 by making an edit to the rs_launch.py
launch file.
Case closed due to no further comments received.
Issue Description
this is my current launch file:
and I can not manage to change the RGB profile to 1280X720X(5/10/15/30)
in the read me I see that there is a namespace- rgb_camera in the params but I don't see it in the launch file or in
ros2 param list
which gives me:I would appreciate all help