Skip to content

Commit e34f538

Browse files
committed
Revert breaking IK change
1 parent e2bf223 commit e34f538

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

roboticstoolbox/backends/Swift/Swift.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ def _step_shapes(self, dt):
365365
for shape in self.shapes:
366366

367367
T = shape.base
368-
t = T.t
369-
r = T.rpy('rad')
368+
t = T.t.astype('float64')
369+
r = T.rpy('rad').astype('float64')
370370

371-
t += shape.v[:3] * (dt)
372-
r += shape.v[3:] * (dt)
371+
t += shape.v[:3] * dt
372+
r += shape.v[3:] * dt
373373

374374
shape.base = sm.SE3(t) * sm.SE3.RPY(r)
375375

roboticstoolbox/robot/IK.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,9 @@ def ikine_LM(
264264
# more to do on the trajectory
265265
solutions.append(solution)
266266
del T[0]
267-
else:
268-
# no solution found, stop now
269-
return iksol(None, False, None, None, None)
267+
else:
268+
# no solution found, stop now
269+
return iksol(None, False, None, None, None)
270270

271271
if q0 is None:
272272
q0 = np.zeros((self.n,))

0 commit comments

Comments
 (0)