rgbdslam_v2 icon indicating copy to clipboard operation
rgbdslam_v2 copied to clipboard

No data in Octomap

Open robotsoft opened this issue 7 years ago • 2 comments

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 avatar Jun 05 '17 17:06 robotsoft

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.

robotsoft avatar Jun 05 '17 22:06 robotsoft

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

zhangduoshou avatar Jul 12 '17 15:07 zhangduoshou