1 #ifndef YOUBOT_FOURSWEDISHWHEELOMNIBASEKINEMATIC_H 2 #define YOUBOT_FOURSWEDISHWHEELOMNIBASEKINEMATIC_H 76 virtual void cartesianVelocityToWheelVelocities(
const quantity<si::velocity>& longitudinalVelocity,
const quantity<si::velocity>& transversalVelocity,
const quantity<si::angular_velocity>& angularVelocity, std::vector<quantity<angular_velocity> >& wheelVelocities);
83 virtual void wheelVelocitiesToCartesianVelocity(
const std::vector<quantity<angular_velocity> >& wheelVelocities, quantity<si::velocity>& longitudinalVelocity, quantity<si::velocity>& transversalVelocity, quantity<angular_velocity>& angularVelocity);
90 virtual void wheelPositionsToCartesianPosition(
const std::vector<quantity<plane_angle> >& wheelPositions, quantity<si::length>& longitudinalPosition, quantity<si::length>& transversalPosition, quantity<plane_angle>& orientation);
97 virtual void cartesianPositionToWheelPositions(
const quantity<si::length>& longitudinalPosition,
const quantity<si::length>& transversalPosition,
const quantity<plane_angle>& orientation, std::vector<quantity<plane_angle> >& wheelPositions);
virtual void wheelVelocitiesToCartesianVelocity(const std::vector< quantity< angular_velocity > > &wheelVelocities, quantity< si::velocity > &longitudinalVelocity, quantity< si::velocity > &transversalVelocity, quantity< angular_velocity > &angularVelocity)
virtual ~FourSwedishWheelOmniBaseKinematic()
abstract class of a wheeled based / platform kinematic
quantity< si::length > longitudinalPos
void setConfiguration(const FourSwedishWheelOmniBaseKinematicConfiguration &configuration)
void getConfiguration(FourSwedishWheelOmniBaseKinematicConfiguration &configuration) const
std::vector< quantity< plane_angle > > lastWheelPositions
quantity< si::length > transversalPos
virtual void cartesianPositionToWheelPositions(const quantity< si::length > &longitudinalPosition, const quantity< si::length > &transversalPosition, const quantity< plane_angle > &orientation, std::vector< quantity< plane_angle > > &wheelPositions)
FourSwedishWheelOmniBaseKinematic()
quantity< plane_angle > angle
FourSwedishWheelOmniBaseKinematicConfiguration config
Implementation of a base kinematic with four swedish wheels. The youBot base kinematic.
Configuration for the base kinematic with four swedish wheels.
virtual void cartesianVelocityToWheelVelocities(const quantity< si::velocity > &longitudinalVelocity, const quantity< si::velocity > &transversalVelocity, const quantity< si::angular_velocity > &angularVelocity, std::vector< quantity< angular_velocity > > &wheelVelocities)
bool lastWheelPositionInitialized
virtual void wheelPositionsToCartesianPosition(const std::vector< quantity< plane_angle > > &wheelPositions, quantity< si::length > &longitudinalPosition, quantity< si::length > &transversalPosition, quantity< plane_angle > &orientation)