Go to the documentation of this file.
26 #include <Eigen/Geometry>
32 NJointControllerRegistration<NJointHolonomicPlatformRelativePositionController>
34 "NJointHolonomicPlatformRelativePositionController");
39 const NJointHolonomicPlatformRelativePositionControllerConfigPtr& cfg,
41 pid(cfg->p, cfg->i, cfg->d, cfg->maxVelocity, cfg->maxAcceleration)
48 <<
"The actuator '" << cfg->platformName <<
"' has no control mode "
49 << ControlModes::HolonomicPlatformVelocity;
81 pid.
update(timeSinceLastIteration.toSecondsDouble(),
82 relativeCurrentPosition,
88 Eigen::Vector2f localTargetVelocity =
96 oriCtrl.
dt = timeSinceLastIteration.toSecondsDouble();
131 float translationAccuracy,
132 float rotationAccuracy)
const NJointHolonomicPlatformRelativePositionControllerTarget & rtGetControlStruct() const
The SensorValueBase class.
ControlTargetBase * useControlTarget(const std::string &deviceName, const std::string &controlMode)
Declares to calculate the ControlTarget for the given ControlDevice in the given ControlMode when rtR...
void update(const double deltaSec, const PIDVectorX &measuredValue, const PIDVectorX &targetValue)
void preallocate(size_t size)
NJointHolonomicPlatformRelativePositionControllerTarget & getWriterControlStruct()
std::lock_guard< std::recursive_mutex > LockGuardType
void writeControlStruct()
MutexType controlDataMutex
std::shared_ptr< PIDController > pid
armarx::core::time::DateTime Time
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
const PIDVectorX & getControlValue() const
NJointControllerRegistration< NJointHolonomicPlatformRelativePositionController > registrationNJointHolonomicPlatformRelativePositionController("NJointHolonomicPlatformRelativePositionController")
The RobotUnit class manages a robot and its controllers.
This file offers overloads of toIce() and fromIce() functions for STL container types.
const SensorValueBase * useSensorValue(const std::string &sensorDeviceName) const
Get a const ptr to the given SensorDevice's SensorValue.
std::shared_ptr< class Robot > RobotPtr