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