Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EigenMatToPointCloud2 - Use rows() of Eigen::Matrix3f &points #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ewak
Copy link

@ewak ewak commented Jan 8, 2025

The usage of points.size() in EigenMatToPointCloud2 to CreatePointCloudMsg() was incorrect, it should have been points.rows().

Using points.size() leads to 3x more points being allocated in the point cloud than necessary which bloats the message slowing things down. These extra points are at the origin of the pointcloud. This can manifest as an artificial hump directly under the origin of the point cloud.

The usage of points.size() in EigenMatToPointCloud2 to
CreatePointCloudMsg() was incorrect, it should have been points.rows().

Using points.size() leads 3x more points being allocated in the
point cloud than necessary which bloats the message slowing things down.

These extra points are at the origin of the pointcloud.

This can manifest as an artificial hump directly under
the origin of the point cloud.

Signed-off-by: Mike Wake <[email protected]>
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