Flexiv RDK APIs  1.7.0
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 
105 
107  MODES_CNT,
108 };
109 
111 static const std::array<std::string, static_cast<size_t>(Mode::MODES_CNT)> kModeNames
112  = {"UNKNOWN", "IDLE", "RT_JOINT_TORQUE", "RT_JOINT_IMPEDANCE", "NRT_JOINT_IMPEDANCE",
113  "RT_JOINT_POSITION", "NRT_JOINT_POSITION", "NRT_PLAN_EXECUTION", "NRT_PRIMITIVE_EXECUTION",
114  "RT_CARTESIAN_MOTION_FORCE", "NRT_CARTESIAN_MOTION_FORCE", "NRT_SUPER_PRIMITIVE"};
115 
116 } /* namespace rdk */
117 } /* namespace flexiv */
118 
119 #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