Robotics StackExchange | Archived questions

pointcloud to laserscan slow

Hello,

For my project i am using a raspberry Pi which is connected to a kinect. I wan to use the data of this kinect for driving around the building. The only problem with it is that the pointcloudtolaserscan node only gives out a laserscan once every 15 seconds. This is way to low. Does anyone how to easily fix this problem. Using Raspberry Pi 3 ROS kinetic Kinect v1

Asked by gijsje170 on 2016-10-26 07:14:09 UTC

Comments

If you're building pointcloud_to_laserscan from sources, be sure to enable optimisations (-DCMAKE_BUILD_TYPE=Release). If not: get a platform with some more processing power? Pi's are quite limited, and if you're not using nodelets, the pointcloud gets copied quite a nr of times.

Asked by gvdhoorn on 2016-10-26 07:29:29 UTC

Also: note the comment on the p2l wiki page:

If you're trying to create a virtual laserscan from your RGBD device, and your sensor is forward-facing, you'll find depthimage_to_laserscan will be much more [..] efficient since it operates on image data instead of bulky pointclouds.

Asked by gvdhoorn on 2016-10-26 07:31:03 UTC

Thanks for your help when building with -DCMAKE_BUILD_TYPE=Release it improved my performance. Currently it is giving me an average of 4FPS which is quite nice already.

Asked by gijsje170 on 2016-10-26 07:44:01 UTC

Answers