Skip to content

Serialize encapsulation header on buffer aware topics (backport #891) - #893

Open
mergify[bot] wants to merge 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-891
Open

Serialize encapsulation header on buffer aware topics (backport #891)#893
mergify[bot] wants to merge 1 commit into
lyricalfrom
mergify/bp/lyrical/pr-891

Conversation

@mergify

@mergify mergify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Description

While creating a native DDS consumer for rosidl buffer custom topics, I discovered that the encapsulation header required by the RTPS standard is not added for the reader-GUID-based topics.

This PR adds the encapsulation header when publishing, and consumes it when taking.

Is this user-facing behavior change?

No, but the custom serialization changes.
I would nonetheless consider backporting to lyrical.

Did you use Generative AI?

No.

Additional Information

I verified that the GPU buffer transport tutorial works with these changes


This is an automatic backport of pull request #891 done by Mergify.

* Serialize encapsulation when publishing

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Read encapsulation when taking

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Catch and log error when reading encapsulation header.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Fix typo

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* Fix linters

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

---------

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
(cherry picked from commit 742f713)
@mergify

mergify Bot commented Jul 2, 2026

Copy link
Copy Markdown
Author

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@skyegalaxy
skyegalaxy requested a review from MiguelCompany July 2, 2026 16:38
@jmachowinski

Copy link
Copy Markdown

Pulls: #893
Gist: https://gist.githubusercontent.com/jmachowinski/8b393ab543222adc324871bc21d6a8b2/raw/726aa5dcde8ab240bbea9c72af2db2664d95fae6/ros2.repos
BUILD args:
TEST args:
ROS Distro: lyrical
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19706

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

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.

4 participants