You will also lose the ability to clear previously seen endpoints (e.g.
to correct sensor noise). But if you really just want to store the end
points, what Felix suggested works best and will result in much smaller
files. Alternatively, you can use
"octree.updateNode(cloud.x,cloud.y,cloud.z, true)".
You could also (as alternative or in addition) pre-sample your data with
PCL before insertion or use the flag "discretize" (newly added) in
insertPointCloud(). There is also parallelization support which you need
to enable during CMake configuration with the flag OCTOMAP_OMP (and tune
with the env. var OMP_NUM_THREADS).
More details on how to speed up scan insertions were discussed
previously on this list, e.g. here:
https://groups.google.com/forum/#!topic/octomap/rsD2tPs-6tc
Cheers,
Armin
--
Dr. Armin Hornung
Humanoid Robots Lab, Albert-Ludwigs-Universitaet Freiburg
Contact:
http://www.informatik.uni-freiburg.de/~hornunga