ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Code looks ok, i'm guessing the problem is that your input point cloud has too few points (only 5) and with very sparse coordinates (you are randomizing them) so that mls can't find any surface in a radius of 3cm.

Also generally you should compute normals yourself, with NormalEstimation class and supply your normal to mls with mls.setInputNormals so that you can control how these normals are computed.

Hope this helps