MAV'RIC
Classes | Public Member Functions | Static Public Member Functions | Public Attributes
Geofence_cylinder Class Reference

Geofence with cylindrical shape. More...

#include <geofence_cylinder.hpp>

Inheritance diagram for Geofence_cylinder:
Inheritance graph
[legend]
Collaboration diagram for Geofence_cylinder:
Collaboration graph
[legend]

List of all members.

Classes

struct  conf_t
 Configuration structure. More...

Public Member Functions

 Geofence_cylinder (conf_t config=default_config())
 Constructor.
bool is_allowed (const global_position_t &position) const
 Indicates if the position is allowed by the geofence.
bool closest_border (const global_position_t &current_position, global_position_t &border_position, float &distance) const
 Computes the closest border between allowed and disallowed space.

Static Public Member Functions

static conf_t default_config (void)
 Default configuration.

Public Attributes

conf_t config_
 Configuration.

Detailed Description

Geofence with cylindrical shape.


Constructor & Destructor Documentation

Constructor.

Parameters:
configConfiguration structure

Member Function Documentation

bool Geofence_cylinder::closest_border ( const global_position_t current_position,
global_position_t border_position,
float &  distance 
) const [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

Implements Geofence.

Here is the call graph for this function:

Default configuration.

Returns:
config
bool Geofence_cylinder::is_allowed ( const global_position_t position) const [virtual]

Indicates if the position is allowed by the geofence.

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

Implements Geofence.

Here is the call graph for this function:


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