Skip to content

Commit 98bb11c

Browse files
committed
Released GIL during TSR Planner.
This prevents unnecessary hangs during planning when using python threads. I see no cases where this would not be necessary.
1 parent 9eeb4e1 commit 98bb11c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/prpy/planning/tsr.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ def PlanToTSR(self, robot, tsrchains, tsr_timeout=2.0,
101101
ik_param = IkParameterization(
102102
tsrchain.sample(), IkParameterizationType.Transform6D)
103103
ik_solution = manipulator.FindIKSolutions(
104-
ik_param, IkFilterOptions.CheckEnvCollisions)
104+
ik_param, IkFilterOptions.CheckEnvCollisions,
105+
ikreturn=False, releasegil=True
106+
)
105107
if ik_solution.shape[0] > 0:
106108
ik_solutions.append(ik_solution)
107109

0 commit comments

Comments
 (0)