Closed PierrickKoch closed 11 years ago
I'm getting this error too. Does anyone know how to fix this?
I assume the crash is the one reported in issue #2?
Yes. It is the same crash. But it still does not porovide octomap_full topic.
Apparently it's only implemented for binary messages right now. If you have a devel checkout / overlay, that should be easy to fix if you can test it. Change line 292 of occupancy_grid_display.cpp
fromoctomap::OcTree* octomap = octomap_msgs::binaryMsgToMap(*msg);
to
octomap::AbstractOcTree* tree = octomap_msgs::msgToMap(*msg);
octomap::OcTree* octomap = dynamic_cast<OcTree*>(tree);
(and the same for the corresponding line in `occupancy_map_display.cpp``=
Great, your solution worked for me!
I don't know if you have a fixed way to deal with bug fixes for multiple versions therefore I just created a simple pull request.
Best, Stefan
Pull request is perfect, thanks for the patch and the feedback that it worked! Fixed in groovy-devel, will be part of the next release (and hydro as well).
On the latest Groovy package, in rviz, after adding either an occupancy_map or an occupancy_grid, when I set the topic to /octomap_full, I get the error: "Failed to create octree structure", and if I set it to /octomap_binary, rviz crash.