Biorbd Release_1.13.0
Loading...
Searching...
No Matches
PassiveTorqueEnums.h
1#ifndef BIORBD_PASSIVE_TORQUES_ENUMS_H
2#define BIORBD_PASSIVE_TORQUES_ENUMS_H
3
4namespace BIORBD_NAMESPACE {
5namespace internal_forces {
6namespace passive_torques {
7
11enum TORQUE_TYPE {
12 TORQUE_CONSTANT,
13 TORQUE_LINEAR,
14 TORQUE_EXPONENTIAL,
15 NO_TORQUE_TYPE
16};
17
23inline const char* TORQUE_TYPE_toStr(TORQUE_TYPE type) {
24 switch (type) {
25 case TORQUE_CONSTANT:
26 return "Constant";
27 case TORQUE_LINEAR:
28 return "Linear";
29 case TORQUE_EXPONENTIAL:
30 return "Exponential";
31 default:
32 return "NoType";
33 }
34}
35
36} // namespace passive_torques
37} // namespace internal_forces
38} // namespace BIORBD_NAMESPACE
39
40#endif // BIORBD_PASSIVE_TORQUES_ENUMS_H