47 #ifndef _MIRA_ROTATETASK_H_ 48 #define _MIRA_ROTATETASK_H_ 55 namespace mira {
namespace navigation {
97 "RotateTask: speed must be non-negative.");
103 template<
typename Reflector>
110 "How much (and which direction) shall the robot rotate [deg]", 180.0f);
114 "How fast shall the robot rotate [positive deg/s]", 30.0f);
INTERNAL std::enable_if< std::is_floating_point< T >::value, T >::type deg2rad(T value)
Task for rotate a certain angle in-place with a given velocity.
Definition: RotateTask.h:63
Getter< T > rad2degGetter(const T &cref)
float rotateAngle
The requested rotation angle.
Definition: RotateTask.h:119
#define MIRA_REFLECT_BASE(reflector, BaseClass)
#define MIRA_THROW(ex, msg)
Setter< T > deg2radSetter(T &ref)
void reflect(Reflector &r)
The reflect method.
Definition: RotateTask.h:104
constexpr Deg2RadNonNegativeType Deg2RadNonNegative
Interface for sub tasks to be added to a navigation task.
Definition: Task.h:63
Base classes and interfaces for navigation tasks.
float rotateSpeed
The requested rotational speed.
Definition: RotateTask.h:122
RotateTask(float angle=deg2rad(180.0f), float speed=deg2rad(30.0f))
Creates a rotate task with given values.
Definition: RotateTask.h:91