-
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
Run filters using CUDA #2032
Comments
Hi @mvanlobensels Which method did you use to install the librealsense SDK and the RealSense ROS wrapper, please? If you build librealsense from source code with CMake using Intel's official Jetson installation instructions in the link below then you can add the term -DBUILD_WITH_CUDA=true to the CMake build instruction to activate support in librealsense for CUDA https://dev.intelrealsense.com/docs/nvidia-jetson-tx2-installation CUDA specifically provides acceleration for pointclouds, depth-color alignment and color conversion, not for all types of processing. |
I have installed librealsense using apt, which according to this link should include CUDA support. RealSense ROS was installed from source. I ran the following commands to start two RealSense D415's: Then The CPU usage seems very high whereas the GPU usage fluctuates a lot. We are therefore unsure if the filters are run using CUDA. Thank you for the heads up that not all filters are supported by CUDA. |
Thanks very much for the confirmation of your installation method. Post-processing filtering is calculated on the CPU rather than the camera hardware, which can add a processing burden. This may account for your high CPU usage. My understanding is that the Spatial filter is heavier than others whilst not necessarily providing much improvement. So it may be worth removing the Spatial filter from the launch instruction to see how it improves your CPU figures. Are you also launching the two cameras with rs_camera.launch in separate ROS terminals, please? If you are using both in the same terminal then the rs_multiple_devices.launch method may work better for you for a same-terminal multicam launch, enabling you to define the serial numbers for both cameras in one instruction. https://github.com/IntelRealSense/realsense-ros#work-with-multiple-cameras |
Hi,
When using the filters spatial, temporal and pointcloud, the GPU usage does not seem to go up significantly, implying that the GPU is not used. Is it possible to run these filters on the GPU with CUDA? I am using an Nvidia Jetson Nano
Thank you.
The text was updated successfully, but these errors were encountered: