feat: convenience API for compressing PointCloud2 + CMake improvements#58
Merged
facontidavide merged 1 commit intomainfrom Feb 21, 2026
Merged
feat: convenience API for compressing PointCloud2 + CMake improvements#58facontidavide merged 1 commit intomainfrom
facontidavide merged 1 commit intomainfrom
Conversation
6a42a4f to
74686db
Compare
Add SerializeCompressedPointCloud2() and ConvertToRosPointCloud2() to allow users to compress sensor_msgs::msg::PointCloud2 without the topic_converter node. Includes test_direct_publisher example node and CLAUDE.md documentation. Also removes redundant PCL_INCLUDE_DIRS from test_cloudini_subscriber target. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
74686db to
53e82ad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cloudini::SerializeCompressedPointCloud2()andCloudini::ConvertToRosPointCloud2()convenience functions so users can compresssensor_msgs::msg::PointCloud2directly in their code without the topic_converter nodetest_direct_publisherexample node demonstrating the new API with zero-copy publishpcl_rosdependency with directPCL COMPONENTS common io— lighter deps, proper ament export targetsament_export_targets()for correct downstream CMake consumptionpackage.xml:libpcl-common+libpcl-ioreplacepcl_ros@bried→@brieftypo and include style (<>→""for project-local headers)Alternative to #56 — cherry-picks the useful parts and fixes the extra memcpy, name collision risk, and undocumented borrowing semantics. Also incorporates the CMake/package improvements from #55.
Test plan
cmake --build build_release --parallel— core lib compilesctest— all existing tests pass (1/1)colcon build --packages-select cloudini_lib cloudini_ros— ROS packages compile (CI)test_direct_publisherwith a PointCloud2 source to verify end-to-end compression🤖 Generated with Claude Code