Skip to content

Commit

Permalink
Removed check for "OcTree" id in binary deserialization, see Issue #4
Browse files Browse the repository at this point in the history
…and #5
  • Loading branch information
ahornung committed Aug 9, 2015
1 parent bf64708 commit 2b390b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/octomap_msgs/conversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace octomap_msgs{
* You will need to free the memory when you're done.
*/
static inline octomap::OcTree* binaryMsgToMap(const Octomap& msg){
if (msg.id != "OcTree" || !msg.binary)
if (!msg.binary)
return NULL;

octomap::OcTree* octree = new octomap::OcTree(msg.resolution);
Expand Down

0 comments on commit 2b390b6

Please sign in to comment.