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 pointcloud_to_laserscan 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
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.Also: note the comment on the
p2l
wiki page: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.