|
MAV'RIC
|
Interface for Geofence. More...
#include <geofence.hpp>

Public Member Functions | |
| virtual bool | is_allowed (const global_position_t &position) const =0 |
| Indicates if the position is allowed by the geofence. | |
| virtual bool | closest_border (const global_position_t ¤t_position, global_position_t &border_position, float &distance) const =0 |
| Computes the closest border between allowed and disallowed space. | |
Interface for Geofence.
| virtual bool Geofence::closest_border | ( | const global_position_t & | current_position, |
| global_position_t & | border_position, | ||
| float & | distance | ||
| ) | const [pure virtual] |
Computes the closest border between allowed and disallowed space.
| current_position | Current position of the MAV (input) |
| border_position | Closest position at the border (output) |
| distance | Distance to closest border (output) |
Implemented in Geofence_cylinder.
| virtual bool Geofence::is_allowed | ( | const global_position_t & | position | ) | const [pure virtual] |
Indicates if the position is allowed by the geofence.
Implemented in Geofence_cylinder.

1.7.6.1