Skip to content

test: ROSBag raw image encodings, PointCloud2, summaries and filters on synthetic bags - #317

Merged
petercorke merged 2 commits into
mainfrom
test/ros-synthetic-bags
Nov 27, 2026
Merged

petercorke merged 2 commits into
mainfrom
test/ros-synthetic-bags

Conversation

@petercorke

Copy link
Copy Markdown
Owner

More coverage of ROSBag using synthetic bags written with rosbags in a temporary directory, so nothing large is committed. 22 new tests in tests/test_ros_message_types.py:

  • raw image encodings (rgb8, bgr8, rgba8, bgra8, mono8, mono16, 16UC1, 32FC1, 8UC3, 16UC3) with the expected dtype, shape and color order;
  • an unsupported encoding raises ValueError;
  • dtype and colororder for all topics and per topic;
  • PointCloud2, with and without color, in ROS 1 and ROS 2 bags;
  • the Image message-type filter, topics, traffic, print (with and without the "allowed" column) and the verbose listing;
  • a missing bag.

ROSBag goes from 69% to 85% covered on my machine, and Sources.py from 63% to 66%. These bags show that ROSBag reads what we believe devices write; they are not recordings of real devices. Tests only, no source changes.

An AI assistant (Claude Code) wrote this change.

🤖 Generated with Claude Code

…on synthetic bags

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 44 complexity · 0 duplication

Metric Results
Complexity 44
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit 10e29af into main Nov 27, 2026
32 checks passed
@petercorke
petercorke deleted the test/ros-synthetic-bags branch November 27, 2026 00:49
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.

1 participant