Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not run the realsense camera #3211

Open
liujl12345 opened this issue Sep 24, 2024 · 11 comments
Open

can not run the realsense camera #3211

liujl12345 opened this issue Sep 24, 2024 · 11 comments
Labels

Comments

@liujl12345
Copy link

Hi! Here is a problem I can not solve.

camera Model : D405
ubuntu 20.04.6 LTS
kernel 5.15.0-122-generic
run command : ros2 run realsense2_camera realsense2_camera_node

when i try to run my camera after I've installed ROS Wrapper for Intel® RealSense™ cameras, by command 'sudo apt install ros-foxy-realsense2-*'
then error occured like below,

图片

what's wrong? or i have made mistake when installing the ROS Wrapper for Intel® RealSense™ cameras? someone helps me~(╥_╥)

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Sep 24, 2024

Hi @liujl12345 The log indicates that you have likely not made a mistake when installing the ROS wrapper. These red errors occur when using the 5.16.0.1 firmware with an older librealsense SDK version such as the 2.51.1 one that you are using, as this firmware is designed for use with librealsense 2.55.1.

If you need to use librealsense 2.51.1 because you have to use Foxy then downgrading your firmware version to 5.13.0.50 should make the red errors disappear.

Do not use an older firmware than 5.13.0.50, as this is the minimum firmware version that D405 is compatible with.

@liujl12345
Copy link
Author

If you need to use librealsense 2.51.1 because you have to use Foxy then downgrading your firmware version to 5.13.0.50 should make the red errors disappear.

Thanks a lot for your help!

it's my shame to say that i couldn't find a way to downgrade my firmware version. Can you help me?

@MartyG-RealSense
Copy link
Collaborator

You are very welcome!

If you have access to the realsense-viewer tool then instructions at IntelRealSense/librealsense#12599 (comment) explain how to downgrade the firmware to 5.13.0.50.

If you are not able to use realsense-viewer on your computer then you can also downgrade the firmware using the rs-fw-update tool once you have downloaded the .bin firmware file for 5.13.0.50 from the firmware releases page.

https://dev.intelrealsense.com/docs/firmware-releases-d400

https://github.com/IntelRealSense/librealsense/tree/master/tools/fw-update

image

@liujl12345
Copy link
Author

If you need to use librealsense 2.51.1 because you have to use Foxy then downgrading your firmware version to 5.13.0.50 should make the red errors disappear.

Hi!@MartyG-RealSense, Thanks to your help, i downgraded my firmware successfully. And the red error disappear.

But I still can not use the camera, the pictures show blow,
图片
图片

is there something i didn't install? what's wrong?

@MartyG-RealSense
Copy link
Collaborator

The rs_pointcloud_launch.py launch file is not part of the 4.51.1 wrapper. It was from an earlier and now obsolete 'ros2-legacy' RealSense ROS2 wrapper, which had wrapper versions starting with the number 3 instead of 4, such as '3.2.3'.

If you need to publish a pointcloud in the 4.51.1 wrapper then I recommend trying the launch command below.

ros2 launch realsense2_camera rs_launch.py pointcloud.enable:=true

@liujl12345
Copy link
Author

ros2 launch realsense2_camera rs_launch.py pointcloud.enable:=true

I tried the command 'ros2 launch realsense2_camera rs_launch.py pointcloud.enable:=true', the output as shown below,

图片

no errors, but it doesn't seem to be working.

@MartyG-RealSense
Copy link
Collaborator

Is there any difference if you set the value of pointcloud.stream_index_filter yourself? Its default value should be '0'.

ros2 launch realsense2_camera rs_launch.py pointcloud.enable:=true pointcloud.stream_index_filter:=0

@liujl12345
Copy link
Author

ros2 launch realsense2_camera rs_launch.py pointcloud.enable:=true pointcloud.stream_index_filter:=0

there is nothing changed. it seems that this command can not change the value of pointcloud.stream_index_filter

@liujl12345
Copy link
Author

liujl12345 commented Sep 27, 2024

there is nothing changed. it seems that this command can not change the value of pointcloud.stream_index_filter

Hi!@MartyG-RealSense But I can see the pointclouds after I launch the 'rviz', maybe this argument just doesn't matter.

After all these, my task is identify aruco codes with my realsense D405. Can you recommend a teaching article or an example for me according to my situation? It is best to have an example that is simple and quick to get started.Thank you very much!(≧∇≦)ノ

@MartyG-RealSense
Copy link
Collaborator

pal-robotics have an aruco_ros Aruco marker detecter at https://github.com/pal-robotics/aruco_ros that is compatible with ROS2 Humble.

@MartyG-RealSense
Copy link
Collaborator

Hi @liujl12345 Do you require further assistance with this case, please? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants