IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.55k stars 4.82k forks source link

fastrtps is ALREADY outdated and replaced by Fast-DDS ?? #13094

Closed jiapei100 closed 2 months ago

jiapei100 commented 3 months ago

Required Info
Camera Model D435
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Ubuntu 24.04
Kernel Version (Linux Only) 6.8.0-35-generic
Platform PC
SDK Version legacy / 2.55.1
Language C
Segment Robot

Issue Description

<Describe your issue / question / feature request / etc..>

1) Can we replace all packages under third-party from local to system? 2) For third-party realdds, https://github.com/canonical/Fast-RTPS is ALREADY outdated and replaced by https://github.com/eProsima/Fast-DDS ... Can anybody help to update it?

MartyG-RealSense commented 3 months ago

Hi @jiapei100 When building the librealsense SDK from source code with CMake, there is a configuration flag called BUILD_WITH_DDS that requires CMake 3.16.3 and is set to Off by default.

https://github.com/IntelRealSense/librealsense/blob/master/CMake/lrs_options.cmake#L49

The main CMakeLists.txt file of librealsense has a provision that if the BUILD_WITH_DDS flag is set to On then the CMake file external_fastdds.cmake is included in the build,

https://github.com/IntelRealSense/librealsense/blob/master/CMakeLists.txt#L62-L75

https://github.com/IntelRealSense/librealsense/blob/e1688cc318457f7dd57abcdbedd3398062db3009/CMake/external_fastdds.cmake#L49-L51

This places the FastDDS project in the 3rd Party/fastdds folder.

The main CMakeLists.txt file states that FastDDS is only supported on Windows and Linux and not on ${CMAKE_SYSTEM} which is why it is set to Off by default.

When building librealsense with CMake, the configuration flags have -D placed on the front of them, so using the instruction below in the CMake build instruction should enable it.

-DBUILD_WITH_DDS=ON


In regard to your other question, can you provide information about the difference between local and system packages, please?

MartyG-RealSense commented 3 months ago

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

jiapei100 commented 2 months ago

@MartyG-RealSense Thank you Marty. I'm closing it. I'll build librealsense without Fast-DDS. Thank you ...

MartyG-RealSense commented 2 months ago

You are very welcome. I'm pleased that I could help. Thanks very much for the update!