Go to the documentation of this file.
27 #include <VirtualRobot/IK/DifferentialIK.h>
28 #include <VirtualRobot/Robot.h>
30 #include <RobotAPI/interface/units/RobotUnit/NJointCartesianTorqueController.h>
32 #include "../ControlTargets/ControlTarget1DoFActuator.h"
33 #include "../SensorValues/SensorValue1DoFActuator.h"
77 public NJointCartesianTorqueControllerInterface
80 using ConfigPtrT = NJointCartesianTorqueControllerConfigPtr;
82 const NJointControllerConfigPtr& config,
86 std::string
getClassName(
const Ice::Current&)
const override;
91 const Ice::Current&)
override;
98 const std::map<std::string, ConstControlDevicePtr>&,
99 const std::map<std::string, ConstSensorDevicePtr>&);
101 static NJointCartesianTorqueControllerConfigPtr
104 NJointCartesianTorqueControllerConfigPtr config,
108 static ::armarx::WidgetDescription::HBoxLayoutPtr
createSliders();
116 std::vector<ControlTarget1DoFActuatorTorque*> targets;
121 std::string nodeSetName;
123 VirtualRobot::DifferentialIKPtr ik;
124 VirtualRobot::RobotNodePtr tcp;
135 const Ice::Current&)
override;
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