Closed lsouchet closed 9 years ago
Here is the output of the rostopic echo /octomap:
z$ rostopic echo /octomap [14-11-07 15:48]
header:
seq: 62
stamp:
secs: 1415371717
nsecs: 223220109
frame_id: /odom
binary: False
id: OcTree
resolution: 0.1
data: []
---
In a loop. When opening rviz and displaying this topic, it crashes as explained.
Thanks for the report! I just fixed this in the indigo-devel branch at octomap_msgs (https://github.com/OctoMap/octomap_msgs/commit/ba05c79ef9b24d7045bbf26022adbc58bafc7ac6). Once this gets released and octomap_rviz_plugins are rebuilt it should be all fine.
On the latest indigo, using the package ros-indigo-octomap-rviz-plugins.
When I publish a message with an empty data array, it makes rviz segfault, with the following error:
Here is the publisher sample example:
It works when my resulting octomap is not empty. A workaround consist in NOT publishing when the array is empty but that's kind of bothering. Here is the code of the octomap_str_to_tuple() that takes an octree passed as a string with write():