|
The JointController class represents one joint in one control mode. More...
#include <RobotAPI/components/units/RobotUnit/JointControllers/JointController.h>
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. More... | |
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 More... | |
virtual void | rtRun (const IceUtil::Time &sensorValuesTimestamp, const IceUtil::Time &timeSinceLastIteration)=0 |
called when this JointController is run More... | |
Friends | |
class | ControlDevice |
called when this JointController is deactivated More... | |
The JointController class represents one joint in one control mode.
It holds a ControlTargetBase. This target is used as setpoint for the controller.
Definition at line 51 of file JointController.h.
|
virtualdefault |
|
inlinevirtual |
Reimplemented in PlatformSimulationDevice::JointStopMovementController, and PlatformSimulationDevice::JointEmergencyStopController.
Definition at line 163 of file JointController.h.
|
inline |
Definition at line 175 of file JointController.h.
|
virtual |
|
inline |
Definition at line 63 of file JointController.h.
|
inlinepure virtual |
Implemented in PlatformSimulationDevice::JointStopMovementController, PlatformSimulationDevice::JointEmergencyStopController, JointSimulationDevice::JointSimController< TargT >, JointSimulationDevice::JointSimController< DummyControlTargetStopMovement >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorPosition >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorVelocity >, JointSimulationDevice::JointSimController< DummyControlTargetEmergencyStop >, JointSimulationDevice::JointSimController< ControlTarget1DoFActuatorTorque >, PlatformSimulationDevice::JointVelocityController, and JointControllerTemplate< ControlTargetType >.
Definition at line 144 of file JointController.h.
|
inlinevirtual |
Reimplemented in PlatformSimulationDevice::JointStopMovementController, PlatformSimulationDevice::JointEmergencyStopController, JointSimulationDevice::JointSimController< TargT >, and PlatformSimulationDevice::JointVelocityController.
Definition at line 169 of file JointController.h.
|
inline |
Definition at line 187 of file JointController.h.
ControlDevice & getParent | ( | ) | const |
Definition at line 30 of file JointController.cpp.
|
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. |
Definition at line 37 of file JointController.cpp.
|
inline |
Definition at line 181 of file JointController.h.
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in PlatformSimulationDevice::JointStopMovementController, and PlatformSimulationDevice::JointEmergencyStopController.
Definition at line 157 of file JointController.h.
|
inlineprotectedvirtual |
Definition at line 210 of file JointController.h.
|
inlineprotectedvirtual |
called when this JointController is activated
Definition at line 205 of file JointController.h.
|
inlinevirtual |
|
protectedpure virtual |
|
friend |
called when this JointController is deactivated
Definition at line 116 of file JointController.h.