Octomap ERROR: Filestream to not open, nothing read
I am using the following code to read an octomap.
AbstractOcTree* tree = AbstractOcTree::read("obstaclecourse2.ot");
However, I get the following error: ERROR: Filestream to obstaclecourse2.ot not open, nothing read.
I am able to visualize the map in octovis and I have also tried giving an absolute path to the file. Please let me know if anyone else has faced and solve a similar issue.