You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
z$ rosrun rviz rviz [14-11-06 17:03]
[ INFO] [1415289850.007577884]: rviz version 1.11.3
[ INFO] [1415289850.007641335]: compiled against OGRE version 1.8.1 (Byatis)
[ INFO] [1415289850.245712863]: Stereo is NOT SUPPORTED
[ INFO] [1415289850.245825528]: OpenGl version: 3 (GLSL 1.3).
rviz: /opt/ros/indigo/include/octomap_msgs/conversions.h:58: octomap::AbstractOcTree* octomap_msgs::fullMsgToMap(const Octomap&): Assertion `msg.data.size() > 0' failed.
Here is the publisher sample example:
octomap.binary, octomap.id, octomap.resolution, octomap.data=octomap_str_to_tuple(octomap_bin)
if (len(octomap.data) ==0):
octomap.data= []
self.pub.publish(octomap)
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():
Thanks for the report! I just fixed this in the indigo-devel branch at octomap_msgs (OctoMap/octomap_msgs@ba05c79). 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():
The text was updated successfully, but these errors were encountered: