50 #ifndef _MIRA_GENERICROBOTMODEL_H_ 51 #define _MIRA_GENERICROBOTMODEL_H_ 53 namespace mira {
namespace robot {
68 template<
typename Reflector>
72 r.member(
"WheelGeometry",
wheelGeometry,
"The position of each wheel");
86 Eigen::Dynamic,2>& castorWheelState);
103 float lookAheadTime,
int samples);
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
boost::shared_ptr< GenericRobotModel > GenericRobotModelPtr
Typedef for GenericRobotModel pointer.
Definition: GenericRobotModel.h:112
A generic robot model that allows to specify a wheel geometry for multi wheel robots with fixed or no...
Definition: GenericRobotModel.h:63
#define MIRA_REFLECT_BASE(reflector, BaseClass)
virtual float predictStandstillDistance(const Velocity2 &v) const
Implementation of RobotModel.
void reflect(Reflector &r)
Definition: GenericRobotModel.h:69
virtual Pose2 localKinematics(const Velocity2 &v, float dt) const
Implementation of RobotModel.
virtual PoseVelocityTrajectory generateTrajectory(Velocity2 v, const Velocity2 &targetV, float lookAheadTime, int samples)
Generates a trajectory by accelerating/decelerating starting at velocity v for lookAheadTime time up ...
virtual float predictStandstillRotation(const Velocity2 &v) const
Calculate the rotation that is needed for braking to stand still, if the robot moves with the specifi...
#define MIRA_OBJECT(classIdentifier)
Base class for all robot models, such as DifferentialRobotModel.
Definition: RobotModel.h:67
Velocity2 computeRobotVelocity(const Eigen::Matrix< float, Eigen::Dynamic, 2 > &castorWheelState)
Computes the robots overall velocity from the readings of its wheels.
std::vector< Pose2 > wheelGeometry
The position of each wheel relative to the robots base.
Definition: GenericRobotModel.h:108
Base class for robot models.