Skip to content

examples: Add image_pub_sub#629

Open
furushchev wants to merge 1 commit into
mvukov:mainfrom
furushchev:image-transport-example-test
Open

examples: Add image_pub_sub#629
furushchev wants to merge 1 commit into
mvukov:mainfrom
furushchev:image-transport-example-test

Conversation

@furushchev
Copy link
Copy Markdown

Adds examples/image_pub_sub subdirectory where example image transport plugins are registered and used for the test to verify the transport plugin works.
With another test ros2/test/image_common, it ensures the plugin mechanism works in downstream workspace.

@furushchev furushchev force-pushed the image-transport-example-test branch 2 times, most recently from 5664ab8 to 9602c27 Compare May 8, 2026 20:43
@furushchev
Copy link
Copy Markdown
Author

@mvukov I'm using the hermetic LLVM toolchain to build the libraries and it needs to add build --linkopt=-Wl,--export-dynamic to .bazelrc to make the class_loader mechanism work.

Q1: Is there any way to add test examples workspace with LLVM toolchain enabled in addition to the default GCC toolchain?
Q2: Is it ok to add the linker flag to the .bazelrc for LLVM users?

@mvukov
Copy link
Copy Markdown
Owner

mvukov commented May 17, 2026

Q2: Is it ok to add the linker flag to the .bazelrc for LLVM users?

Yup.

Copy link
Copy Markdown
Owner

@mvukov mvukov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

examples/image_pub_sub/image_pub_sub.test.py -> image_pub_sub_tests.py.

Per the Google style guide: C++ headers should have .h extension.

Nice work, I left some comments.

Comment thread examples/image_pub_sub/image_publisher.cc Outdated
Comment thread examples/image_pub_sub/rotated_publisher.hh Outdated
Comment thread examples/image_pub_sub/rotated_publisher.hh Outdated
Comment thread examples/image_pub_sub/rotated_publisher.cc Outdated
Comment thread examples/image_pub_sub/image_resizer.cc
Comment thread examples/image_pub_sub/manifest.cc Outdated
Comment thread examples/image_pub_sub/BUILD.bazel Outdated
@furushchev furushchev force-pushed the image-transport-example-test branch from 9602c27 to 0c8b777 Compare May 19, 2026 21:33
@furushchev
Copy link
Copy Markdown
Author

@mvukov Thanks for the review. I addressed things on your comments.

@furushchev furushchev requested a review from mvukov May 19, 2026 21:33
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.

2 participants