47 #ifndef _MIRA_ORIENTATIONTASK_H_ 48 #define _MIRA_ORIENTATIONTASK_H_ 55 namespace mira {
namespace navigation {
83 template<
typename Reflector>
85 if (Reflector::isReadOnly::value) {
87 r.property(
"Tolerance", a,
88 "The requested tolerance.",
92 r.property(
"Tolerance", a,
93 "The requested tolerance.",
106 template<
typename Reflector>
110 r.property(
"Orientation",
phi,
"The requested orientation.");
113 "The frame the angle is related to.",
"/GlobalFrame");
REFLECT_CTRLFLAG_TEMP_TRACKING
void reflectTolerance(PropertySerializer &r)
Definition: OrientationTask.h:99
Getter< T > rad2degGetter(const T &cref)
bool reached(float p) const
Calculates if the task is reached for the current orientation p.
Definition: OrientationTask.h:117
#define MIRA_REFLECT_BASE(reflector, BaseClass)
OrientationTask()
Create orientation task with orientation 0 and variance 0.
Definition: OrientationTask.h:69
Setter< T > deg2radSetter(T &ref)
Duration abs(const Duration &duration)
OrientationTask(float p, float t, const std::string &f="/GlobalFrame")
Create orientation task with given orientation and variance.
Definition: OrientationTask.h:78
float tolerance
The requested tolerance.
Definition: OrientationTask.h:127
Sub task that has the purpose to reach a given orientation with at least the given variance...
Definition: OrientationTask.h:63
constexpr Deg2RadNonNegativeType Deg2RadNonNegative
PropertyHint minimum(const T &min)
void reflect(Reflector &r)
The reflect method.
Definition: OrientationTask.h:107
void reflectTolerance(Reflector &r)
Definition: OrientationTask.h:84
Interface for sub tasks to be added to a navigation task.
Definition: Task.h:63
Base classes and interfaces for navigation tasks.
void property(const char *name, T &member, const char *comment, PropertyHint &&hint=PropertyHint(), ReflectCtrlFlags flags=REFLECT_CTRLFLAG_NONE)
T smallestDifferenceValue(const Angle< T > &other) const
std::string frameID
The frame the angle is related to.
Definition: OrientationTask.h:130
Anglef phi
The requested orientation.
Definition: OrientationTask.h:124