Repository navigation
Add rosbag2 ROS2 playback test - #3511
Merged
Nir-Az merged 3 commits intoApr 29, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new pytest integration test to validate that a RealSense-converted ROS1 .bag → ROS2 rosbag2 (.db3) conversion can be replayed via ros2 bag play while preserving exact image payload bytes.
Changes:
- Introduce a new rosbag2 playback test that converts
outdoors_1color.bagto.db3 - Subscribe to key image topics during playback and compare frame payload hashes vs. the source bag
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
AviaAv
force-pushed
the
rsdev-6966-ros2-db3-play-test
branch
8 times, most recently
from
April 26, 2026 11:16
35b4d6a to
7df78e8
Compare
AviaAv
force-pushed
the
rsdev-6966-ros2-db3-play-test
branch
from
April 26, 2026 12:32
7df78e8 to
aecb916
Compare
Nir-Az
reviewed
Apr 27, 2026
| @@ -0,0 +1,102 @@ | |||
| # Copyright 2026 RealSense, Inc. All Rights Reserved. | |||
Collaborator
There was a problem hiding this comment.
Lets add a live camera test too please.
Record and use ros2 play to play it
Contributor
Author
There was a problem hiding this comment.
Added
Passing build: https://rsjenkins.realsenseai.com/job/LRS_linux_compile_ros_ci/1282/
Nir-Az
reviewed
Apr 27, 2026
| rs_help = subprocess.run([rs_convert, "--help"], capture_output=True).stdout.decode() | ||
| if "output-db3" not in rs_help: | ||
| pytest.skip(f"{rs_convert} predates --output-db3; rebuild librealsense from source") | ||
| assert subprocess.run(["ros2", "bag", "--help"], |
Collaborator
There was a problem hiding this comment.
PLease check
- ros2 bag --help is a weak presence check — that subcommand returns 0 even when ros2bag isn't installed (the help
text just lists no verbs). ros2 bag play --help is a stricter probe.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracked on: [RSDEV-6966]