Go to the documentation of this file.
27 #include <VirtualRobot/IK/DifferentialIK.h>
28 #include <VirtualRobot/Robot.h>
30 #include "../ControlTargets/ControlTarget1DoFActuator.h"
31 #include "../SensorValues/SensorValue1DoFActuator.h"
76 const NJointTCPControllerConfigPtr& config,
80 std::string
getClassName(
const Ice::Current&)
const override;
85 const Ice::Current&)
override;
92 const std::map<std::string, ConstControlDevicePtr>&,
93 const std::map<std::string, ConstSensorDevicePtr>&);
95 static NJointTCPControllerConfigPtr
107 static ::armarx::WidgetDescription::WidgetSeq
createSliders();
114 std::vector<ControlTarget1DoFActuatorVelocity*> targets;
115 std::vector<const SensorValue1DoFActuatorPosition*> sensors;
117 VirtualRobot::RobotNodePtr tcp;
118 VirtualRobot::DifferentialIKPtr ik;
120 std::string nodeSetName;
void setVelocities(float xVel, float yVel, float zVel, float rollVel, float pitchVel, float yawVel, VirtualRobot::IKSolver::CartesianSelection mode)
std::map< std::string, VariantBasePtr > StringVariantBaseMap
TYPEDEF_PTRS_HANDLE(NJointCartesianNaturalPositionController)
static WidgetDescription::WidgetPtr GenerateConfigDescription(const VirtualRobot::RobotPtr &, const std::map< std::string, ConstControlDevicePtr > &, const std::map< std::string, ConstSensorDevicePtr > &)
void callDescribedFunction(const std::string &name, const StringVariantBaseMap &valueMap, const Ice::Current &) override
The NJointTCPController class.
const std::string nodeSetName
NJointControllerConfigPtr ConfigPtrT
NJointTCPController(RobotUnit *prov, const NJointTCPControllerConfigPtr &config, const VirtualRobot::RobotPtr &r)
WidgetDescription::StringWidgetDictionary getFunctionDescriptions(const Ice::Current &) const override
void rtPostDeactivateController() override
This function is called after the controller is deactivated.
std::string getClassName(const Ice::Current &) const override
NJointTCPControllerConfig(std::string const &nodeSetName, const std::string &tcpName)
std::string getNodeSetName() const
armarx::core::time::DateTime Time
void rtRun(const IceUtil::Time &sensorValuesTimestamp, const IceUtil::Time &timeSinceLastIteration) override
TODO make protected and use attorneys.
::armarx::WidgetDescription::WidgetSeq createSliders()
void rtPreActivateController() override
This function is called before the controller is activated.
VirtualRobot::IKSolver::CartesianSelection mode
const std::string tcpName
The RobotUnit class manages a robot and its controllers.
static NJointTCPControllerConfigPtr GenerateConfigFromVariants(const StringVariantBaseMap &values)
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr