Skip to content

Fix D555 playback with motion stream - #14947

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
AviaAv:fix-motion-stream-playback
Apr 19, 2026
Merged

Nir-Az merged 1 commit into
realsenseai:developmentfrom
AviaAv:fix-motion-stream-playback

Conversation

@AviaAv

@AviaAv AviaAv commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Tracked on: [RSDEV-7845]

Copilot AI review requested due to automatic review settings April 19, 2026 08:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses playback issues for D555 recordings involving the motion stream by aligning stream/format handling and improving recorded depth scale availability during ROS2 playback.

Changes:

  • Map RS2_STREAM_MOTION to RS2_EXTENSION_MOTION_FRAME for correct frame allocation/type handling.
  • Record depth_units in ROS2 frame metadata on write, and read it back on playback; update default depth scale used when not recorded.
  • Treat RS2_FORMAT_COMBINED_MOTION as non-rasterizeable in the rendering path.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/source.cpp Adds RS2_STREAM_MOTION to stream→frame-extension mapping.
src/media/ros_common.h Introduces DEPTH_UNITS_MD_STR metadata key constant.
src/media/ros2/ros2_writer.cpp Writes depth_units into the per-frame metadata payload for depth frames.
src/media/ros2/ros2_reader.cpp Removes depth-units derivation from recorded sensor options and reads depth_units from metadata; updates default depth scale in depth sensor snapshot.
common/rendering.h Prevents attempting to rasterize RS2_FORMAT_COMBINED_MOTION.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/media/ros2/ros2_reader.cpp Resolved
@AviaAv
AviaAv requested a review from Nir-Az April 19, 2026 08:36

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Nir-Az
Nir-Az merged commit 414630f into realsenseai:development Apr 19, 2026
32 of 34 checks passed
AviaAv pushed a commit to AviaAv/librealsense that referenced this pull request Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants