IntelRealSense / librealsense

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

add motion_frame::get_combined_motion_data() for DDS Motion streams #13042

Closed maloel closed 1 week ago

maloel commented 1 week ago

No API existed to get the combined motion data. The previous API in rs2::motion_frame is get_motion_data() returning rs2_vector which ASSUMES the data type. This should be used with RS2_FORMAT_MOTION_XYZ32F. I did the same: added get_combined_motion_data() returning rs2_combined_motion. This should be used with RS2_FORMAT_COMBINED_MOTION. I.e., it is up to the user to call the right one.

Added Python API.

Tracked on [RSDEV-2243]

maloel commented 1 week ago

I pushed a change to the comments in rs_frame.hpp, to make it clearer when to use either function.