Skip to content

Commit 76cc550

Browse files
committed
Moved function definition to CPP file
1 parent bb7e457 commit 76cc550

2 files changed

Lines changed: 42 additions & 39 deletions

File tree

include/ur_client_library/control/motion_primitives.h

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff 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

src/control/motion_primitives.cpp

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)