rgbdslam_v2
rgbdslam_v2 copied to clipboard
No data in Octomap
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.
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 I solved the problem with the method u metioned,thank u very much