MIRA
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
PositionTask Class Referenceabstract

Task for driving to a given position providing two limits for a hysteresis that can be applied when checking for goal reached. More...

#include <navigation/tasks/PositionTask.h>

Inheritance diagram for PositionTask:
Inheritance graph
[legend]

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW PositionTask ()
 Creates a task with both tolerances 0. More...
 
 PositionTask (const Point2f &pos, float maxT, const std::string &f="/GlobalFrame")
 Creates a task with given position and one tolerance that is used for both min and max tolerance. More...
 
 PositionTask (const Point2f &pos, float minT, float maxT, const std::string &f="/GlobalFrame")
 Creates a task with given position and tolerances. More...
 
template<typename Reflector >
void reflect (Reflector &r)
 The reflect method. More...
 
bool reached (const Point2f &pos) const
 Calculates if the task is reached for the current position pos. More...
 
Class const & getClass () const
 

Static Public Member Functions

static PseudoClass const & CLASS ()
 

Public Attributes

Point2f position
 The request position. More...
 
float minTolerance
 The minimum tolerance/lower limit for path planner hysteresis. More...
 
float maxTolerance
 The maximum tolerance/upper limit for path planner hysteresis. More...
 
std::string frameID
 The frame the position is related to. More...
 

Protected Member Functions

virtual Class const & internalGetClass () const=0
 

Detailed Description

Task for driving to a given position providing two limits for a hysteresis that can be applied when checking for goal reached.

The minimum tolerance is the distance where the path planner stops driving nearer to the given position. The maximum tolerance is the maximum allowed distance to the given position. When this distance is exceeded the path planner starts again driving nearer to the position until the minimum distance is reached again....

Constructor & Destructor Documentation

◆ PositionTask() [1/3]

EIGEN_MAKE_ALIGNED_OPERATOR_NEW PositionTask ( )
inline

Creates a task with both tolerances 0.

◆ PositionTask() [2/3]

PositionTask ( const Point2f pos,
float  maxT,
const std::string &  f = "/GlobalFrame" 
)
inline

Creates a task with given position and one tolerance that is used for both min and max tolerance.

Parameters
[in]posThe request position.
[in]maxTThe min and max tolerance in [m].
[in]fThe frame ID.

◆ PositionTask() [3/3]

PositionTask ( const Point2f pos,
float  minT,
float  maxT,
const std::string &  f = "/GlobalFrame" 
)
inline

Creates a task with given position and tolerances.

Parameters
[in]posThe request position.
[in]minTThe minimum tolerance in [m].
[in]maxTThe maximum tolerance in [m].
[in]fThe frame ID.

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

The reflect method.

◆ reached()

bool reached ( const Point2f pos) const
inline

Calculates if the task is reached for the current position pos.

Member Data Documentation

◆ position

Point2f position

The request position.

◆ minTolerance

float minTolerance

The minimum tolerance/lower limit for path planner hysteresis.

◆ maxTolerance

float maxTolerance

The maximum tolerance/upper limit for path planner hysteresis.

◆ frameID

std::string frameID

The frame the position is related to.


The documentation for this class was generated from the following file: