Skip to content

Enable playback tests for D555 - #14140

Merged
OhadMeir merged 3 commits into
realsenseai:developmentfrom
OhadMeir:playback
Jul 21, 2025
Merged

Enable playback tests for D555#14140
OhadMeir merged 3 commits into
realsenseai:developmentfrom
OhadMeir:playback

Conversation

@OhadMeir

Copy link
Copy Markdown
Contributor

Tracked on [LRS-1283]

@OhadMeir
OhadMeir requested a review from Copilot July 17, 2025 13:05

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

Enables playback tests for D555 devices across rec-play unit tests and enhances core ROS reader and DDS proxy logic to support stereo depth sensors.

  • Added D500 series device metadata to several rec-play test scripts and tweaked stress test parameters.
  • Extended ros_reader to recognize stereo depth sensors, cache stream extrinsics, and compute baseline from extrinsics.
  • Updated DDS depth sensor proxy to implement extend_to for both depth and stereo depth sensor interfaces.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
unit-tests/live/rec-play/test-record-and-stream.py Added D500 device test metadata
unit-tests/live/rec-play/test-playback-stress.py Reduced timeout and iteration count for playback stress test
unit-tests/live/rec-play/test-pause-playback-frames.py Added D500 device test metadata
unit-tests/live/rec-play/test-non-realtime.py Added note about D555 incompatibility (typo present)
unit-tests/live/rec-play/test-got-playback-frames.py Added D500 device test metadata
src/media/ros/ros_reader.h Declared new is_stereo_depth_sensor method and extrinsics map
src/media/ros/ros_reader.cpp Implemented stereo depth logic, extrinsics caching, and baseline
src/dds/rs-dds-depth-sensor-proxy.h Declared extend_to override
src/dds/rs-dds-depth-sensor-proxy.cpp Implemented extend_to to support depth and stereo depth sensors
Comments suppressed due to low confidence (1)

unit-tests/live/rec-play/test-playback-stress.py:16

  • [nitpick] The iteration count was reduced from 250 to 20, which may significantly decrease stress test coverage; consider documenting or adjusting this to ensure adequate testing.
number_of_iterations = 20

Comment thread src/media/ros/ros_reader.cpp
Comment thread src/media/ros/ros_reader.cpp
Comment thread unit-tests/live/rec-play/test-non-realtime.py Outdated
Comment thread src/media/ros/ros_reader.cpp Outdated
bool ros_reader::is_depth_sensor(std::string sensor_name)
{
if (sensor_name.compare("Stereo Module") == 0 || sensor_name.compare("Coded-Light Depth Sensor") == 0)
if( is_stereo_depth_sensor( sensor_name ) || sensor_name.compare( "Coded-Light Depth Sensor" ) == 0 )

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.

can be rplacced by:
return ( is_stereo_depth_sensor( sensor_name ) || sensor_name.compare( "Coded-Light Depth Sensor" ) == 0 );
Instead of the return true, return false.
Can also be inlined in the h file (as the implementation is so short.

@remibettan remibettan 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.

One comment - besides that LGTM

@remibettan remibettan 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.

LGTM

@OhadMeir
OhadMeir merged commit 7ef7e45 into realsenseai:development Jul 21, 2025
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