Skip to content

Commit 8dbb20a

Browse files
committed
Fix TSR parameter from manip to manipindex.
1 parent 9bd9caf commit 8dbb20a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/prpy/planning/adapters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def CreateTSRChains(cls, robot, direction, distance):
7474
T0_w=numpy.dot(H_world_w, Hw_end),
7575
Tw_e=H_w_ee,
7676
Bw=numpy.zeros((6, 2)),
77-
manip=manip_index))
77+
manipindex=manip_index))
7878
constraint_chain = TSRChain(constrain=True, TSR=TSR(
7979
T0_w=H_world_w,
8080
Tw_e=H_w_ee,
@@ -85,6 +85,6 @@ def CreateTSRChains(cls, robot, direction, distance):
8585
[-cls.epsilon, cls.epsilon],
8686
[-cls.epsilon, cls.epsilon],
8787
[-cls.epsilon, cls.epsilon]]),
88-
manip=manip_index))
88+
manipindex=manip_index))
8989

9090
return [goal_chain, constraint_chain]

src/prpy/planning/cbirrt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def PlanToEndEffectorPose(self, robot, goal_pose, **kw_args):
104104
@return traj output path
105105
"""
106106
manipulator_index = robot.GetActiveManipulatorIndex()
107-
goal_tsr = TSR(T0_w=goal_pose, manip=manipulator_index)
107+
goal_tsr = TSR(T0_w=goal_pose, manipindex=manipulator_index)
108108
tsr_chain = TSRChain(sample_goal=True, TSR=goal_tsr)
109109

110110
kw_args.setdefault('psample', 0.1)

0 commit comments

Comments
 (0)