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