felixendres / rgbdslam_v2

RGB-D SLAM for ROS
GNU General Public License v3.0
940 stars 400 forks source link

No data in Octomap #59

Open robotsoft opened 7 years ago

robotsoft commented 7 years ago

I've tried to save a octomap but there is no data in an octomap file. I used 'Save/Save Octomap..." in the menu to save the octomap. The generated octomap includes just headers as follows.

# Octomap OcTree file
# (feel free to add / change comments, but leave the first line as it is!)
#
id ColorOcTree
size 0
res 0.05
data

I'm working on Ubuntu 16.04. Is there any I missed to save the octomap?

Thank you.

robotsoft commented 7 years ago

I solved this issue by adding return true in bool GraphManager::updateCloudOrigin(Node* node). This function needs to return a bool but return true is missed in the end of the function. The function can be found in graph_mgr_io.cpp. I finally have a binary octomap file.

zhangduoshou commented 7 years ago

@robotsoft I solved the problem with the method u metioned,thank u very much