ControllerInterface.ice
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package armarx::skills::control
17  * @author Jianfeng Gao ( jianfeng dot gao at kit dot edu )
18  * @date 2021
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <ArmarXCore/interface/core/BasicTypes.ice>
26 #include <ArmarXCore/interface/serialization/Eigen.ice>
27 
28 #include <RobotAPI/interface/aron.ice>
29 #include <RobotAPI/interface/core/Trajectory.ice>
30 #include <RobotAPI/interface/units/RobotUnit/NJointController.ice>
31 
32 #include <armarx/control/interface/ConfigurableNJointControllerInterface.ice>
33 
34 
35 module armarx
36 {
37  module control
38  {
39  dictionary<string, FloatSeqSeq> TargetPoseMap;
40  dictionary<string, Ice::FloatSeq> TargetNullspaceMap;
41 
43  {
44  void updateCollisionAvoidanceConfig(armarx::aron::data::dto::Dict config);
45  armarx::aron::data::dto::Dict getCollisionAvoidanceConfig();
46  }
47 
49  ConfigurableNJointControllerInterface {
50  Ice::FloatSeq getTCPVel(string rns);
51  bool updateTargetPose(TargetPoseMap targetPoseMap,
52  TargetNullspaceMap targetNullspaceMap);
53 
54  /// ft sensor
55  void calibrateFTSensor();
56  void enableSafeGuardForceTorque(string rns, bool forceGuard, bool torqueGuard);
57  bool isSafeForceTorque(string nodeSetName);
58  };
59 
63  {
64  }
65 
67  ConfigurableNJointControllerInterface
68  {
69  Ice::FloatSeq getTCPVel(string rns);
70  bool updateTargetPose(TargetPoseMap targetPoseMap,
71  TargetNullspaceMap targetNullspaceMap);
72 
73  /// ft sensor
74  void calibrateFTSensor();
75  void enableSafeGuardForceTorque(string rns, bool forceGuard, bool torqueGuard);
76  bool isSafeForceTorque(string nodeSetName);
77  };
78 
80  ConfigurableNJointControllerInterface
81  {
82  Ice::FloatSeq getTCPVel(string rns);
83  bool updateTargetPose(TargetPoseMap targetPoseMap,
84  TargetNullspaceMap targetNullspaceMap);
85 
86  /// ft sensor
87  void calibrateFTSensor();
88  void enableSafeGuardForceTorque(string rns, bool forceGuard, bool torqueGuard);
89  bool isSafeForceTorque(string nodeSetName);
90  };
91 
93  ConfigurableNJointControllerInterface
94  {
95  Ice::FloatSeq getTCPVel(string rns);
96  bool updateTargetPose(TargetPoseMap targetPoseMap,
97  TargetNullspaceMap targetNullspaceMap);
98 
99  /// ft sensor
100  void calibrateFTSensor();
101  void enableSafeGuardForceTorque(string rns, bool forceGuard, bool torqueGuard);
102  bool isSafeForceTorque(string nodeSetName);
103  };
104 
108  {
109  }
110 
112  ConfigurableNJointControllerInterface
113  {
114  Ice::FloatSeq getTCPVel(string rns);
115  bool updateTargetPose(TargetPoseMap targetPoseMap,
116  TargetNullspaceMap targetNullspaceMap);
117 
118  /// ft sensor
119  void toggleGravityCompensation(bool toggle);
120  void calibrateFTSensor();
121  void enableSafeGuardForceTorque(string rns, bool forceGuard, bool torqueGuard);
122  bool isSafeForceTorque(string nodeSetName);
123  };
124 
125  // interface NJointTaskspaceBimanualImpedanceControllerInterface extends
126  // NJointTaskspaceImpedanceControllerInterface
127  // {
128  // };
129 
131  ConfigurableNJointControllerInterface
132  {
133  // string getKinematicChainName();
134  };
135 
136  // class NJointTaskspaceZeroTorqueOrVelocityControllerConfig extends NJointControllerConfig
137  // {
138  // Ice::StringSeq robotNodeSetList;
139  // bool useZeroVelocityModeForWrist = true;
140  // float maxTorque = 10.0f;
141  // float maxVelocity = 2.0f;
142  // };
143 
145  ConfigurableNJointControllerInterface
146  {
147  // void setControllerTarget(Ice::FloatSeq targetTorqueOrVelocity);
148  void calibrateFTSensor();
149  };
150 
151  }; /// control
152 }; /// armarx
armarx::control::NJointTaskspaceCollisionAvoidanceMixedImpedanceVelocityControllerInterface
Definition: ControllerInterface.ice:105
armarx::control::NJointTaskspaceImpedanceControllerInterface
Definition: ControllerInterface.ice:48
armarx::control::CollisionAvoidanceControllerInterface
Definition: ControllerInterface.ice:42
armarx::control::NJointTaskspaceMixedImpedanceVelocityControllerInterface
Definition: ControllerInterface.ice:79
armarx::control::TargetNullspaceMap
dictionary< string, Ice::FloatSeq > TargetNullspaceMap
Definition: ControllerInterface.ice:40
armarx::control::NJointTaskspaceZeroTorqueOrVelocityControllerInterface
Definition: ControllerInterface.ice:144
armarx::control::NJointKeypointsImpedanceControllerInterface
Definition: ControllerInterface.ice:130
armarx::control::NJointTaskspaceAdmittanceControllerInterface
Definition: ControllerInterface.ice:111
armarx::control::NJointTaskspaceCollisionAvoidanceImpedanceControllerInterface
Definition: ControllerInterface.ice:60
armarx::control::NJointTaskspaceVelocityControllerInterface
Definition: ControllerInterface.ice:92
armarx::control::TargetPoseMap
dictionary< string, FloatSeqSeq > TargetPoseMap
Definition: ControllerInterface.ice:39
control
This file is part of ArmarX.
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::control::NJointTaskspaceSafetyImpedanceControllerInterface
Definition: ControllerInterface.ice:66