26const float armarx::JointSimulationDevice::nullFloat = 0;
29 armarx::NameValueMap& ctrlpos,
30 armarx::NameValueMap& ctrlvel,
31 armarx::NameValueMap& ctrltor) :
66 curJointCtrl->mapVal =
nullptr;
71 *(newJointCtrl->mapVal) = *(newJointCtrl->sensVal);
79 <<
"JointBaseCtrl(" +
getControlMode() +
") has null map target value";
virtual void rtSetActiveJointController(JointController *jointCtrl)
Activates the given JointController for this device.
void addJointController(JointController *jointCtrl)
adds the Joint controller to this ControlDevice
ControlDevice(const std::string &name)
Create a ControlDevice with the given name.
JointController * rtGetActiveJointController()
const std::string & getDeviceName() const
The JointController class represents one joint in one control mode.
virtual const std::string & getControlMode() const
JointSimController< ControlTarget1DoFActuatorTorque > jointCtrlTor
JointSimController< DummyControlTargetEmergencyStop > jointCtrlESt
JointSimController< ControlTarget1DoFActuatorPosition > jointCtrlPos
JointSimController< DummyControlTargetStopMovement > jointCtrlMSt
JointSimController< ControlTarget1DoFActuatorVelocity > jointCtrlVel
JointSimulationDevice(const std::string &name, NameValueMap &ctrlpos, NameValueMap &ctrlvel, NameValueMap &ctrltor)
void rtSetActiveJointController(JointController *jointCtrl) override
Activates the given JointController for this device.
SensorDeviceTemplate(const std::string &name)
SensorValue1DoFActuator sensorValue
This class represents some part of the robot providing sensor values.
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
void rtRun(const IceUtil::Time &, const IceUtil::Time &) override
called when this JointController is run