leggedrobotics / traversability_estimation

Traversability mapping for mobile rough terrain navigation
Other
384 stars 98 forks source link

Untraversable polygon and mutex #62

Closed marco-tranzatto closed 5 years ago

marco-tranzatto commented 5 years ago

This PR introduces the feature to request the untraversable convex polygon of the area checked for traversability (in attached pictures then thin green line is the area checked for traversability, whereas the red area is the untraversable convex polygon). As side effect, the PR fixes even the mutexing error mentioned in closed PR #61 (the error was easier to provoke while testing this PR, and therefore is part of it)

Main changes:

vlcsnap-2019-05-27-17h10m06s901

vlcsnap-2019-05-27-17h09m57s290

ps. PR riles on a new method from GridMapCore (grid_map::Polygon::monotoneChainConvexHullOfPoints) that is going to be exposed soon to the public version.