DSControllerInterface.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 RobotAPI::NJointControllerInterface
17  * @author Mirko Waechter ( mirko dot waechter at kit dot edu )
18  * @date 2017
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <RobotAPI/interface/units/RobotUnit/NJointController.ice>
26 
27 
28 module armarx
29 {
30  class DSControllerConfig extends NJointControllerConfig
31  {
32  float posiKp = 5;
33  float v_max = 0.15;
34  float posiDamping = 10;
35 
36  float oriDamping;
37  float oriKp;
38 
39  float filterTimeConstant = 0.01;
40  float torqueLimit = 1;
41 
42 
43  string nodeSetName = "";
44  string tcpName = "";
45 
46  Ice::FloatSeq desiredPosition;
47  Ice::FloatSeq desiredQuaternion;
48 
49  Ice::FloatSeq qnullspaceVec;
50 
51  float nullspaceKp;
53 
54 
55  Ice::StringSeq gmmParamsFiles;
57 
59 
60  };
61 
62  interface DSControllerInterface extends NJointControllerInterface
63  {
64 
65  };
66 
67  class DSRTBimanualControllerConfig extends NJointControllerConfig
68  {
69  float posiKp = 5;
70  float v_max = 0.15;
71  Ice::FloatSeq posiDamping;
72  float couplingStiffness = 10;
73  float couplingForceLimit = 50;
74 
75  float forwardGain = 1;
76 
77  float oriDamping;
78  float oriKp;
79 
80  float filterTimeConstant = 0.01;
81  float torqueLimit = 1;
82  float NullTorqueLimit = 0.2;
83 
84  // string tcpName = "";
85 
86  // Ice::FloatSeq desiredPosition;
87 
88  Ice::FloatSeq left_desiredQuaternion;
89  Ice::FloatSeq right_desiredQuaternion;
90 
91  Ice::FloatSeq leftarm_qnullspaceVec;
92  Ice::FloatSeq rightarm_qnullspaceVec;
93 
94  float nullspaceKp;
96 
97 
98 
99  string gmmParamsFile = "";
101 
109 
110 
111  Ice::FloatSeq left_oriUp;
112  Ice::FloatSeq left_oriDown;
113  Ice::FloatSeq right_oriUp;
114  Ice::FloatSeq right_oriDown;
126 
127  Ice::FloatSeq forceLeftOffset;
128  Ice::FloatSeq forceRightOffset;
129  };
130 
131 
132  interface DSBimanualControllerInterface extends NJointControllerInterface
133  {
134  void setToDefaultTarget();
135 
136  };
137 
138  class DSJointCarryControllerConfig extends NJointControllerConfig
139  {
140  float posiKp = 5;
141  float v_max = 0.15;
142  Ice::FloatSeq posiDamping;
143  float oriDamping;
144  float oriKp;
145 
146  float filterTimeConstant = 0.01;
147  float torqueLimit = 1;
148  float NullTorqueLimit = 0.2;
149 
150  Ice::FloatSeq left_desiredQuaternion;
151  Ice::FloatSeq right_desiredQuaternion;
152  Ice::FloatSeq leftarm_qnullspaceVec;
153  Ice::FloatSeq rightarm_qnullspaceVec;
154 
155  float nullspaceKp;
157 
158  string gmmParamsFile = "";
162  float guardLength;
164 
165  Ice::FloatSeq defaultGuardOri;
168  };
169 
170 
171  interface DSJointCarryControllerInterface extends NJointControllerInterface
172  {
173  void setGuardInHandPosition(Ice::FloatSeq guardCenterToHandsCenter);
174  void setGuardOrientation(Ice::FloatSeq guardOrientationInRobotBase);
175  void setDesiredGuardOri(Ice::FloatSeq desiredGuardOriInRobotBase);
176  void setRotationStiffness(Ice::FloatSeq guardRotationStiffness);
177  void setGuardObsAvoidVel(Ice::FloatSeq guardZVel);
178  float getGMMVel();
179  };
180 
181 };
armarx::DSControllerInterface
Definition: DSControllerInterface.ice:62
armarx::DSJointCarryControllerConfig::oriKp
float oriKp
Definition: DSControllerInterface.ice:144
armarx::DSRTBimanualControllerConfig::oriDamping
float oriDamping
Definition: DSControllerInterface.ice:77
armarx::DSRTBimanualControllerConfig::oriKp
float oriKp
Definition: DSControllerInterface.ice:78
armarx::DSControllerConfig::desiredPosition
Ice::FloatSeq desiredPosition
Definition: DSControllerInterface.ice:46
armarx::DSRTBimanualControllerConfig::posiDamping
Ice::FloatSeq posiDamping
Definition: DSControllerInterface.ice:71
armarx::DSJointCarryControllerConfig::right_desiredQuaternion
Ice::FloatSeq right_desiredQuaternion
Definition: DSControllerInterface.ice:151
armarx::DSRTBimanualControllerConfig::guardTargetZUp
float guardTargetZUp
Definition: DSControllerInterface.ice:103
armarx::DSControllerConfig::dsAdaptorEpsilon
float dsAdaptorEpsilon
Definition: DSControllerInterface.ice:58
armarx::DSRTBimanualControllerConfig::forceErrorZThreshold
float forceErrorZThreshold
Definition: DSControllerInterface.ice:117
armarx::DSJointCarryControllerConfig::posiDamping
Ice::FloatSeq posiDamping
Definition: DSControllerInterface.ice:142
armarx::DSRTBimanualControllerConfig::contactDistanceTolerance
float contactDistanceTolerance
Definition: DSControllerInterface.ice:123
armarx::DSJointCarryControllerConfig::TorqueFilterConstant
float TorqueFilterConstant
Definition: DSControllerInterface.ice:161
armarx::DSRTBimanualControllerConfig::leftForceOffsetZ
float leftForceOffsetZ
Definition: DSControllerInterface.ice:121
armarx::DSJointCarryControllerConfig::left_desiredQuaternion
Ice::FloatSeq left_desiredQuaternion
Definition: DSControllerInterface.ice:150
armarx::DSJointCarryControllerConfig::nullspaceKp
float nullspaceKp
Definition: DSControllerInterface.ice:155
armarx::DSJointCarryControllerConfig
Definition: DSControllerInterface.ice:138
armarx::DSControllerConfig::oriDamping
float oriDamping
Definition: DSControllerInterface.ice:36
armarx::DSRTBimanualControllerConfig
Definition: DSControllerInterface.ice:67
armarx::DSRTBimanualControllerConfig::guardDesiredDirection
bool guardDesiredDirection
Definition: DSControllerInterface.ice:107
armarx::DSControllerConfig::qnullspaceVec
Ice::FloatSeq qnullspaceVec
Definition: DSControllerInterface.ice:49
armarx::DSRTBimanualControllerConfig::contactForce
float contactForce
Definition: DSControllerInterface.ice:102
armarx::DSRTBimanualControllerConfig::highPassFilterFactor
float highPassFilterFactor
Definition: DSControllerInterface.ice:108
armarx::DSJointCarryControllerInterface
Definition: DSControllerInterface.ice:171
armarx::DSJointCarryControllerConfig::rightarm_qnullspaceVec
Ice::FloatSeq rightarm_qnullspaceVec
Definition: DSControllerInterface.ice:153
armarx::DSRTBimanualControllerConfig::forceErrorZDisturbance
float forceErrorZDisturbance
Definition: DSControllerInterface.ice:116
armarx::DSControllerConfig
Definition: DSControllerInterface.ice:30
armarx::DSRTBimanualControllerConfig::liftingForce
float liftingForce
Definition: DSControllerInterface.ice:106
armarx::DSControllerConfig::oriKp
float oriKp
Definition: DSControllerInterface.ice:37
armarx::DSRTBimanualControllerConfig::mountingDistanceTolerance
float mountingDistanceTolerance
Definition: DSControllerInterface.ice:124
armarx::DSRTBimanualControllerConfig::nullspaceKp
float nullspaceKp
Definition: DSControllerInterface.ice:94
armarx::DSJointCarryControllerConfig::leftarm_qnullspaceVec
Ice::FloatSeq leftarm_qnullspaceVec
Definition: DSControllerInterface.ice:152
armarx::DSRTBimanualControllerConfig::forceLeftOffset
Ice::FloatSeq forceLeftOffset
Definition: DSControllerInterface.ice:127
armarx::DSJointCarryControllerConfig::oriDamping
float oriDamping
Definition: DSControllerInterface.ice:143
armarx::DSRTBimanualControllerConfig::rightarm_qnullspaceVec
Ice::FloatSeq rightarm_qnullspaceVec
Definition: DSControllerInterface.ice:92
armarx::DSRTBimanualControllerConfig::left_oriUp
Ice::FloatSeq left_oriUp
Definition: DSControllerInterface.ice:111
armarx::DSRTBimanualControllerConfig::forceErrorZGain
float forceErrorZGain
Definition: DSControllerInterface.ice:118
armarx::DSRTBimanualControllerConfig::leftarm_qnullspaceVec
Ice::FloatSeq leftarm_qnullspaceVec
Definition: DSControllerInterface.ice:91
armarx::DSRTBimanualControllerConfig::loweringForce
float loweringForce
Definition: DSControllerInterface.ice:105
armarx::DSJointCarryControllerConfig::nullspaceDamping
float nullspaceDamping
Definition: DSControllerInterface.ice:156
armarx::DSControllerConfig::gmmParamsFiles
Ice::StringSeq gmmParamsFiles
Definition: DSControllerInterface.ice:55
armarx::DSControllerConfig::positionErrorTolerance
float positionErrorTolerance
Definition: DSControllerInterface.ice:56
armarx::DSRTBimanualControllerConfig::positionErrorTolerance
float positionErrorTolerance
Definition: DSControllerInterface.ice:100
armarx::DSRTBimanualControllerConfig::right_oriDown
Ice::FloatSeq right_oriDown
Definition: DSControllerInterface.ice:114
armarx::DSJointCarryControllerConfig::positionErrorTolerance
float positionErrorTolerance
Definition: DSControllerInterface.ice:159
armarx::DSJointCarryControllerConfig::guardLength
float guardLength
Definition: DSControllerInterface.ice:162
armarx::DSJointCarryControllerConfig::desiredTorqueDisturbance
float desiredTorqueDisturbance
Definition: DSControllerInterface.ice:160
armarx::DSControllerConfig::nullspaceDamping
float nullspaceDamping
Definition: DSControllerInterface.ice:52
armarx::DSRTBimanualControllerConfig::mountingCorrectionFilterFactor
float mountingCorrectionFilterFactor
Definition: DSControllerInterface.ice:125
armarx::DSRTBimanualControllerConfig::forceFilterCoeff
float forceFilterCoeff
Definition: DSControllerInterface.ice:115
armarx::DSRTBimanualControllerConfig::rightForceOffsetZ
float rightForceOffsetZ
Definition: DSControllerInterface.ice:122
armarx::DSRTBimanualControllerConfig::left_desiredQuaternion
Ice::FloatSeq left_desiredQuaternion
Definition: DSControllerInterface.ice:88
armarx::DSRTBimanualControllerConfig::right_oriUp
Ice::FloatSeq right_oriUp
Definition: DSControllerInterface.ice:113
armarx::DSJointCarryControllerConfig::guardGravity
float guardGravity
Definition: DSControllerInterface.ice:163
armarx::DSControllerConfig::nullspaceKp
float nullspaceKp
Definition: DSControllerInterface.ice:51
armarx::DSJointCarryControllerConfig::defaultGuardOri
Ice::FloatSeq defaultGuardOri
Definition: DSControllerInterface.ice:165
armarx::DSControllerConfig::desiredQuaternion
Ice::FloatSeq desiredQuaternion
Definition: DSControllerInterface.ice:47
armarx::DSJointCarryControllerConfig::defaultRotationStiffness
Ice::FloatSeq defaultRotationStiffness
Definition: DSControllerInterface.ice:167
armarx::DSRTBimanualControllerConfig::forceRightOffset
Ice::FloatSeq forceRightOffset
Definition: DSControllerInterface.ice:128
armarx::DSRTBimanualControllerConfig::left_oriDown
Ice::FloatSeq left_oriDown
Definition: DSControllerInterface.ice:112
armarx::DSRTBimanualControllerConfig::nullspaceDamping
float nullspaceDamping
Definition: DSControllerInterface.ice:95
armarx::DSRTBimanualControllerConfig::desiredTorqueDisturbance
float desiredTorqueDisturbance
Definition: DSControllerInterface.ice:119
armarx::DSRTBimanualControllerConfig::guardTargetZDown
float guardTargetZDown
Definition: DSControllerInterface.ice:104
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::DSRTBimanualControllerConfig::TorqueFilterConstant
float TorqueFilterConstant
Definition: DSControllerInterface.ice:120
armarx::DSBimanualControllerInterface
Definition: DSControllerInterface.ice:132
armarx::DSRTBimanualControllerConfig::right_desiredQuaternion
Ice::FloatSeq right_desiredQuaternion
Definition: DSControllerInterface.ice:89
armarx::DSJointCarryControllerConfig::handVelLimit
float handVelLimit
Definition: DSControllerInterface.ice:166