Skip to content

Add ROS-style struct frontend - #4

Merged
dallison merged 7 commits into
mainfrom
ros_messages
Aug 13, 2026
Merged

Add ROS-style struct frontend#4
dallison merged 7 commits into
mainfrom
ros_messages

Conversation

@dallison

@dallison dallison commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a selectable ROS-style generated frontend while preserving Phaser's native payload layout and protobuf-style generation
  • provide value-like scalar, string, message, vector, fixed-array, and variant-oneof proxies with ROS1 Time, Duration, and Header compatibility
  • add protobuf-wire and native cross-frontend compatibility coverage plus user documentation

Test plan

  • bazel test //... -- -//phaser:perf_test
  • bazel test //phaser:ros_intrinsics_test --strip=never -c dbg --copt=-fsanitize=undefined --copt=-fno-omit-frame-pointer --linkopt=-fsanitize=undefined

Add an optional value-like ROS API while preserving Phaser native layout and protobuf wire compatibility, including fixed arrays, oneof variants, and ROS1 intrinsic types.
Generate one-way conversion from protobuf or native Phaser payloads, with deterministic format inference and byte-level compatibility coverage.
Include the shared suppression file in newly added ROS test runfiles so CI can launch them under Valgrind.
Decode ROS1 data into native payloads with deterministic oneof handling and bulk primitive I/O. Reject malformed packed fixed-width protobuf fields.
Move runtime metadata into payload storage, return lightweight field views, and transcode ROS wire data directly to avoid heap work on receive paths.
Explain both generated APIs and show direct protobuf, ROS, and native wire conversion workflows.
Rebind cached nested views before use and keep union field-number spans backed by static storage so sanitizer builds do not access stale payload or stack memory.
@dallison
dallison merged commit f0c113b into main Aug 13, 2026
5 checks passed
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