type.h
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 * @author Jianfeng Gao ( jianfeng dot gao at kit dot edu )
17 * @date 2022
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#pragma once
23
24#include <SimoxUtility/meta/enum/EnumNames.hpp>
25
27{
28
29 enum class ControllerType
30 {
31 // ----------- NjointControllers -----------
32 TSAdm, // TSAdmittance,
33 TSImp, // TSImpedance,
35 TSMixImpVel, // TSMixedImpedanceVelocity,
36
37 TSImpCol, // TSCollisionAvoidanceImpedance,
38 // TSImpObjCol, // TSObjectCollisionAvoidanceImpedance,
39 TSAdmCol, // TSCollisionAvoidanceAdmittance,
42 TSMixImpVelCol, // TSCollisionAvoidanceMixedImpedanceVelocity,
43
44 // ----------- NJointMPControllers -----------
45 TSMPAdm, // TSAdmittanceMP,
46 TSMPImp, // TSImpedanceMP,
48 TSMPMixImpVel, // TSMixedImpedanceVelocityMP,
49
50 TSMPImpCol, // TSCollisionAvoidanceImpedanceMP,
53 TSMPMixImpVelCol, // TSCollisionAvoidanceMixedImpedanceVelocityMP,
54 // TSMPImpObjCol, // TSObjectCollisionAvoidanceImpedanceMP,
55
56 // ----------- NJointMPControllers for specific use-cases ------------------
57 TSMPVelWiping, // adapted TSMPVel for wiping task
58 TSMPImpWiping, // adapted TSMPVel for wiping task
59 TSMPMixImpVelColWiping, // adapted TSMPMixImpVelCol for wiping task
60
64
65 // ZeroMQ
71
72
73 // Zenoh
79
80
81 // Shared Memory
89 };
90
91 enum class MPType
92 {
96 // The following will probably be supported in the future
97 // hand_ts,
98 // head,
99 // platform
100 };
101
102
111
112 inline const simox::meta::EnumNames<MPType> mpTypeToString = {{MPType::taskspace, "taskspace"},
113 {MPType::nullsapce, "nullspace"},
114 {MPType::hand, "hand"}};
115
116 inline const simox::meta::EnumNames<ControllerType> ControllerTypeShort{
117 {ControllerType::TSAdm, "TSAdm"},
118 {ControllerType::TSImp, "TSImp"},
119 {ControllerType::TSVel, "TSVel"},
120 {ControllerType::TSMixImpVel, "TSMixImpVel"},
121
122 {ControllerType::TSImpCol, "TSImpCol"},
123 {ControllerType::TSVelCol, "TSVelCol"},
124 {ControllerType::TSVeloCol, "TSVeloCol"},
125 // {ControllerType::TSImpObjCol, "TSImpObjCol"},
126 {ControllerType::TSMixImpVelCol, "TSMixImpVelCol"},
127
128 {ControllerType::TSMPAdm, "TSMPAdm"},
129 {ControllerType::TSMPImp, "TSMPImp"},
130 {ControllerType::TSMPVel, "TSMPVel"},
131 {ControllerType::TSMPMixImpVel, "TSMPMixImpVel"},
132
133 {ControllerType::TSMPImpCol, "TSMPImpCol"},
134 {ControllerType::TSMPVelCol, "TSMPVelCol"},
135 {ControllerType::TSMPVeloCol, "TSMPVeloCol"},
136 // {ControllerType::TSMPImpObjCol, "TSMPImpObjCol"},
137 {ControllerType::TSMPMixImpVelCol, "TSMPMixImpVelCol"},
138
139 {ControllerType::TSMPVelWiping, "TSMPVelWiping"},
140 {ControllerType::TSMPImpWiping, "TSMPImpWiping"},
141 {ControllerType::TSMPMixImpVelColWiping, "TSMPMixImpVelColWiping"},
142
143 {ControllerType::QPWholeBodyImpedance, "QPWholeBodyImpedance"},
144 {ControllerType::QPWholeBodyVelocity, "QPWholeBodyVelocity"},
145 {ControllerType::WholeBodyTrajectoryController, "WholeBodyTrajectoryController"},
146
147 // ZeroMQ
148 {ControllerType::ZMQTSVel, "ZMQTSVel"},
149 {ControllerType::ZMQTSImp, "ZMQTSImp"},
150 {ControllerType::ZMQTSMixImpVel, "ZMQTSMixImpVel"},
151 {ControllerType::ZMQTSImpCol, "ZMQTSImpCol"},
152 {ControllerType::ZMQTSMixImpVelCol, "ZMQTSMixImpVelCol"},
153
154 // Zenoh
155 {ControllerType::ZenohTSVel, "ZenohTSVel"},
156 {ControllerType::ZenohTSImp, "ZenohTSImp"},
157 {ControllerType::ZenohTSMixImpVel, "ZenohTSMixImpVel"},
158 {ControllerType::ZenohTSImpCol, "ZenohTSImpCol"},
159 {ControllerType::ZenohTSMixImpVelCol, "ZenohTSMixImpVelCol"},
160
161 // SharedMemory
162 {ControllerType::SharedMemoryTSVel, "SharedMemoryTSVel"},
163 {ControllerType::SharedMemoryTSVelCol, "SharedMemoryTSVelCol"},
164 {ControllerType::SharedMemoryTSVeloCol, "SharedMemoryTSVeloCol"},
165 {ControllerType::SharedMemoryTSImp, "SharedMemoryTSImp"},
166 {ControllerType::SharedMemoryTSMixImpVel, "SharedMemoryTSMixImpVel"},
167 {ControllerType::SharedMemoryTSImpCol, "SharedMemoryTSImpCol"},
168 {ControllerType::SharedMemoryTSMixImpVelCol, "SharedMemoryTSMixImpVelCol"}};
169
170 inline const simox::meta::EnumNames<ControllerType> ControllerTypeNames{
171 {ControllerType::TSAdm, "TSAdm"},
172 {ControllerType::TSImp, "TSImp"},
173 {ControllerType::TSVel, "TSVel"},
174 {ControllerType::TSMixImpVel, "TSMixImpVel"},
175
176 {ControllerType::TSImpCol, "TSImpCol"},
177 {ControllerType::TSVelCol, "TSVelCol"},
178 {ControllerType::TSVeloCol, "TSVeloCol"},
179 {ControllerType::TSMixImpVelCol, "TSMixImpVelCol"},
180 // {ControllerType::TSImpObjCol, "NJointTaskspaceObjectCollisionAvoidanceImpedanceController"},
181
182 {ControllerType::TSMPAdm, "TSMPAdm"},
183 {ControllerType::TSMPImp, "TSMPImp"},
184 {ControllerType::TSMPVel, "TSMPVel"},
185 {ControllerType::TSMPMixImpVel, "TSMPMixImpVel"},
186
187 {ControllerType::TSMPImpCol, "NJointTSCollisionAvoidanceImpedanceMPController"},
188 {ControllerType::TSMPVelCol, "TSMPVelCol"},
189 {ControllerType::TSMPVeloCol, "TSMPVeloCol"},
190 {ControllerType::TSMPMixImpVelCol, "NJointTSCollisionAvoidanceMixedImpedanceVelocityMP"},
191 // {ControllerType::TSMPImpObjCol, "NJointTSObjectCollisionAvoidanceImpedanceMPController"},
192
193 {ControllerType::TSMPVelWiping, "NJointWipingVelMPController"},
194 {ControllerType::TSMPImpWiping, "NJointWipingImpedanceMPController"},
195 {ControllerType::TSMPMixImpVelColWiping, "NJointWipingMixImpVelColMPController"},
196
197 {ControllerType::WholeBodyTrajectoryController, "NJointWholeBodyTrajectoryController"},
198
199 {ControllerType::ZMQTSVel, "NJointZeroMQTaskspaceVelocityController"},
200 {ControllerType::ZMQTSImp, "NJointZeroMQTaskspaceImpedanceController"},
201 {ControllerType::ZMQTSMixImpVel, "NJointZeroMQTaskspaceMixedImpedanceVelocityController"},
202 {ControllerType::ZMQTSImpCol, "NJointZeroMQTaskspaceCollisionAvoidanceImpedanceController"},
204 "NJointZeroMQTaskspaceCollisionAvoidanceMixedImpedanceVelocityController"},
205
206 // Zenoh
207 {ControllerType::ZenohTSVel, "NJointZenohTaskspaceVelocityController"},
208 {ControllerType::ZenohTSImp, "NJointZenohTaskspaceImpedanceController"},
209 {ControllerType::ZenohTSMixImpVel, "NJointZenohTaskspaceMixedImpedanceVelocityController"},
211 "NJointZenohTaskspaceCollisionAvoidanceImpedanceController"},
213 "NJointZenohTaskspaceCollisionAvoidanceMixedImpedanceVelocityController"},
214
215 // Shared Memory
216 {ControllerType::SharedMemoryTSVel, "NJointSharedMemoryTaskspaceVelocityController"},
217 {ControllerType::SharedMemoryTSVelCol, "NJointSharedMemoryTaskspaceVelColController"},
218 {ControllerType::SharedMemoryTSVeloCol, "NJointSharedMemoryTaskspaceVeloColController"},
219 {ControllerType::SharedMemoryTSImp, "NJointSharedMemoryTaskspaceImpedanceController"},
221 "NJointSharedMemoryTaskspaceMixedImpedanceVelocityController"},
223 "NJointSharedMemoryTaskspaceCollisionAvoidanceImpedanceController"},
225 "NJointSharedMemoryTaskspaceCollisionAvoidanceMixedImpedanceVelocityController"}};
226
227} // namespace armarx::control::common
This file is part of ArmarX.
const simox::meta::EnumNames< ControllerType > ControllerTypeNames
Definition type.h:170
const simox::meta::EnumNames< ControllerType > ControllerTypeShort
Definition type.h:116
const simox::meta::EnumNames< MPType > mpTypeToString
Definition type.h:112