MAV'RIC
Public Member Functions
Geofence Class Reference

Interface for Geofence. More...

#include <geofence.hpp>

Inheritance diagram for Geofence:
Inheritance graph
[legend]

List of all members.

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 &current_position, global_position_t &border_position, float &distance) const =0
 Computes the closest border between allowed and disallowed space.

Detailed Description

Interface for Geofence.


Member Function Documentation

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.

Parameters:
current_positionCurrent position of the MAV (input)
border_positionClosest position at the border (output)
distanceDistance to closest border (output)
Returns:
success If false, no border_position and/or distance could be computed

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.

Returns:
boolean (true if allowed, false if not)

Implemented in Geofence_cylinder.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines