Open lericson opened 4 years ago
I bet my patch breaks the tests by the way
A ray is cast from 'origin' with a given direction, the first non-free cell is returned in 'end' (as center coordinate). This could also be the origin node if it is occupied or unknown. castRay() returns true if an occupied node was hit by the raycast. If the raycast returns false you can search() the node at 'end' and see whether it's unknown space.
According to the octomap API, the end coordinates are useful regardless of the return of castRay -- the user needs to check the returned voxel.
This is suitable for
git am
.