Bratmobile
Public Member Functions | Public Attributes | List of all members
EndCriteria Struct Reference

Defines the end criteria for a Task, i.e. when it is considered to be finished. More...

#include <measurement.h>

Collaboration diagram for EndCriteria:
Collaboration graph
[legend]

Public Member Functions

float getStandardError (Angle a, Distance d)
 Calculates normalised cumulative standard error for the given angle and distance.
 
float getStandardError (Angle a, Distance d, State n)
 Calculates the normalised cumulative standard error for the given angle, distance; state information. More...
 
bool hasEnd ()
 
void operator= (EndCriteria ec)
 
void adjust (const b2Transform &delta)
 Ajusts endcriteria based on the delta transform (2D transform representing how much the robot has travelled) More...
 

Public Attributes

Angle angle
 
Distance distance
 

Detailed Description

Defines the end criteria for a Task, i.e. when it is considered to be finished.

Member Function Documentation

◆ adjust()

void EndCriteria::adjust ( const b2Transform &  delta)

Ajusts endcriteria based on the delta transform (2D transform representing how much the robot has travelled)

Parameters
delta

◆ getStandardError()

float EndCriteria::getStandardError ( Angle  a,
Distance  d,
State  n 
)

Calculates the normalised cumulative standard error for the given angle, distance; state information.

Parameters
nare used to add a penalty if the state results in collision

The documentation for this struct was generated from the following files: