gaoxiang12 / octomap_tutor

A tutorial about octomap. Please check my blog for detail: cnblogs.com/gaoxiang12
MIT License
214 stars 88 forks source link

First line of OcTree file header does not start with "# Octomap OcTree file #1

Open FaiScofield opened 6 years ago

FaiScofield commented 6 years ago

the xxx.ot file converted from 'pcd2octomap' or 'pcd2colorOctomap' have missed important information, which cause the error below, when I use the 'octovis' to see the result.

ERROR: First line of OcTree file header does not start with "# Octomap OcTree file

How to solve this problem? Thanks a lot.

righthand0618 commented 6 years ago

I met the same problem, and I found that octomap should be written by 'writeBinary' to 'xxx.bt' file while colorful octomap be written by 'write' to 'xxx.ot' file. I solved the problem by fixing the mistake and hope this experience will be helpful.