motion sensor (imu) reading when callback function is provided
I need to read theta angle from the example of "motion" in sdk, in another example, let's say, the "measure":
auto profile = pipe.start(cfg, [&](rs2::frame frame)
, but the profile declaration in "motion" does not work in "measure "with "poll_for_frames cannot be called if a callback was provided"
i understand the structure between these 2 examples is different...
is there any example (or simply how) to read IMU with call back function structure ?
-
Hi Nati Farkash In the RealSense SDK's rs-callback C++ example program at the link below, if the camera has an IMU then both gyro and accelerometer are enabled by default.
https://github.com/IntelRealSense/librealsense/tree/master/examples/callback
Please sign in to leave a comment.
Comments
1 comment