Flexiv RDK APIs  1.5.1
mode.hpp
Go to the documentation of this file.
1 
6 #ifndef FLEXIV_RDK_MODE_HPP_
7 #define FLEXIV_RDK_MODE_HPP_
8 
9 #include <array>
10 #include <string>
11 
12 namespace flexiv {
13 namespace rdk {
14 
21 enum class Mode
22 {
24  UNKNOWN = 0,
25 
29  IDLE,
30 
37 
44 
52 
59 
67 
74 
82 
89 
97 
99  MODES_CNT,
100 };
101 
103 static const std::array<std::string, static_cast<size_t>(Mode::MODES_CNT)> kModeNames
104  = {"UNKNOWN", "IDLE", "RT_JOINT_TORQUE", "RT_JOINT_IMPEDANCE", "NRT_JOINT_IMPEDANCE",
105  "RT_JOINT_POSITION", "NRT_JOINT_POSITION", "NRT_PLAN_EXECUTION", "NRT_PRIMITIVE_EXECUTION",
106  "RT_CARTESIAN_MOTION_FORCE", "NRT_CARTESIAN_MOTION_FORCE"};
107 
108 } /* namespace rdk */
109 } /* namespace flexiv */
110 
111 #endif /* FLEXIV_RDK_MODE_HPP_ */
Mode
Robot control modes. The robot needs to be switched into the correct control mode before the correspo...
Definition: mode.hpp:22