Skip to content

Commit a68cc53

Browse files
committed
Revert validation for splines
Since zero times are allowed if it is the first point and the position is the current robot's position, we leave that check to the URScript
1 parent 71bef41 commit a68cc53

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/control/motion_primitives.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ bool MotionPrimitive::validate() const
5656

5757
bool SplinePrimitive::validate() const
5858
{
59-
if (duration <= std::chrono::milliseconds(0))
60-
{
61-
URCL_LOG_ERROR("Duration must be greater than zero.");
62-
return false;
63-
}
59+
// Spline primitives don't have the same restriction as others do. Whether the primitives are valid or not
60+
// is checked in the URScript program.
6461
return true;
6562
}
6663
bool OptimoveJPrimitive::validate() const

0 commit comments

Comments
 (0)