-
Notifications
You must be signed in to change notification settings - Fork 4.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
D555 imu record playback #13519
D555 imu record playback #13519
Conversation
src/media/ros/ros_reader.cpp
Outdated
@@ -518,6 +520,24 @@ namespace librealsense | |||
data[2] = static_cast<float>(msg->angular_velocity.z); | |||
LOG_DEBUG("RS2_STREAM_GYRO " << motion_frame); | |||
} | |||
if (stream_id.stream_type == RS2_STREAM_MOTION) | |||
{ | |||
auto data = reinterpret_cast<double*>(motion_frame->data.data()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we cast to const rs2_combined_motion*
like the writer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use same type for both reading and writing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Is this PR depend on FW change? |
No, we just did not support the combined motion type in LibRS for recordings. Older FW will work too. |
@remibettan, please fix the tests failures before merging. |
398a934
to
82b51b1
Compare
Tracked by: RSDEV-2858