Go to the documentation of this file.
25 #include <VirtualRobot/Robot.h>
34 #include <armarx/control/njoint_controller/task_space/ControllerInterface.h>
56 using ConfigPtrT = ConfigurableNJointControllerConfigPtr;
59 using RtStatus = law::TaskspaceAdmittanceController::RtStatus;
65 std::vector<ControlTarget1DoFActuatorTorque*>
targets;
97 using ArmPtr = std::unique_ptr<ArmData>;
100 const NJointControllerConfigPtr& config,
103 std::string
getClassName(
const Ice::Current& = Ice::emptyCurrent)
const override;
110 const Ice::Current& iceCurrent = Ice::emptyCurrent)
override;
113 const Ice::Current& = Ice::emptyCurrent)
override;
115 getConfig(
const Ice::Current& iceCurrent = Ice::emptyCurrent)
override;
117 Ice::FloatSeq
getTCPVel(
const std::string& rns,
118 const Ice::Current& iceCurrent = Ice::emptyCurrent)
override;
125 const bool forceGuard,
126 const bool torqueGuard,
127 const Ice::Current& iceCurrent = Ice::emptyCurrent)
override;
129 const Ice::Current& iceCurrent = Ice::emptyCurrent)
override;
134 const std::map<std::string, ConstControlDevicePtr>&,
135 const std::map<std::string, ConstSensorDevicePtr>&);
148 void limbInit(
const std::string nodeSetName,
161 std::map<std::string, ArmPtr>
limb;
common::control_law::arondto::TaskspaceAdmittanceControllerConfig Config
std::vector< std::string > jointNames
std::map< std::string, ArmPtr > limb
std::shared_ptr< HandControlBase > HandControlPtr
void toggleGravityCompensation(const bool toggle, const Ice::Current &) override
ft sensor
std::map< std::string, VariantBasePtr > StringVariantBaseMap
void limbNonRT(ArmPtr &arm)
void rtPostDeactivateController() override
This function is called after the controller is deactivated.
TripleBuffer< Config > bufferConfigRtToUser
std::map< std::string, VirtualRobot::RobotNodeSetPtr > controllableNodeSets
void limbRTUpdateStatus(ArmPtr &arm, const double deltaT)
-----------------------------— Real time cotnrol --------------------------------------—
bool isSafeForceTorque(const std::string &nodeSetName, const Ice::Current &iceCurrent=Ice::emptyCurrent) override
-----------------------------— Other interaces ----------------------------------------—
void limbInit(const std::string nodeSetName, ArmPtr &arm, Config &cfg, VirtualRobot::RobotPtr &nonRtRobotPtr)
Config nonRtConfig
set data containers and buffers
void onPublish(const SensorAndControl &, const DebugDrawerInterfacePrx &, const DebugObserverInterfacePrx &) override
void additionalTaskSetTarget()
std::unique_ptr< ArmData > ArmPtr
void enableSafeGuardForceTorque(const std::string &nodeSetName, const bool forceGuard, const bool torqueGuard, const Ice::Current &iceCurrent=Ice::emptyCurrent) override
VirtualRobot::RobotPtr nonRtRobot
NJointControllerConfigPtr ConfigPtrT
void rtPreActivateController() override
This function is called before the controller is activated.
TripleBuffer< Config > bufferConfigNonRtToRt
void rtRun(const IceUtil::Time &sensorValuesTimestamp, const IceUtil::Time &timeSinceLastIteration) override
TODO make protected and use attorneys.
TripleBuffer< RtStatus > bufferRtStatusToOnPublish
std::vector< ControlTarget1DoFActuatorTorque * > targets
TripleBuffer< RtStatus > bufferRtStatusToUser
TripleBuffer< Config > bufferConfigRtToOnPublish
core::HandControlPtr hands
std::string kinematicChainName
names
dictionary< string, Ice::FloatSeq > TargetNullspaceMap
virtual void additionalTask()
void limbRTSetTarget(ArmPtr &arm, const Eigen::VectorXf &targetTorque)
law::TaskspaceAdmittanceController::ConfigDict ConfigDict
std::atomic_bool reInitPreActivate
Brief description of class NJointTaskspaceAdmittanceController.
TripleBuffer< RtStatus > bufferRtStatusToNonRt
void limbRT(ArmPtr &arm, const double deltaT)
void limbPublish(ArmPtr &arm, const DebugObserverInterfacePrx &debugObs)
This file is part of ArmarX.
bool additionalTaskUpdateStatus()
static WidgetDescription::WidgetPtr GenerateConfigDescription(const VirtualRobot::RobotPtr &, const std::map< std::string, ConstControlDevicePtr > &, const std::map< std::string, ConstSensorDevicePtr > &)
--------------------------------— GUI Widget ------------------------------------------—
armarx::core::time::DateTime Time
common::control_law::arondto::TaskspaceAdmittanceControllerConfigDict ConfigDict
std::atomic_bool rtFirstRun
flags
void handleRTNotSafeInNonRT()
void limbReInit(ArmPtr &arm)
std::shared_ptr< Dict > DictPtr
law::TaskspaceAdmittanceController controller
controller (maths)
::armarx::aron::data::dto::DictPtr getConfig(const Ice::Current &iceCurrent=Ice::emptyCurrent) override
bool updateTargetPose(const TargetPoseMap &targetPoseMap, const TargetNullspaceMap &targetNullspaceMap, const Ice::Current &=Ice::emptyCurrent) override
Ice::FloatSeq getTCPVel(const std::string &rns, const Ice::Current &iceCurrent=Ice::emptyCurrent) override
common::SensorDevicesForNJointTorqueController sensorDevices
devices
VirtualRobot::RobotPtr nonRtRobot
robot
void updateConfig(const ::armarx::aron::data::dto::DictPtr &dto, const Ice::Current &iceCurrent=Ice::emptyCurrent) override
NJointController interface.
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
void validateConfigData(Config &config, ArmPtr &arm)
dictionary< string, FloatSeqSeq > TargetPoseMap
law::TaskspaceAdmittanceController::RtStatus RtStatus
law::TaskspaceAdmittanceController::Config Config
TripleBuffer< Config > bufferConfigUserToNonRt
void onInitNJointController() override
NJointControllerBase interface.
static ConfigPtrT GenerateConfigFromVariants(const StringVariantBaseMap &values)
NJointTaskspaceAdmittanceController(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &)
std::shared_ptr< class Robot > RobotPtr