8000 fix indentation · hanm2019/robotics-toolbox-python@3e6b955 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e6b955

Browse files
committed
fix indentation
1 parent 46200cf commit 3e6b955

File tree

1 file changed

+4
-3
lines changed
  • roboticstoolbox/robot

1 file changed

+4
-3
lines changed

roboticstoolbox/robot/IK.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ def ikine_LM(
240240
for k in range(slimit):
241241
# choose a random joint coordinate
242242
q0_k = np.random.rand(self.n) * qspan + qlim[0, :]
243+
print('search starts at ', q0_k)
243244

244245
# recurse into the solver
245246
solution = self.ikine_LM(
@@ -264,9 +265,9 @@ def ikine_LM(
264265
# more to do on the trajectory
265266
solutions.append(solution)
266267
del T[0]
267-
else:
268-
# no solution found, stop now
269-
return iksol(None, False, None, None, None)
268+
else:
269+
# no solution found, stop now
270+
return iksol(None, False, None, None, None)
270271

271272
if q0 is None:
272273
q0 = np.zeros((self.n,))

0 commit comments

Comments
 (0)
0