47 #ifndef _MIRA_UNICYCLEBASEDROBOTMODEL_H_ 48 #define _MIRA_UNICYCLEBASEDROBOTMODEL_H_ 54 namespace mira {
namespace robot {
65 template<
typename Reflector>
67 const char* name,
float& member,
const char* comment) {
68 if (Reflector::isReadOnly::value) {
79 const char* name,
float& member,
const char* comment) {
85 template<
typename Reflector>
89 r.property(
"MaxBackwardVelocity", maxBackwardVelocity,
90 "The maximum velocity for driving backward (both wheels) [m/s]");
91 r.property(
"MaxForwardVelocity", maxForwardVelocity,
92 "The maximum velocity for driving forward (both wheels) [m/s]");
93 reflectDegrees(r,
"MaxRotVelocity", maxRotVelocity,
94 "The maximum velocity for rotating [deg/s]");
95 r.property(
"TransEpsilonVelocity", transEpsilonVelocity,
96 "The min. translational speed that the robot platform can do [m/s]. " 97 "Lower velocities result in standing still.");
98 reflectDegrees(r,
"RotEpsilonVelocity", rotEpsilonVelocity,
99 "The min. rotational speed that the robot platform can do [deg/s]. " 100 "Lower velocities result in standing still.");
102 r.property(
"MaxTransAcceleration", maxTransAcceleration,
103 "Max. acceleration [m/s^2]");
104 r.property(
"MaxTransDeceleration", maxTransDeceleration,
105 "Max. deceleration [m/s^2]");
106 reflectDegrees(r,
"MaxRotAcceleration", maxRotAcceleration,
107 "Max. acceleration [deg/s^2]");
108 reflectDegrees(r,
"MaxRotDeceleration", maxRotDeceleration,
109 "Max. deceleration [deg/s^2]");
110 r.property(
"MaxEmergencyDeceleration", maxEmergencyDeceleration,
111 "Max. deceleration in case of an emergency [m/s^2]. Must be greater than zero.");
114 float getMaxTransVelocity()
const;
124 float lookAheadTime,
int samples);
REFLECT_CTRLFLAG_TEMP_TRACKING
float getMaxTransVelocity() const
Definition: UnicycleBasedRobotModel.h:161
std::vector< PoseVelocityTrajectorySample, Eigen::aligned_allocator< PoseVelocityTrajectorySample > > PoseVelocityTrajectory
A sampled trajectory, a collection of trajectory samples, each containing a pose and velocity at a de...
Definition: Trajectory.h:118
float rotEpsilonVelocity
Definition: UnicycleBasedRobotModel.h:141
Getter< T > rad2degGetter(const T &cref)
float maxEmergencyDeceleration
Max. deceleration in case of an emergency. Must be greater than zero.
Definition: UnicycleBasedRobotModel.h:148
void reflectDegrees(Reflector &r, const char *name, float &member, const char *comment)
Definition: UnicycleBasedRobotModel.h:66
float maxRotAcceleration
Max. acceleration.
Definition: UnicycleBasedRobotModel.h:151
#define MIRA_REFLECT_BASE(reflector, BaseClass)
Definition: UnicycleBasedRobotModel.h:58
float maxBackwardVelocity
The maximum velocity for driving backward (both wheels) [m/s].
Definition: UnicycleBasedRobotModel.h:128
float maxTransDeceleration
Max. deceleration. Must be greater than zero.
Definition: UnicycleBasedRobotModel.h:146
boost::shared_ptr< UnicycleBasedRobotModel > UnicycleBasedRobotModelPtr
Typedef for UnicycleBasedRobotModel pointer.
Definition: UnicycleBasedRobotModel.h:157
#define MIRA_ABSTRACT_OBJECT(classIdentifier)
float maxRotDeceleration
Max. deceleration. Must be greater than zero.
Definition: UnicycleBasedRobotModel.h:153
float maxForwardVelocity
The maximum velocity for driving forward (both wheels) [m/s].
Definition: UnicycleBasedRobotModel.h:131
Setter< T > deg2radSetter(T &ref)
Duration abs(const Duration &duration)
float maxTransAcceleration
Max. acceleration.
Definition: UnicycleBasedRobotModel.h:144
float maxRotVelocity
The maximum velocity for rotating [deg/s].
Definition: UnicycleBasedRobotModel.h:134
float transEpsilonVelocity
the min.
Definition: UnicycleBasedRobotModel.h:140
constexpr Deg2RadNonNegativeType Deg2RadNonNegative
void reflect(Reflector &r)
Definition: UnicycleBasedRobotModel.h:86
PropertyHint minimum(const T &min)
void reflectDegrees(PropertySerializer &r, const char *name, float &member, const char *comment)
Definition: UnicycleBasedRobotModel.h:78
Base class for all robot models, such as DifferentialRobotModel.
Definition: RobotModel.h:68
void property(const char *name, T &member, const char *comment, PropertyHint &&hint=PropertyHint(), ReflectCtrlFlags flags=REFLECT_CTRLFLAG_NONE)
#define MIRA_ROBOT_DATATYPES_EXPORT
Definition: RobotDataTypesExports.h:61
Base class for robot models.