ControlModes.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  * @package RobotAPI
17  * @author Raphael Grimm ( raphael dot grimm 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 <string>
26 
28 {
29  //'normal' actor modes
30  static const std::string Position1DoF = "ControlMode_Position1DoF";
31  static const std::string Torque1DoF = "ControlMode_Torque1DoF";
32  static const std::string ZeroTorque1DoF = "ControlMode_ZeroTorque1DoF";
33  static const std::string Velocity1DoF = "ControlMode_Velocity1DoF";
34  static const std::string Current1DoF = "ControlMode_Current1DoF";
35  static const std::string PWM1DoF = "ControlMode_PWM1DoF";
36 
37  // 'extended' actor modes
38  static const std::string VelocityTorque = "ControlMode_VelocityTorque";
39  static const std::string ActiveImpedance = "ControlMode_ActiveImpedance";
40 
41  static const std::string VelocityWithPwmLimit1DoF = "ControlMode_VelocityWithPwmLimit1DoF";
42  static const std::string PositionWithPwmLimit1DoF = "ControlMode_PositionWithPwmLimit1DoF";
43 
44  //modes for holonomic platforms
45  static const std::string HolonomicPlatformVelocity = "ControlMode_HolonomicPlatformVelocity";
46  static const std::string HolonomicPlatformRelativePosition =
47  "ControlMode_HolonomicPlatformRelativePosition";
48 
49  //special sentinel modes
50  static const std::string EmergencyStop = "ControlMode_EmergencyStop";
51  static const std::string StopMovement = "ControlMode_StopMovement";
52 } // namespace armarx::ControlModes
53 
55 {
56  //'normal' actor modes
57  static const std::string Position1DoF = "Position1DoF";
58  static const std::string Velocity1DoF = "Velocity1DoF";
59  static const std::string Current1DoF = "Current1DoF";
60 
61  //modes for holonomic platforms
62  static const std::string HolonomicPlatformVelocity = "HolonomicPlatformVelocity";
63 } // namespace armarx::HardwareControlModes
armarx::ControlModes
Definition: ControlModes.h:27
armarx::HardwareControlModes
Definition: ControlModes.h:54