Dedicated meeting to discuss REP 0157: Wednesday, 4 November 2026
Hi everyone,
At the ROS 2 PMC meeting on 27 October 2026 we discussed REP 0157. There is a lot to cover, so the PMC agreed to hold a dedicated meeting on this REP. Anyone interested in REP 0157 is welcome to join.
What is REP 0157?
REP 0157 redesigns the rosidl messaging system so that ROS 2 gets native, universal zero-copy transport across process boundaries with minimal overhead.
Key features: language-agnostic memory layouts, strict message constraints, and standardizing on XCDRv1 as the in-memory representation.
Compatibility: designed to be backward compatible, with support for C, C++ and Python.
Implementation: groups such as Ekumen-OS maintain experimental reference implementations and benchmarks to test constrained publisher and subscriber loans.
When
Wednesday, 4 November 2026 at 9:30 AM PST (17:30 UTC)
Your local time: 2026-11-04T17:30:00Z
Note: US daylight saving time ends on 1 November, so the meeting is at 9:30 PST (UTC-8).
Short overview of REP 0157: goals, memory layout and message constraints
Open questions and feedback raised during the 27 October PMC meeting
Backward compatibility and the impact on C, C++ and Python users
Status of the reference implementations and benchmarks
Community feedback and discussion
Next steps
How to contribute
If you can’t attend, or you want to raise something ahead of time, please reply in this thread or comment on the draft on GitHub. We will take written feedback into account during the meeting.
Notes from the meeting will be posted in this thread afterwards.
Unclear if I can make it to the meeting, but wanted to forward a few high-level questions/comments.
1. API migration
The prototype puts the new types in a parallel namespace (sensor_msgs::msg::experimental::Image). The underlying question from #22 is still open: should the view be an API-compatible drop-in with member access, or a distinct type with accessors and a deprecation cycle? See William’s comment and Michel’s reply that this needs an executive decision.
Also, what is the plan for moving experimental:: to the default?
2. Relationship to rosidl::Buffer / buffer backends
In January I asked that this be reconciled with the native buffers work (Discourse thread). That work has since landed in rolling and Lyrical:
rosidl#941 and rosidl#944: the rosidl_buffer, rosidl_buffer_backend and backend registry packages
Both add loan or negotiation plumbing to rmw_fastrtps.
Both describe where memory lives: rosidl_memory_t.attributes in REP 157, and BufferMemory in rosidl#990.
Can the REP state explicitly how the two relate? In particular could the uint8[] field of a 157 view be a rosidl::Buffer backed by the loaned region?
I’d like to end up with one model for memory location rather than two.
3. Scope
Is the REP meant to standardize only the rmw API additions and the type-support operation table? Or does it also cover the generated C++ and Python view APIs?
4. Size and phasing
The reference implementation is large. Not counting tests, it is roughly 45k lines, and only about 8k of that is generator code. Most of the rest is container runtimes for C, C++ and Python plus the XCDR library. The diffs against upstream Jazzy:
a. re: API migration. I reckon the current approach (API-compatible drop-in replacements) is not generally applicable (C++ and Python allow, C and eventuall Rust won’t). A year ago I would have strongly advocated for compatibility to make the transition transparent. Agents are really, really good these days. Maybe this is less of an issue today than it was in the past.
b. experimental:: needs double tick-tock cycles to become default. People have to switch over, then back over several release cycles. It’s a slow process, but it gives people ample time to adapt plus a window to gauge adoption.
We are leaning towards a modified CPU backend for loaned messages, keeping rosidl_buffers as the user facing API, but we are open to other ideas.
The original idea was for the REP not to prescribe language specific interfaces. Reference implementation is an aggregate of decision choices that are not inherent to the REP e.g. C++ views could be method based, Protobuf style.
Yes, we could start C++ only. Experimental code can live on separate packages but it must be part of the vcs checkout that makes up the ROS core. Otherwise, prospective users will have to source re-build standard messages.
Hmm, maybe. I would need to cross-check. I/O in xcdr_buffers comes with additional indirections compared to FastCDR, but also a few zero-copy APIs that FastCDR lacks.
Thanks everyone for joining! Here’s a summary of the meeting and of the follow-up discussion in this thread. The notes are AI-generated, so please correct anything I got wrong.
Design overview
Michel Hidalgo presented the design: message structures are decoupled from their memory layouts to enable zero-copy data flows.
The reference implementation uses XCDR to keep a contiguous memory layout. Messages can declare optional constraints on bounded types so the middleware can manage memory efficiently.
New experimental messages are API-compatible siblings of the existing ones, which allows a gradual migration.
Backward compatibility and serialization
Old and new messages coexist and interoperate transparently between publishers and subscribers.
The architecture is agnostic to the serialization format, even though the reference implementation uses XCDR. Miguel Company noted that RTPS headers support custom representation IDs for future format changes.
Janosch Machowinski proposed decoupling serialization code from the middleware implementations to unify type support across RMWs. Today the XCDR machinery relies on type support libraries integrated with Fast DDS, so Michel suggested prototyping with Zenoh to check non-DDS middleware.
Message access API (member-based vs. method-based)
The reference implementation keeps member-based access to stay compatible with existing C++ and Python code.
Miguel preferred method-based access because it makes future implementation changes easier. Chris Lalancette raised the concern that it breaks existing downstream packages and tutorials.
William Woodall proposed skipping the experimental namespace and adopting method-based access directly in a new namespace.
Proposed path: support both interfaces at the same time, then eventually deprecate member-based access.
Performance and open questions
Benchmarks show the zero-copy gains become negligible below ~40K payload sizes.
Open questions remain about rosidl buffer integration with loaned messages, and about loaning messages with mixed backends at the same time.
Follow-up discussion on Zulip
Benchmarks: the reference implementation and E2E benchmarks target Jazzy (constrained_pubsub_benchmark). They compare copy vs. loan, constrained vs. unconstrained, and C++ vs. Python across payload sizes, publishing rates and transports. A full run takes about 3 days and produces 20+ GB of raw data, which Michel can share. Only the XCDR serdes library has micro-benchmarks so far. Janosch asked for member-access benchmarks (e.g. building a MarkerArray with 10k entries), and Michel will add micro-benchmarks for the primitive types.
Views as a first-class concept: Miguel proposed generating method-based views in a views namespace. A view could be built from a message (read-only or read-write), from constraints (with internal storage), or from a binary blob (read-only or read-write). The blob-based variants could be tested with no RMW changes by using rmw_publish_serialized_message and rmw_take_serialized_message. Michel likes formalizing views and noted it would avoid transition and deprecation cycles. His concerns are lifetimes, implementation complexity for read-write views over messages, worse Python performance compared with views on blobs, and how this works with buffers in arbitrary memory.
Type support / middleware interface: there is agreement that type supports need well-defined interfaces for what the middleware needs. Miguel suggested generalizing constraints into an opaque type support context, e.g. rmw_create_publisher_with_context(...) with a get_bounds_for_payload_size() query. Michel agreed to make it generic once it reaches the middleware. Decoupling the serialization format from the middleware would be a separate REP.