Go to the documentation of this file.
26 #include <VirtualRobot/Robot.h>
32 #include <armarx/control/njoint_controller/joint_space/ControllerInterface.h>
86 using ConfigPtrT = NJointZeroTorqueOrVelocityWithFTControllerConfigPtr;
89 const NJointZeroTorqueOrVelocityWithFTControllerConfigPtr& config,
93 std::string
getClassName(
const Ice::Current&)
const override;
105 const std::map<std::string, ConstControlDevicePtr>&,
106 const std::map<std::string, ConstSensorDevicePtr>&);
108 static NJointZeroTorqueOrVelocityWithFTControllerConfigPtr
116 std::vector<ControlTarget1DoFActuatorZeroVelocity*>
targetsVel;
127 VirtualRobot::DifferentialIKPtr ik;
128 const float lambda = 2.0f;
std::map< std::string, VariantBasePtr > StringVariantBaseMap
void rtRun(const IceUtil::Time &sensorValuesTimestamp, const IceUtil::Time &timeSinceLastIteration) override
TODO make protected and use attorneys.
std::string getClassName(const Ice::Current &) const override
void setControllerTarget(const Ice::FloatSeq &, const Ice::Current &) override
static WidgetDescription::WidgetPtr GenerateConfigDescription(const VirtualRobot::RobotPtr &, const std::map< std::string, ConstControlDevicePtr > &, const std::map< std::string, ConstSensorDevicePtr > &)
NJointControllerConfigPtr ConfigPtrT
std::vector< ControlTarget1DoFActuatorZeroVelocity * > targetsVel
std::atomic_bool useZeroVelocityModeForWrist
void rtPreActivateController() override
This function is called before the controller is activated.
Eigen::Vector6f cartesianVelTarget
task space variables
std::vector< ControlTarget1DoFActuatorZeroTorque * > targetsTorque
Ice::FloatSeq targetTorqueOrVelocity
Eigen::VectorXf qpos
current status
Eigen::Vector6f currentForceTorque
force torque
TYPEDEF_PTRS_HANDLE(NJointTorqueController)
armarx::core::time::DateTime Time
void rtPostDeactivateController() override
This function is called after the controller is deactivated.
NJointZeroTorqueOrVelocityWithFTController(RobotUnitPtr prov, const NJointZeroTorqueOrVelocityWithFTControllerConfigPtr &config, const VirtualRobot::RobotPtr &)
static NJointZeroTorqueOrVelocityWithFTControllerConfigPtr GenerateConfigFromVariants(const StringVariantBaseMap &values)
Eigen::VectorXf desiredJointVelocity
Eigen::VectorXf desiredJointTorques
targets
Eigen::MatrixXf jacobi
others
std::vector< bool > torqueControlled
std::shared_ptr< class Robot > RobotPtr
void onPublish(const SensorAndControl &, const DebugDrawerInterfacePrx &, const DebugObserverInterfacePrx &) override