Commit b608129
authored
EigenMatToPointCloud2 - Use rows() of Eigen::MatrixX3f &points (#68)
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]>1 parent 00ccf9e commit b608129
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
0 commit comments