|
|
The JointController class represents one joint in one control mode. More...
#include <RobotAPI/components/units/RobotUnit/JointControllers/JointController.h>
Inheritance diagram for JointController:Public Member Functions | |
| virtual const std::string & | getControlMode () const |
| std::size_t | getControlModeHash () const |
| virtual const ControlTargetBase * | getControlTarget () const |
| template<class T> | |
| const T * | getControlTarget () const |
| virtual ControlTargetBase * | getControlTarget ()=0 |
| virtual std::string | getHardwareControlMode () const |
| std::size_t | getHardwareControlModeHash () const |
| ControlDevice & | getParent () const |
| virtual StringVariantBaseMap | publish (const DebugDrawerInterfacePrx &draw, const DebugObserverInterfacePrx &observer) const |
| Hook for publishing data from JointController, mainly for debugging purposes. | |
| std::size_t | rtGetControlModeHash () const |
| std::size_t | rtGetHardwareControlModeHash () const |
| ControlDevice & | rtGetParent () const |
| template<class T> | |
| T & | rtGetParent () const |
| virtual bool | rtIsTargetValid () const |
| virtual void | rtResetTarget () |
| virtual | ~JointController ()=default |
Protected Member Functions | |
| virtual void | rtPostDeactivateController () |
| virtual void | rtPreActivateController () |
| called when this JointController is activated | |
| virtual void | rtRun (const IceUtil::Time &sensorValuesTimestamp, const IceUtil::Time &timeSinceLastIteration)=0 |
| called when this JointController is run | |
Friends | |
| class | ControlDevice |
| called when this JointController is deactivated | |
The JointController class represents one joint in one control mode.
It holds a ControlTargetBase. This target is used as setpoint for the controller.
|
virtualdefault |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
pure virtual |
Implemented in JointControllerTemplate< ControlTargetType >, JointSimulationDevice::JointSimController< TargT >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorPosition >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorTorque >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorVelocity >, JointSimulationDevice::JointSimController< DummyControlTargetEmergencyStop >, JointSimulationDevice::JointSimController< DummyControlTargetStopMovement >, PlatformSimulationDevice::JointEmergencyStopController, PlatformSimulationDevice::JointStopMovementController, and PlatformSimulationDevice::JointVelocityController.
|
inlinevirtual |
Reimplemented in JointSimulationDevice::JointSimController< TargT >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorPosition >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorTorque >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorVelocity >, JointSimulationDevice::JointSimController< DummyControlTargetEmergencyStop >, JointSimulationDevice::JointSimController< DummyControlTargetStopMovement >, PlatformSimulationDevice::JointEmergencyStopController, PlatformSimulationDevice::JointStopMovementController, and PlatformSimulationDevice::JointVelocityController.
|
inline |
| ControlDevice & getParent | ( | ) | const |
|
virtual |
Hook for publishing data from JointController, mainly for debugging purposes.
The preferred way is to use the return value of the function to publish the data. This function is called in the publish thread, not the RT thread. Thus, appropriate lock-free synchronization (e.g. atomic variables or TrippleBuffer) must be used to move the data from RT thread to the publish thread.
| draw | Interface proxy to the DebugDrawer topic. |
| observer | Interface proxy to DebugObserver topic. |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
called when this JointController is activated
|
inlinevirtual |
|
protectedpure virtual |
|
friend |
called when this JointController is deactivated