@@ -76,10 +76,6 @@ def PlanToEndEffectorPose(self, robot, goal_pose, **kw_args):
76
76
@param psample probability of sampling a goal
77
77
@return traj output path
78
78
"""
79
- #from IPython import embed
80
- #embed()
81
- self .ClearIkSolver (robot .GetActiveManipulator ())
82
-
83
79
manipulator_index = robot .GetActiveManipulatorIndex ()
84
80
goal_tsr = prpy .tsr .tsr .TSR (T0_w = goal_pose , manip = manipulator_index )
85
81
tsr_chain = prpy .tsr .tsr .TSRChain (sample_goal = True , TSR = goal_tsr )
@@ -98,8 +94,6 @@ def PlanToEndEffectorOffset(self, robot, direction, distance,
98
94
@param smoothingitrs number of smoothing iterations to run
99
95
@return traj output path
100
96
"""
101
- self .ClearIkSolver (robot .GetActiveManipulator ())
102
-
103
97
direction = numpy .array (direction , dtype = float )
104
98
105
99
if direction .shape != (3 ,):
@@ -188,6 +182,10 @@ def Plan(self, robot, smoothingitrs=None, timelimit=None, allowlimadj=0,
188
182
extra_args = None , ** kw_args ):
189
183
from openravepy import CollisionOptions , CollisionOptionsStateSaver
190
184
185
+ # TODO We may need this work-around because CBiRRT doesn't like it when
186
+ # an IK solver other than GeneralIK is loaded (e.g. nlopt_ik).
187
+ #self.ClearIkSolver(robot.GetActiveManipulator())
188
+
191
189
self .env .LoadProblem (self .problem , robot .GetName ())
192
190
193
191
args = [ 'RunCBiRRT' ]
0 commit comments