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 ZeroVelocity1DoF = "ControlMode_ZeroVelocity1DoF";
34 static const std::string Velocity1DoF = "ControlMode_Velocity1DoF";
35 static const std::string Current1DoF = "ControlMode_Current1DoF";
36 static const std::string PWM1DoF = "ControlMode_PWM1DoF";
37
38 // 'extended' actor modes
39 static const std::string VelocityTorque = "ControlMode_VelocityTorque";
40 static const std::string ActiveImpedance = "ControlMode_ActiveImpedance";
41
42 static const std::string VelocityWithPwmLimit1DoF = "ControlMode_VelocityWithPwmLimit1DoF";
43 static const std::string PositionWithPwmLimit1DoF = "ControlMode_PositionWithPwmLimit1DoF";
44
45 //modes for holonomic platforms
46 static const std::string HolonomicPlatformVelocity = "ControlMode_HolonomicPlatformVelocity";
47 static const std::string HolonomicPlatformRelativePosition =
48 "ControlMode_HolonomicPlatformRelativePosition";
49
50 //special sentinel modes
51 static const std::string EmergencyStop = "ControlMode_EmergencyStop";
52 static const std::string StopMovement = "ControlMode_StopMovement";
53} // namespace armarx::ControlModes
54
56{
57 //'normal' actor modes
58 static const std::string Position1DoF = "Position1DoF";
59 static const std::string Velocity1DoF = "Velocity1DoF";
60 static const std::string Current1DoF = "Current1DoF";
61
62 //modes for holonomic platforms
63 static const std::string HolonomicPlatformVelocity = "HolonomicPlatformVelocity";
64} // namespace armarx::HardwareControlModes