GAMS
1.4.0
|
A simple bounds checker which tests whether the current position is within the given number of meters of the expected position, and whether the difference in angles is within the given number of radians. More...
#include <Epsilon.h>
Public Member Functions | |
Epsilon () | |
Use default values for position and angle tolerance. More... | |
Epsilon (double dist) | |
Use default value for angle tolerance. More... | |
template<typename AngleUnits > | |
Epsilon (double dist, double angle, AngleUnits u) | |
Use specified tolerances, with custom angle units. More... | |
Epsilon (double dist_tol, double radians_tol) | |
Use specified tolerances. More... | |
bool | check_orientation (const pose::Orientation ¤t, const pose::Orientation &target) const override |
Override to return whether the current orientation is within the expected bounds of target. More... | |
bool | check_position (const pose::Position ¤t, const pose::Position &target) const override |
Override to return whether the current position is within the expected bounds of target. More... | |
Private Attributes | |
double | dist_ = 0.1 |
double | radians_ = M_PI/16 |
A simple bounds checker which tests whether the current position is within the given number of meters of the expected position, and whether the difference in angles is within the given number of radians.
|
inline |
|
inline |
|
inline |
|
inline |
Use specified tolerances, with custom angle units.
dist | the position tolerance (in meters) |
angle | the angle tolerance (in units given) |
u | an angle units object (such as pose::radians, pose::degrees, or pose::revolutions) |
AngleUnits | the units type for angle (inferred from u) |
|
inlineoverridevirtual |
Override to return whether the current orientation is within the expected bounds of target.
Implements gams::pose::OrientationBounds.
|
inlineoverridevirtual |
Override to return whether the current position is within the expected bounds of target.
Implements gams::pose::PositionBounds.