Skip to content

Make large-message stripping opt-in (default: full data forwarded)#6

Merged
facontidavide merged 1 commit into
fix/review-findingsfrom
strip-data-opt-in
Jul 2, 2026
Merged

Make large-message stripping opt-in (default: full data forwarded)#6
facontidavide merged 1 commit into
fix/review-findingsfrom
strip-data-opt-in

Conversation

@facontidavide

Copy link
Copy Markdown
Contributor

Summary

Stripping uint8[] data from Image/PointCloud2/LaserScan/OccupancyGrid messages was on by default, so clients silently received metadata-only messages unless the operator knew to disable it. This flips the behavior: full message data is forwarded by default, and stripping becomes an explicit opt-in (strip_large_messages:=true) for low-bandwidth deployments.

Stacked on #5 (fix/review-findings) — GitHub will retarget to main automatically when that merges.

Changes

  • strip_large_messages ROS parameter default: truefalse
  • Ros2SubscriptionManager constructor default flipped to match
  • New Ros2SubscriptionManagerTest suite (real pub/sub roundtrip): default config must deliver the full image payload; explicit opt-in must strip it
  • README and CLAUDE.md document the opt-in semantics

Test plan

  • DataFieldsIncludedByDefault watched failing before the flip (payload stripped), passes after
  • OptInStrippingRemovesData pins that opt-in stripping keeps working
  • Full suite: 176/176 pass, pre-commit run -a clean

🤖 Generated with Claude Code

Stripping uint8[] data from Image/PointCloud2/LaserScan/OccupancyGrid
messages was previously on by default, so clients received metadata-only
messages unless the operator knew to disable it. Flip the default:
messages are forwarded intact, and stripping is enabled explicitly with
strip_large_messages:=true for low-bandwidth deployments.

- ros2 main: strip_large_messages parameter default true -> false
- Ros2SubscriptionManager: constructor default flipped to match
- New test suite covering both defaults-include-data and opt-in-strips
- README/CLAUDE.md updated to document the opt-in semantics

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@facontidavide facontidavide merged commit 5e284d1 into fix/review-findings Jul 2, 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.

1 participant