Closed HTLife closed 4 months ago
Hi @HTLife The recommended configuration for ROS1 wrapper 2.3.2 is librealsense 2.50.0 or 2.51.1, and firmware 5.13.0.50.
Your current configuration (librealsense 2.55.1 and firmware 5.16.0.1) is not designed for use with the 2.3.2 wrapper, though some RealSense ROS users do manage to achieve a working setup with this configuration even though it should not work.
Does the error still occur if you edut your launch file to set the initial_reset parameter to true to reset the camera at launch?
@MartyG-RealSense Thanks for your quick response. I've tried to add
<arg name="initial_reset" default="true"/>
to my launch file, but the same hwmon command 0x75
still appear.
Therefore, I'll try to follow your instructions to set all the versions back.
Still have no luck. I got the following this time.
hwmon command 0x75( 0 1df 0 27f ) failed (response -6= Invalid parameter)
[ WARN] [1721214182.291414752]: Hardware Notification:Depth stream start failure,1.72121e+12,Error,Hardware Error
Updated version:
/usr/local/lib$ ls
cmake librealsense2-gl.so.2.51.1 pkgconfig
libfw.a librealsense2.so python2.7
libglfw3.a librealsense2.so.2.51 python3.8
librealsense2-gl.so librealsense2.so.2.51.1 python3.9
librealsense2-gl.so.2.51 librealsense-file.a
Is there a Depth Stream Start Failure if you perform an RGBD launch instead of using rs_camera.launch, please?
To perform an RGBD launch in the 2.3.2 ROS1 wrapper, the steps are:
sudo apt-get install ros-noetic-rgbd-launch
roslaunch realsense2_camera rs_rgbd.launch
@MartyG-RealSense Thanks for the support.
roslaunch realsense2_camera rs_rgbd.launch
works for me.
Let's me find out what causing the issue in my launch file compare with rs_rgbd.launch
.
I'm pleased to hear that rs_rgbd.launch
works for you!
I identified the cause of the error message by comparing the rs_rgbd.launch file with my custom launch file. The rs_rgbd.launch file sets the depth_fps to 30 or "-1", while I attempted to set it to 5 fps. This should be acceptable, as the realsense_viewer also supports a 5 fps setting. It appears there might be a hardware control issue involving librealsense, the ROS wrapper, and the firmware.
As I can at least run the camera with 30 fps, I consider the issue as partially solved. So I'll close this issue. Thanks for your support.
It's excellent news that you found a solution.
When setting a custom configuration, you need to configure three factors - stream width, stream height and FPS. If only one factor, such as FPS, is configured and the others are left as -1 then the custom configuration is deemed invalid and the default stream settings are applied instead.
For example, you could set 5 FPS by adding the commands below to the roslaunch instruction for each stream type that you are using.
depth_width:=640 depth_height:=480 depth_fps:=5 color_width:=640 color_height:=480 color_fps:=5
Issue Description
Got the following Invalid Value error message when running ros wrapper
therefore, the rviz also cannot visualize the image from realsense. I also tried to upgrade the firmware to 5.16.0.1 (since the Min FW Version that showing in RealSense Viewer v.2.55.1 is 5.16.0.1), but still get the same error code) (The realsense_viewer can view the image from realsense with no problem.)
It seems likely that there is a version mismatch between the firmware and librealsense, causing the hardware operation code to be incompatible. I tried searching for related issues but couldn't find clear information on the correct version pair.
If I need to run on Ubuntu 20 and ROS Noetic, what are the recommended firmware and component versions to ensure compatibility?
The log of ros error
```bash ... logging to /home/dev/.ros/log/8e131896-4358-11ef-9de1-b48c9d1c5705/roslaunch-ubuntu-4936.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. started roslaunch server http://ubuntu:33357/ SUMMARY ======== PARAMETERS * /camera/realsense2_camera/accel_fps: 0 * /camera/realsense2_camera/accel_frame_id: camera_accel_frame * /camera/realsense2_camera/accel_optical_frame_id: camera_accel_opti... * /camera/realsense2_camera/align_depth: True * /camera/realsense2_camera/aligned_depth_to_color_frame_id: camera_aligned_de... * /camera/realsense2_camera/aligned_depth_to_fisheye1_frame_id: camera_aligned_de... * /camera/realsense2_camera/aligned_depth_to_fisheye2_frame_id: camera_aligned_de... * /camera/realsense2_camera/aligned_depth_to_fisheye_frame_id: camera_aligned_de... * /camera/realsense2_camera/aligned_depth_to_infra1_frame_id: camera_aligned_de... * /camera/realsense2_camera/aligned_depth_to_infra2_frame_id: camera_aligned_de... * /camera/realsense2_camera/allow_no_texture_points: True * /camera/realsense2_camera/base_frame_id: camera_link * /camera/realsense2_camera/calib_odom_file: * /camera/realsense2_camera/clip_distance: -1.0 * /camera/realsense2_camera/color_fps: 5 * /camera/realsense2_camera/color_frame_id: camera_color_frame * /camera/realsense2_camera/color_height: 480 * /camera/realsense2_camera/color_optical_frame_id: camera_color_opti... * /camera/realsense2_camera/color_width: 640 * /camera/realsense2_camera/confidence_fps: 30 * /camera/realsense2_camera/confidence_height: 480 * /camera/realsense2_camera/confidence_width: 640 * /camera/realsense2_camera/depth_fps: 5 * /camera/realsense2_camera/depth_frame_id: camera_depth_frame * /camera/realsense2_camera/depth_height: 480 * /camera/realsense2_camera/depth_optical_frame_id: camera_depth_opti... * /camera/realsense2_camera/depth_width: 640 * /camera/realsense2_camera/device_type: * /camera/realsense2_camera/enable_accel: False * /camera/realsense2_camera/enable_color: True * /camera/realsense2_camera/enable_confidence: True * /camera/realsense2_camera/enable_depth: True * /camera/realsense2_camera/enable_fisheye1: False * /camera/realsense2_camera/enable_fisheye2: False * /camera/realsense2_camera/enable_fisheye: False * /camera/realsense2_camera/enable_gyro: False * /camera/realsense2_camera/enable_infra1: False * /camera/realsense2_camera/enable_infra2: False * /camera/realsense2_camera/enable_infra: False * /camera/realsense2_camera/enable_pointcloud: True * /camera/realsense2_camera/enable_pose: False * /camera/realsense2_camera/enable_sync: True * /camera/realsense2_camera/filters: * /camera/realsense2_camera/fisheye1_frame_id: camera_fisheye1_f... * /camera/realsense2_camera/fisheye1_optical_frame_id: camera_fisheye1_o... * /camera/realsense2_camera/fisheye2_frame_id: camera_fisheye2_f... * /camera/realsense2_camera/fisheye2_optical_frame_id: camera_fisheye2_o... * /camera/realsense2_camera/fisheye_fps: 30 * /camera/realsense2_camera/fisheye_frame_id: camera_fisheye_frame * /camera/realsense2_camera/fisheye_height: 0 * /camera/realsense2_camera/fisheye_optical_frame_id: camera_fisheye_op... * /camera/realsense2_camera/fisheye_width: 0 * /camera/realsense2_camera/gyro_fps: 0 * /camera/realsense2_camera/gyro_frame_id: camera_gyro_frame * /camera/realsense2_camera/gyro_optical_frame_id: camera_gyro_optic... * /camera/realsense2_camera/imu_optical_frame_id: camera_imu_optica... * /camera/realsense2_camera/infra1_frame_id: camera_infra1_frame * /camera/realsense2_camera/infra1_optical_frame_id: camera_infra1_opt... * /camera/realsense2_camera/infra2_frame_id: camera_infra2_frame * /camera/realsense2_camera/infra2_optical_frame_id: camera_infra2_opt... * /camera/realsense2_camera/infra_fps: 30 * /camera/realsense2_camera/infra_height: 480 * /camera/realsense2_camera/infra_rgb: False * /camera/realsense2_camera/infra_width: 640 * /camera/realsense2_camera/initial_reset: False * /camera/realsense2_camera/json_file_path: /home/dev/catkin_... * /camera/realsense2_camera/linear_accel_cov: 0.01 * /camera/realsense2_camera/odom_frame_id: camera_odom_frame * /camera/realsense2_camera/ordered_pc: True * /camera/realsense2_camera/pointcloud_texture_index: 0 * /camera/realsense2_camera/pointcloud_texture_stream: RS2_STREAM_COLOR * /camera/realsense2_camera/pose_frame_id: camera_pose_frame * /camera/realsense2_camera/pose_optical_frame_id: camera_pose_optic... * /camera/realsense2_camera/publish_odom_tf: True * /camera/realsense2_camera/publish_tf: True * /camera/realsense2_camera/reconnect_timeout: 6.0 * /camera/realsense2_camera/rosbag_filename: * /camera/realsense2_camera/serial_no: * /camera/realsense2_camera/stereo_module/exposure/1: 7500 * /camera/realsense2_camera/stereo_module/exposure/2: 1 * /camera/realsense2_camera/stereo_module/gain/1: 16 * /camera/realsense2_camera/stereo_module/gain/2: 16 * /camera/realsense2_camera/tf_publish_rate: 0.0 * /camera/realsense2_camera/topic_odom_in: camera/odom_in * /camera/realsense2_camera/unite_imu_method: none * /camera/realsense2_camera/usb_port_id: * /camera/realsense2_camera/wait_for_device_timeout: -1.0 * /rosdistro: noetic * /rosversion: 1.16.0 NODES /camera/ realsense2_camera (nodelet/nodelet) realsense2_camera_manager (nodelet/nodelet) auto-starting new master process[master]: started with pid [4949] ROS_MASTER_URI=http://localhost:11311 setting /run_id to 8e131896-4358-11ef-9de1-b48c9d1c5705 process[rosout-1]: started with pid [4964] started core service [/rosout] process[camera/realsense2_camera_manager-2]: started with pid [4971] process[camera/realsense2_camera-3]: started with pid [4972] [ INFO] [1721123310.256966893]: Initializing nodelet with 6 worker threads. [ INFO] [1721123310.439881561]: RealSense ROS v2.3.2 [ INFO] [1721123310.439960507]: Built with LibRealSense v2.55.1 [ INFO] [1721123310.439999099]: Running with LibRealSense v2.55.1 [ INFO] [1721123310.472144323]: [ INFO] [1721123310.509972182]: Device with serial number 234322304887 was found. [ INFO] [1721123310.510062904]: Device with physical ID /sys/devices/platform/3610000.xhci/usb2/2-1/2-1.4/2-1.4:1.0/video4linux/video0 was found. [ INFO] [1721123310.510099065]: Device with name Intel RealSense D455 was found. [ INFO] [1721123310.510762790]: Device with port number 2-1.4 was found. [ INFO] [1721123310.510816487]: Device USB type: 3.2 [ INFO] [1721123310.513309174]: getParameters... [ INFO] [1721123310.593458484]: setupDevice... [ INFO] [1721123310.951903583]: JSON file is loaded! (/home/dev/catkin_ws/src/fork_vision_pc/ros/fork_perception_ai/config/realsense_high_accuracy.json) [ INFO] [1721123310.952440265]: ROS Node Namespace: camera [ INFO] [1721123310.952820177]: Device Name: Intel RealSense D455 [ INFO] [1721123310.953177144]: Device Serial No: 234322304887 [ INFO] [1721123310.953524094]: Device physical port: /sys/devices/platform/3610000.xhci/usb2/2-1/2-1.4/2-1.4:1.0/video4linux/video0 [ INFO] [1721123310.953860101]: Device FW version: 5.14.0 [ INFO] [1721123310.954225964]: Device Product ID: 0x0B5C [ INFO] [1721123310.954556850]: Enable PointCloud: On [ INFO] [1721123310.954881400]: Align Depth: On [ INFO] [1721123310.955238591]: Sync Mode: On [ INFO] [1721123310.955609734]: Device Sensors: [ INFO] [1721123310.967237669]: Stereo Module was found. [ INFO] [1721123310.976546551]: RGB Camera was found. [ INFO] [1721123310.977210595]: Motion Module was found. [ INFO] [1721123310.977592075]: (Confidence, 0) sensor isn't supported by current device! -- Skipping... [ INFO] [1721123310.978015475]: Add Filter: pointcloud [ INFO] [1721123310.981227568]: num_filters: 2 [ INFO] [1721123310.981597623]: Setting Dynamic reconfig parameters. [ WARN] [1721123311.108293232]: Param '/camera/rgb_camera/power_line_frequency' has value 3 that is not in the enum { {50Hz: 1} {60Hz: 2} {Disabled: 0} }. Removing this parameter from dynamic reconfigure options. [ INFO] [1721123311.140769533]: Done Setting Dynamic reconfig parameters. [ INFO] [1721123311.141586157]: depth stream is enabled - width: 640, height: 480, fps: 5, Format: Z16 [ INFO] [1721123311.142106999]: color stream is enabled - width: 640, height: 480, fps: 5, Format: RGB8 [ INFO] [1721123311.143203756]: setupPublishers... [ INFO] [1721123311.148391695]: Expected frequency for depth = 5.00000 [ INFO] [1721123311.200597174]: Expected frequency for color = 5.00000 [ INFO] [1721123311.235096138]: Expected frequency for aligned_depth_to_color = 5.00000 [ INFO] [1721123311.270664915]: setupStreams... [ INFO] [1721123311.296859240]: SELECTED BASE:Depth, 0 [ INFO] [1721123311.311888776]: RealSense Node Is Up! [ WARN] [1721123311.798879119]: 16/07 05:48:32,424 ERROR [281471775093104] (rs.cpp:237) [rs2_set_region_of_interest( sensor:0xffff480395b0, min_x:0, min_y:0, max_x:639, max_y:479 ) Invalid Value] hwmon command 0x75( 0 1df 0 27f ) failed (response -6= Invalid parameter) [ERROR] [1721123312.425306402]: hwmon command 0x75( 0 1df 0 27f ) failed (response -6= Invalid parameter) ```The roslaunch setting
also tried to add
also got same error code.