-
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
jetson orin AGX issues after upgrading to jetpack 6.0 #3185
Comments
Hi @Al-khattab Which model of RealSense camera do you have, please? |
hi @MartyG-RealSense thank you for the fast reply, |
Thanks very much for the additional information. When a RealSense camera equipped with an IMU (known as a HID device) is used with JetPack 6, a MIPI driver needs to be installed to add support for the IMU. This is because JetPack 6 does not have a component called hidraw. https://github.com/IntelRealSense/realsense_mipi_platform_driver If JetPack is downgraded to JP 5.13 then the MIPI driver does not have to be installed. If you require JetPack 6 then a way to keep JP6 whilst not having to install the MIPI driver is to build the librealsense SDK from source code with a build script using the libuvc backend procedure. https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md |
I have seen your other posts mentioning this issue and I also followed your suggestion when I build it with libuvc backend the realsense viewer works fine with no lag but the IMU issue persisted and the ros2 cannot detect the camera. regarding MIPI point, as far as I understand, I do not need a physical De-Serialize board, I just need to install the driver correct? also regarding jetpack 6, the only need for it to run ros2. |
A deserializer board is not needed when using the driver with a camera on a USB cable connection to add IMU support. Your ROS2 launch log indicates that the camera was successfully detected by the launch.
The problem that came after is that the warning control_transfer returned is generating continuously. This indicates a communication problem between the camera and computer. The problem is typically related to the USB system, either a glitch on the USB port or a problem with the cable. In the ROS wrapper, IMU data will not be published unless the IMU topics are enabled because they are disabled by default.
|
sorry for not elaborating properly, I have built sdk and lib multiple time with all methods which included libuvc backend which gave me the camera not detected error. also when I run the command
I get the same log [INFO] [launch]: All log files can be found below /home/orin/.ros/log/2024-08-19-12-32-47-147291-ubuntu-44601 |
Is there any difference if you reset the camera at launch with initial_reset:=true
If there is no difference, what happens if you launch the camera with ros2 run instead of ros2 launch?
|
there is no difference when I run it with initial_reset:=true and also got the same result using ros2 run
|
Let's next test whether the control_transfer returned problem is being caused by the RGB sensor by turning it off.
|
same result after running
|
If the problems started when updating to JetPack 6 because of a need to use ROS2, it should be possible to use ROS2 Humble with JetPack 5. JP6 was only released around May 2024 and Humble has been used by RealSense ROS users for a long time before that. |
to my knowledge, ROS2 humble needs Ubuntu 22 which is only available in JP6 which is the reason I updated, |
My research indicates that Humble can be compiled from source code in order to work with JetPack 5 BUT it should be installed within a Docker container. An example of this advice is at the Nvidia forum link below. The link below suggests some methods for installation. https://www.reddit.com/r/ROS/comments/14ipjm3/install_ros_2_humble_on_jetson_orin/ |
Hi @Al-khattab Do you require further assistance with this case, please? Thanks! |
Hi, I just wanted to update you on the satiation, I have managed to fix the issue after a while of tinkering. first I uninstalled all realsense SDK setup that was installed and removed the ROS-wrapper. then afterwards I followed your instructions to install MIPI driver, it took me a while to set it up but I managed to install it,
after reboot I run the realsense viewer and it worked properly, there were few small errors I needed to fix but I do not think it was related to the installation, I also installed the ros wrapper using both the apt installation and built it from source and both was working fine. |
thank you @MartyG-RealSense for your help, I will be using this installation to test then I am thinking of switching to docker for later development since jp6 is giving me a hard time with other parts of my system. |
Thanks so much @Al-khattab for the update and for sharing your solution in detail :) The latest librealsense version 2.56.1 that was recently released officially supports JetPack 6. A new ROS wrapper 4.56.1 for it has also been released. So it may be worth trying these versions in future to see whether they improve your JP6 situation. |
yeah saw the librealsense build, it is still a prelease so I will be waiting for the full release and try it, but for now I think the issue is solved so I will close the issue and if I have any updates I will update it here. |
You are very welcome. Thanks very much for the update! |
Issue Description
after upgrading my jetson orin to jetpack 6 to run ros2, I have faced lots of issues trying to get intelrealsense lib to work but I found this comment and after following it I was able to run intelrealsense lib with the viewer and ros, before the camera was not being detected, now I can detect the camera but the realsense viewer is very laggy and when I try to toggle the depth and rgb image at the same time, the viewer crashes same thing happen if I want to access the IMU data, it gives me the following error
messenger-libusb.cpp:42 - control_transfer returned error, index: 768, error: No such device, number: 19
same thing happen when I try to run a ros2 launch
ros2 launch realsense2_camera rs_launch.py
[INFO] [launch]: All log files can be found below /home/orin/.ros/log/2024-08-19-11-05-24-296827-ubuntu-34836
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [realsense2_camera_node-1]: process started with pid [34837]
[realsense2_camera_node-1] [INFO] [1724054724.620435210] [camera.camera]: RealSense ROS v4.55.1
[realsense2_camera_node-1] [INFO] [1724054724.620675109] [camera.camera]: Built with LibRealSense v2.55.1
[realsense2_camera_node-1] [INFO] [1724054724.620709508] [camera.camera]: Running with LibRealSense v2.55.1
[realsense2_camera_node-1] [INFO] [1724054725.166694988] [camera.camera]: Device with serial number 309122300620 was found.
[realsense2_camera_node-1]
[realsense2_camera_node-1] [INFO] [1724054725.167058405] [camera.camera]: Device with physical ID 2-3.2-5 was found.
[realsense2_camera_node-1] [INFO] [1724054725.167115747] [camera.camera]: Device with name Intel RealSense D456 was found.
[realsense2_camera_node-1] [INFO] [1724054725.168018962] [camera.camera]: Device with port number 2-3.2 was found.
[realsense2_camera_node-1] [INFO] [1724054725.168089105] [camera.camera]: Device USB type: 3.2
[realsense2_camera_node-1] [INFO] [1724054725.168411626] [camera.camera]: getParameters...
[realsense2_camera_node-1] [INFO] [1724054725.169655058] [camera.camera]: JSON file is not provided
[realsense2_camera_node-1] [INFO] [1724054725.169743952] [camera.camera]: Device Name: Intel RealSense D456
[realsense2_camera_node-1] [INFO] [1724054725.169790735] [camera.camera]: Device Serial No: 309122300620
[realsense2_camera_node-1] [INFO] [1724054725.169825103] [camera.camera]: Device physical port: 2-3.2-5
[realsense2_camera_node-1] [INFO] [1724054725.169855150] [camera.camera]: Device FW version: 5.16.0.1
[realsense2_camera_node-1] [INFO] [1724054725.169883566] [camera.camera]: Device Product ID: 0x0B5C
[realsense2_camera_node-1] [INFO] [1724054725.169908781] [camera.camera]: Sync Mode: Off
[realsense2_camera_node-1] [INFO] [1724054731.793848875] [camera.camera]: Set ROS param depth_module.depth_profile to default: 848x480x30
[realsense2_camera_node-1] [INFO] [1724054731.796133694] [camera.camera]: Set ROS param depth_module.infra_profile to default: 848x480x30
[realsense2_camera_node-1] [INFO] [1724054732.498495180] [camera.camera]: Set ROS param rgb_camera.color_profile to default: 1280x720x30
[realsense2_camera_node-1] [INFO] [1724054732.500167179] [camera.camera]: Set ROS param gyro_fps to default: 200
[realsense2_camera_node-1] [INFO] [1724054732.500283401] [camera.camera]: Set ROS param accel_fps to default: 100
[realsense2_camera_node-1] [INFO] [1724054732.507061957] [camera.camera]: Stopping Sensor: Depth Module
[realsense2_camera_node-1] [INFO] [1724054732.507375391] [camera.camera]: Stopping Sensor: RGB Camera
[realsense2_camera_node-1] [INFO] [1724054732.645334150] [camera.camera]: Starting Sensor: Depth Module
[realsense2_camera_node-1] [INFO] [1724054732.761228953] [camera.camera]: Open profile: stream_type: Depth(0), Format: Z16, Width: 848, Height: 480, FPS: 30
[realsense2_camera_node-1] 19/08 11:05:32,763 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,775 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,786 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,797 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,808 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,819 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,830 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,841 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,852 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,863 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:32,875 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] [INFO] [1724054732.887914875] [camera.camera]: Starting Sensor: RGB Camera
[realsense2_camera_node-1] [INFO] [1724054732.930307427] [camera.camera]: Open profile: stream_type: Color(0), Format: RGB8, Width: 1280, Height: 720, FPS: 30
[realsense2_camera_node-1] [INFO] [1724054732.943106571] [camera.camera]: RealSense Node Is Up!
[realsense2_camera_node-1] 19/08 11:05:33,282 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,293 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,304 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,315 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,326 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,337 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,348 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,359 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,370 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,381 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,392 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,403 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,414 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,425 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,436 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,447 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,458 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,468 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,479 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
[realsense2_camera_node-1] 19/08 11:05:33,490 WARNING [281472392751328] (messenger-libusb.cpp:42) control_transfer returned error, index: 768, error: Resource temporarily unavailable, number: 11
and also the camera detection issue happens if I do not export the the following path in the terminal
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
The text was updated successfully, but these errors were encountered: