Closed Decwest closed 1 year ago
Hi @Decwest Whilst there is a known issue with slow FPS or missing color when enabling pointclouds on Jetson boards - as described in https://github.com/IntelRealSense/realsense-ros/issues/1967 - your use of the rs_rgbd launch file makes me think that your particular issue may have a different cause, as pointclouds typically work normally on Jetson when using the ROS1 wrapper's rs_rgbd.launch.
As you installed from packages using the ROS wrapper's apt-get install procedure, packages installed with that method do not have CUDA graphics acceleration support enabled in librealsense. This may be causing the lag, as all of the pointcloud and alignment processing will be done on the Jetson's CPU instead of offloading the work onto the Nvidia graphics GPU on the board.
When CUDA is enabled in librealsense for computing devices with an Nvidia GPU, it accelerates color conversion, depth-color alignment and pointclouds.
To enable CUDA support, you should build librealsense and the ROS wrapper separately (librealsense installed first from packages or source code, and the wrapper built secondly from source code afterwards) instead of installing them together at the same time with apt-get install -y ros-$ROS_DISTRO-realsense2-camera
If librealsense is built from packages using the dedicated Jetson installation instructions at the link below then CUDA support will be included.
Hi @MartyG-RealSense Thank you very much for your quick and valuable response. The method you taught me worked and the lag was eliminated.
This is how I installed it.
RUN sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
RUN sudo add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" -u
RUN sudo apt-get install -y librealsense2-utils
RUN sudo apt-get install -y librealsense2-dev
cd ~/catkin_ws/src
git clone -b ros1-legacy https://github.com/IntelRealSense/realsense-ros.git
git clone https://github.com/pal-robotics/ddynamic_reconfigure.git
catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release
It's great to hear that you were successful, @Decwest - thanks so much for the update and for sharing with the RealSense ROS community the details of the procedure that worked for you :)
I'm using Realsense D455 on Jetson Orin, and now having trouble with lag in pointcloud publishing. As shown in this video, the right PointCloud is laggy. And it is also laggy even if only right side is connected.
https://user-images.githubusercontent.com/47899069/199919840-bbc4892a-2a58-4cd2-a89b-a618b18c572e.mp4
In addition, the following warnings appear.
Hardware setup
Software setup
environment
using docker
realsense-ros installation
launch
using rs_rgbd.launch according to https://answers.ros.org/question/396646/problem-using-pointcloud-data-in-nvidia-jetson-xavier-nx/
I would appreciate it if you could tell me the cause and the solution. Thank you in advance.