ethz-asl / aerial_mapper

Real-time Dense Point Cloud, Digital Surface Map (DSM) and (Ortho-)Mosaic Generation for UAVs
BSD 3-Clause "New" or "Revised" License
543 stars 156 forks source link

Found bug when running 0-synthetic-cadastre-ortho-from-pcl.launch #33

Closed mdmosley1 closed 5 years ago

mdmosley1 commented 5 years ago

https://github.com/ethz-asl/aerial_mapper/blob/a57233db3628629dcd4b4c8b01c43d3ec6f560bc/aerial_mapper_demos/src/ortho/main-ortho-from-pcl.cc#L109

'point_cloud' is re-declared within the local scope of an else block. This line should be removed, or else the program crashes because CHECK(point_cloud.size() > 0) fails near the end of the program.

hitimo commented 5 years ago

Thanks a lot @mdmosley1