Skip to content

Commit 729aefa

Browse files
committed
[irteus/irtutil.l] Enable to pass integer time-list to interpolator
1 parent 99f5ca8 commit 729aefa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

irteus/irtutil.l

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@
265265
time-list: list of time from start for each control point, time in first contrall point is zero, so length of this list is length of control point minus 1"
266266
(setq position-list pl)
267267
(setq time-list tl)
268+
(dotimes (i (length time-list))
269+
(setf (elt time-list i) (float (elt time-list i)))) ;; to use compiled eps> properly (see https://github.com/euslisp/EusLisp/issues/406)
268270
(if (/= (length position-list) (1+ (length time-list)))
269271
(warning-message 1 "length of position-list must be length of time-list + 1"))
270272
(setq time 0.0)

0 commit comments

Comments
 (0)