To expand on davinci's answer: You cannot save an OctoMap as .pcd file. In fact, there are no more point clouds to store after you integrated them into OctoMap, since the individual points are not retained by used for a probabilistic occupancy estimation in voxels. How exactly did you store the .pcd file, and from where?
You can only store octomaps into the native .ot or .bt file format, which you can then open and process using the octomap API or visualize with octovis.
Originally posted by AHornung with karma: 5904 on 2014-03-25
This answer was ACCEPTED on the original site
Post score: 3
Original comments
Comment by sha on 2014-03-25:
Thanks for the reply. I have tried to save it from GUI (Octomap - >SAve Octomap....I have try to save a new one...this time I didnt gave any .pcd and it has saved....But how can you view it using octovis. I can use pcd_viewer to view pcd files but their is no octovis.
Comment by AHornung on 2014-03-25:
Which GUI of which package or program are you using to save? octovis is the official visualization of OctoMap. You need to download and compile it, or install the precompiled package for your ROS distribution.
Comment by sha on 2014-03-25:
I am using the GUI from the installation from this page http://wiki.ros.org/rgbdslam.
I have just installed octovis also from this page http://wiki.ros.org/octovis. Now I can view the octomap. Please can you tell me how we can control the size PCD files. PCD file created are of size 180 MB which are difficult to visualize.
Comment by Felix Endres on 2014-03-27:
Hi Sha, when posting a question, please think about what the readers will need to know to answer it. You are using rgbdslam to create a 3d map. Do you want to save it as an octomap (ot) or a point cloud (pcd) file? Are you even using the right menu item from the GUI?
Comment by sha on 2014-03-27:
Sorry for the confusion. I will be careful in future.