4 #include <VirtualRobot/VirtualRobot.h>
8 #include <armarx/control/deprecated_njoint_mp_controller/joint_space/ControllerInterface.h>
10 #include <dmp/representation/systemstatus.h>
14 class SensorValue1DoFActuatorTorque;
15 class SensorValue1DoFActuatorVelocity;
16 class SensorValue1DoFActuatorPosition;
17 class SensorValue1DoFGravityTorque;
18 class ControlTarget1DoFActuatorTorque;
19 class ControlTarget1DoFActuatorVelocity;
59 using ConfigPtrT = NJointJointSpaceDMPControllerConfigPtr;
61 const NJointControllerConfigPtr& config,
65 std::string
getClassName(
const Ice::Current&)
const override;
78 void learnDMPFromFiles(
const Ice::StringSeq& fileNames,
const Ice::Current&)
override;
81 void runDMP(
const Ice::DoubleSeq& goals,
double tau,
const Ice::Current&)
override;
94 struct DebugBufferData
96 StringFloatDictionary latestTargetVelocities;
97 StringFloatDictionary dmpTargetState;
102 std::map<std::string, const SensorValue1DoFActuatorTorque*> torqueSensors;
103 std::map<std::string, const SensorValue1DoFGravityTorque*> gravityTorqueSensors;
104 std::map<std::string, const SensorValue1DoFActuatorPosition*> positionSensors;
105 std::map<std::string, const SensorValue1DoFActuatorVelocity*> velocitySensors;
106 std::map<std::string, ControlTarget1DoFActuatorVelocity*> targets;
112 std::vector<double> goals;
114 bool DMPAsForwardControl;
132 std::vector<std::string> dimNames;
133 DMP::Vec<DMP::DMPState> currentState;