File tree Expand file tree Collapse file tree
include/ur_client_library/control Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,44 +75,7 @@ enum class MotionType : uint8_t
7575 UNKNOWN = 255
7676};
7777
78- inline std::string motionTypeToString (const MotionType type)
79- {
80- switch (type)
81- {
82- case MotionType::MOVEJ :
83- return " MOVEJ" ;
84- case MotionType::MOVEL :
85- return " MOVEL" ;
86- case MotionType::MOVEP :
87- return " MOVEP" ;
88- case MotionType::MOVEC :
89- return " MOVEC" ;
90- case MotionType::OPTIMOVEJ :
91- return " OPTIMOVEJ" ;
92- case MotionType::OPTIMOVEL :
93- return " OPTIMOVEL" ;
94- case MotionType::MOVEJ_POSE :
95- return " MOVEJ_POSE" ;
96- case MotionType::MOVEL_JOINT :
97- return " MOVEL_JOINT" ;
98- case MotionType::MOVEP_JOINT :
99- return " MOVEP_JOINT" ;
100- case MotionType::MOVEC_JOINT :
101- return " MOVEC_JOINT" ;
102- case MotionType::MOVEC_JOINT_POSE :
103- return " MOVEC_JOINT_POSE" ;
104- case MotionType::MOVEC_POSE_JOINT :
105- return " MOVEC_POSE_JOINT" ;
106- case MotionType::OPTIMOVEJ_POSE :
107- return " OPTIMOVEJ_POSE" ;
108- case MotionType::OPTIMOVEL_JOINT :
109- return " OPTIMOVEL_JOINT" ;
110- case MotionType::SPLINE :
111- return " SPLINE" ;
112- default :
113- return " UNKNOWN" ;
114- }
115- }
78+ std::string motionTypeToString (const MotionType type);
11679
11780/* !
11881 * Spline types
Original file line number Diff line number Diff line change @@ -97,4 +97,44 @@ bool OptimoveLPrimitive::validate() const
9797 }
9898 return true ;
9999}
100- } // namespace urcl::control
100+
101+ std::string motionTypeToString (const MotionType type)
102+ {
103+ switch (type)
104+ {
105+ case MotionType::MOVEJ :
106+ return " MOVEJ" ;
107+ case MotionType::MOVEL :
108+ return " MOVEL" ;
109+ case MotionType::MOVEP :
110+ return " MOVEP" ;
111+ case MotionType::MOVEC :
112+ return " MOVEC" ;
113+ case MotionType::OPTIMOVEJ :
114+ return " OPTIMOVEJ" ;
115+ case MotionType::OPTIMOVEL :
116+ return " OPTIMOVEL" ;
117+ case MotionType::MOVEJ_POSE :
118+ return " MOVEJ_POSE" ;
119+ case MotionType::MOVEL_JOINT :
120+ return " MOVEL_JOINT" ;
121+ case MotionType::MOVEP_JOINT :
122+ return " MOVEP_JOINT" ;
123+ case MotionType::MOVEC_JOINT :
124+ return " MOVEC_JOINT" ;
125+ case MotionType::MOVEC_JOINT_POSE :
126+ return " MOVEC_JOINT_POSE" ;
127+ case MotionType::MOVEC_POSE_JOINT :
128+ return " MOVEC_POSE_JOINT" ;
129+ case MotionType::OPTIMOVEJ_POSE :
130+ return " OPTIMOVEJ_POSE" ;
131+ case MotionType::OPTIMOVEL_JOINT :
132+ return " OPTIMOVEL_JOINT" ;
133+ case MotionType::SPLINE :
134+ return " SPLINE" ;
135+ default :
136+ return " UNKNOWN" ;
137+ }
138+ }
139+
140+ } // namespace urcl::control
You can’t perform that action at this time.
0 commit comments