Go to the documentation of this file.
26 #include <VirtualRobot/VirtualRobot.h>
28 #include <RobotAPI/interface/units/RobotUnit/NJointCartesianTorqueController.h>
30 #include "../ControlTargets/ControlTarget1DoFActuator.h"
31 #include "../SensorValues/SensorValue1DoFActuator.h"
75 public NJointCartesianTorqueControllerInterface
78 using ConfigPtrT = NJointCartesianTorqueControllerConfigPtr;
80 const NJointControllerConfigPtr& config,
84 std::string
getClassName(
const Ice::Current&)
const override;
89 const Ice::Current&)
override;
96 const std::map<std::string, ConstControlDevicePtr>&,
97 const std::map<std::string, ConstSensorDevicePtr>&);
99 static NJointCartesianTorqueControllerConfigPtr
102 NJointCartesianTorqueControllerConfigPtr config,
106 static ::armarx::WidgetDescription::HBoxLayoutPtr
createSliders();
114 std::vector<ControlTarget1DoFActuatorTorque*>
targets;
119 std::string nodeSetName;
121 VirtualRobot::DifferentialIKPtr ik;
122 VirtualRobot::RobotNodePtr tcp;
133 const Ice::Current&)
override;
Brief description of class targets.
std::map< std::string, VariantBasePtr > StringVariantBaseMap
TYPEDEF_PTRS_HANDLE(NJointCartesianNaturalPositionController)
void callDescribedFunction(const std::string &name, const StringVariantBaseMap &valueMap, const Ice::Current &) override
std::string getClassName(const Ice::Current &) const override
void rtPreActivateController() override
This function is called before the controller is activated.
static NJointCartesianTorqueControllerConfigPtr GenerateConfigFromVariants(const StringVariantBaseMap &values)
The NJointCartesianTorqueController class.
void rtPostDeactivateController() override
This function is called after the controller is deactivated.
NJointCartesianTorqueController(RobotUnit *prov, const NJointControllerConfigPtr &config, const VirtualRobot::RobotPtr &)
void setControllerTarget(float forceX, float forceY, float forceZ, float torqueX, float torqueY, float torqueZ, const Ice::Current &) override
void rtRun(const IceUtil::Time &sensorValuesTimestamp, const IceUtil::Time &timeSinceLastIteration) override
TODO make protected and use attorneys.
::armarx::WidgetDescription::HBoxLayoutPtr createSliders()
std::string getNodeSetName() const
armarx::core::time::DateTime Time
NJointCartesianTorqueControllerConfigPtr ConfigPtrT
WidgetDescription::StringWidgetDictionary getFunctionDescriptions(const Ice::Current &) const override
The RobotUnit class manages a robot and its controllers.
static WidgetDescription::WidgetPtr GenerateConfigDescription(const VirtualRobot::RobotPtr &, const std::map< std::string, ConstControlDevicePtr > &, const std::map< std::string, ConstSensorDevicePtr > &)
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr