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::TaskspaceImpedanceController::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;
124 const bool forceGuard,
125 const bool torqueGuard,
126 const Ice::Current& iceCurrent = Ice::emptyCurrent)
override;
128 const Ice::Current& iceCurrent = Ice::emptyCurrent)
override;
133 const std::map<std::string, ConstControlDevicePtr>&,
134 const std::map<std::string, ConstSensorDevicePtr>&);
147 void limbInit(
const std::string nodeSetName,
160 std::map<std::string, ArmPtr>
limb;
TripleBuffer< Config > bufferConfigRtToOnPublish
TripleBuffer< Config > bufferConfigNonRtToRt
Brief description of class NJointTaskspaceImpedanceController.
TripleBuffer< Config > bufferConfigUserToNonRt
TripleBuffer< RtStatus > bufferRtStatusToUser
std::shared_ptr< HandControlBase > HandControlPtr
void limbRT(ArmPtr &arm, const double deltaT)
std::map< std::string, VariantBasePtr > StringVariantBaseMap
static ConfigPtrT GenerateConfigFromVariants(const StringVariantBaseMap &values)
void handleRTNotSafeInNonRT()
static WidgetDescription::WidgetPtr GenerateConfigDescription(const VirtualRobot::RobotPtr &, const std::map< std::string, ConstControlDevicePtr > &, const std::map< std::string, ConstSensorDevicePtr > &)
--------------------------------— GUI Widget ------------------------------------------—
law::TaskspaceImpedanceController::RtStatus RtStatus
core::HandControlPtr hands
void onInitNJointController() override
NJointControllerBase interface.
void calibrateFTSensor()
ft sensor
common::SensorDevicesForNJointTorqueController sensorDevices
devices
void limbInit(const std::string nodeSetName, ArmPtr &arm, Config &cfg, VirtualRobot::RobotPtr &nonRtRobotPtr)
NJointControllerConfigPtr ConfigPtrT
void limbPublish(ArmPtr &arm, const DebugObserverInterfacePrx &debugObs)
std::atomic_bool rtFirstRun
flags
std::vector< std::string > jointNames
common::control_law::arondto::TaskspaceImpedanceControllerConfigDict ConfigDict
TripleBuffer< RtStatus > bufferRtStatusToOnPublish
TripleBuffer< Config > bufferConfigRtToUser
void rtPostDeactivateController() override
This function is called after the controller is deactivated.
std::atomic_bool reInitPreActivate
void enableSafeGuardForceTorque(const std::string &nodeSetName, const bool forceGuard, const bool torqueGuard, const Ice::Current &iceCurrent=Ice::emptyCurrent) override
void rtRun(const IceUtil::Time &sensorValuesTimestamp, const IceUtil::Time &timeSinceLastIteration) override
TODO make protected and use attorneys.
void updateConfig(const ::armarx::aron::data::dto::DictPtr &dto, const Ice::Current &iceCurrent=Ice::emptyCurrent) override
NJointController interface.
dictionary< string, Ice::FloatSeq > TargetNullspaceMap
std::unique_ptr< ArmData > ArmPtr
void onPublish(const SensorAndControl &, const DebugDrawerInterfacePrx &, const DebugObserverInterfacePrx &) override
NJointTaskspaceImpedanceController(const RobotUnitPtr &robotUnit, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &)
Ice::FloatSeq getTCPVel(const std::string &rns, const Ice::Current &iceCurrent=Ice::emptyCurrent) override
Config nonRtConfig
set data containers and buffers
void limbRTSetTarget(ArmPtr &arm, const Eigen::VectorXf &targetTorque)
law::TaskspaceImpedanceController::ConfigDict ConfigDict
void validateConfigData(Config &config, ArmPtr &arm)
This file is part of ArmarX.
VirtualRobot::RobotPtr nonRtRobot
bool isSafeForceTorque(const std::string &nodeSetName, const Ice::Current &iceCurrent=Ice::emptyCurrent) override
-----------------------------— Other interaces ----------------------------------------—
std::string kinematicChainName
names
void rtPreActivateController() override
This function is called before the controller is activated.
armarx::core::time::DateTime Time
::armarx::aron::data::dto::DictPtr getConfig(const Ice::Current &iceCurrent=Ice::emptyCurrent) override
std::shared_ptr< Dict > DictPtr
virtual void additionalTask()
law::TaskspaceImpedanceController controller
controller (maths)
VirtualRobot::RobotPtr nonRtRobot
robot
std::map< std::string, VirtualRobot::RobotNodeSetPtr > controllableNodeSets
TripleBuffer< RtStatus > bufferRtStatusToNonRt
std::string getClassName(const Ice::Current &=Ice::emptyCurrent) const override
std::vector< ControlTarget1DoFActuatorTorque * > targets
void additionalTaskSetTarget()
std::map< std::string, ArmPtr > limb
dictionary< string, FloatSeqSeq > TargetPoseMap
law::TaskspaceImpedanceController::Config Config
common::control_law::arondto::TaskspaceImpedanceControllerConfig Config
void limbRTUpdateStatus(ArmPtr &arm, const double deltaT)
-----------------------------— Real time cotnrol --------------------------------------—
void limbReInit(ArmPtr &arm)
void limbNonRT(ArmPtr &arm)
bool updateTargetPose(const TargetPoseMap &targetPoseMap, const TargetNullspaceMap &targetNullspaceMap, const Ice::Current &=Ice::emptyCurrent) override
bool additionalTaskUpdateStatus()
std::shared_ptr< class Robot > RobotPtr