Skip to content

Set row_step after resizing point cloud#180

Open
HansRobo wants to merge 1 commit intoorbbec:v2-mainfrom
HansRobo:fix/raw_step
Open

Set row_step after resizing point cloud#180
HansRobo wants to merge 1 commit intoorbbec:v2-mainfrom
HansRobo:fix/raw_step

Conversation

@HansRobo
Copy link

@HansRobo HansRobo commented Mar 8, 2026

Problem

I found row_step error in Foxglove Studio for point cloud topic from OrbbecSDK_ROS2@c0c14f5 with ORBBEC Femto Boto, like the image below.

Screenshot from 2026-03-09 08-13-02 (コピー)

Solution

Since raw_step was not updated after invalid points were removed, I added a line to update it.

And I had no error with the fixed version of OrbbecSDK_ROS2.
image

Note

sensor_msgs::PointCloud2Modifier::resize is a function often used to update row_step, but if consistency other than row_step has been achieved first, the row_step update will be skipped. https://github.com/ros2/common_interfaces/blob/jazzy/sensor_msgs/include/sensor_msgs/impl/point_cloud2_iterator.hpp#L127-L130

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