-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
RealSense D455 / LibRealSense v2.48.0 / ROS2 / Ubuntu 20.02 / RPi 4b control_transfer error #2113
Comments
Hi @JHPHELAN As a starting point in investigating your case, I note from a section on page 6 of your kindly provided diagnostic documentation Intel.RealSense.Camera.Experience.pdf that you built the ROS2 wrapper first and then built librealsense secondly. It should be the other way around - librealsense should be built first and the ROS wrapper secondly. Also, if the ROS wrapper is built and then the librealsense version is subsequently updated, the ROS wrapper needs to be built again. I would also recommend avoiding performing different types of installation together on the same computer (such as Method 1 and Method 2, or building from packages and then building from source code on a subsequent attempt. You could end up with conflicts otherwise. It may be best to do a complete wipe and reinstall of the computer (including Ubuntu) and then reinstall Ubuntu, then librealsense from the Debian packages on Intel's Jetson instructions page, and then finally the ROS2 wrapper from source code. If it is not practical for you to reinstall Ubuntu then you could uninstall all librealsense related packages from the computer using the Ubuntu command below:
If librealsense is installed from source then going to the 'build' directory of the source code folder and running the CMake command below should remove it.
In the case of RealSense ROS wrapper installations built from source, I believe that deleting the whole catkin workspace folder catkin_ws should be sufficient to remove it. |
Hi @JHPHELAN Do you require further assistance with this case, please? Thanks! |
@MartyG-RealSense |
Thanks very much @JHPHELAN for the update - I look forward to your next report. Good luck! |
Hi @JHPHELAN Do you require further assistance with this case, please? Thanks! |
2021.10.28 RealSense Log.pdf |
If you built librealsense from source code via RSUSB backend then I would recommend using SDK 2.48.0 instead of 2.49.0 as it is important to match the ROS wrapper version closely with the librealsense SDK version listed in a particular wrapper version's release notes. ROS2 wrapper 3.2.2. matches to 2.48.0, and there is not a ROS wrapper for 2.49.0 (the next wrapper release at the time of writing this should be for forthcoming SDK version 2.50.0). I note though that you have already tested with 2.48.0. Looking at the contents of the ROS2 wrapper's d435i.yaml file in the link below, it looks as though it should function fine with a D455 (which is like a D435i with improved depth-color alignment and a faster 'global' shutter on the RGB sensor). There is not anything in this yaml file that is configuring settings incompatible with a D455. https://github.com/IntelRealSense/realsense-ros/blob/ros2/realsense2_camera/config/d435i.yaml In Try 4 it appears that there is a typing mistake in the yaml path that sets it to look for d435.yaml instead of d435i.yaml and so the launch cannot find the configuration file and applies the D455 camera model's default stream configuration instead (848x480 depth and 1280x720 color). |
@MartyG-RealSense |
2021.10.30.librealsense2.48.0FAIL.pdf |
@JHPHELAN I conducted extensive further research of your requirements. The closest fit that I could find though was a guide for installing ROS1 Noetic on a Pi 4 with a RealSense camera and Ubuntu 20.04. https://ramith.fyi/setting-up-raspberry-pi-4-with-ubuntu-20-04-ros-intel-realsense/ |
@MartyG-RealSense |
When the librealsense SDK and the ROS wrapper are installed separately, the correct build order is librealsense first and the ROS wrapper secondly after the librealsnse install is completed. Also, if the librealsense version is updated then the ROS wrapper must be built again. You are correct that ROS2 does not use dynamic_reconfigure. Instead you would use rqt with the parameter reconfigure plugin to watch and modify parameters in ROS2. |
@MartyG-RealSense
That's reassuring, but then what is "parameter reconfigure"? Is it included somewhere? |
As ROS is not dependent on librealsense - unlike the RealSense ROS wrapper - it will not matter if it is installed before or after librealsense. Parameter reconfigure in ROS2 works through rqt_reconfigure with a similar rosrun command to the one used in ROS1 to access dynamic_reconfigure (using ros2 run instead of rosrun). |
Ah, got it. Thanks!! |
Hi @JHPHELAN Do you require further assistance with this case, please? Thanks! |
@MartyG-RealSense |
Thanks very much @JHPHELAN for the update and the sharing of your test documentation with the RealSene community - I look forward to your next report! |
@MartyG-RealSense |
realsense2_camera install FAIL |
Can you confirm please that the dependencies are successfully installed? The commands to do so are issued in the log but there is no mention of what happened when each install command was input. https://github.com/IntelRealSense/realsense-ros/tree/ros2#step-4-install-dependencies On the second colcon attempt after the initial build fail and the installation of the colcon extensions, the colcon build instruction is repeated, suggesting that it was assumed that the dependencies were already successfully installed and so those install commands did not need to be input again. |
@MartyG-RealSense |
Does it make any difference if you separately install diagnostic_updater for Foxy using the command below: sudo apt-get install ros-foxy-diagnostic-updater |
@MartyG-RealSense Now, at least, I'm getting a different error:
JHP |
The newest ROS2 wrapper 3.2.3 matches to SDK 2.50.0 which was released in the past week. https://github.com/IntelRealSense/realsense-ros/releases/tag/3.2.3 If you have SDK 2.48.0 installed then it should be matched with ROS2 wrapper 3.2.2. |
LibRealSense 2.50 FAIL.pdf |
As you are using Raspberry Pi, this may be an Arm related issue, as the error fatal: You need to specify a tag name has previously been reported on Raspberry Pi and Jetson in #1220 (Pi) and #1110 (Jetson). Doronhi the RealSense ROS wrapper developer advised in the Jetson case to build from source with FORCE_RSUSB_BACKEND = true. I also suggested that course of action in the Pi case and it resolved that Pi user's tag error problem. |
@MartyG-RealSense @doronhi |
Hi @JHPHELAN Do you have an update about this case that you can provide, please? Thanks! |
Hi @JHPHELAN Do you require further assistance with this case, please? Thanks! |
@MartyG-RealSense |
Okay, thanks very much @JHPHELAN for the update! |
@MartyG-RealSense [2021.12.05 RealSense Camera errors.pdf](https://github.com/IntelRealSense/realsense-ros/files/7656641/2021.12.05.RealSense.Camera.errors.pdf |
Log messages about fisheye not being supported can be ignored. The fisheye sensors are only on the RealSense T265 Tracking Camera model and not 400 Series stereo depth models such as D455. There may be nothing that can be done to completely eliminate control_transfer returned warnings. Reducing resolution / FPS or disabling unneeded stream types (Infra 2, for example) may help to reduce the number of warnings that are generated. But if the topics are being published and visualised correctly then control_transfer returned warnings can usually be ignored. A good example of configuring a ROS2 roslaunch instruction is at #2068 (comment) - the Motion Module (IMU) related commands in the roslaunch featured in that link are enable_gyro:=true enable_accel:=true unite_imu_method:='linear_interpolation' |
Hi @JHPHELAN Do you require further assistance with this case, please? Thanks! |
@MartyG-RealSense |
Okay, thanks very much for the update. I look forward to your next report. Good luck! |
This case will be closed after a week from the time of writing this if we do not receive further comment. Thanks! |
Read "RealSense D455 FAIL..." for a synopsis of the error and system setup.
Read "...Experience" for a step-by-step log of the journey to see where I may have gone wrong.
Had a similar experience under Ubuntu 18.04 and ROS(1).
Search reveals others have had similar problems under other setups, eg Jetson NANO but no clear solution as suggested fixes failed to solve.
Will be happy to provide any other system information if you'll please give me the appropriate command line command to display it. I'm an experienced robotics hobbyist (NASA/JPL Open Source Rover) but certainly no expert. Any guidance would be appreciated!
JHP
Intel RealSense Camera Experience.pdf
RealSense D455 FAIL ROS2 Ubuntu2004.pdf
The text was updated successfully, but these errors were encountered: