@@ -56,7 +56,8 @@ def PlanToConfigurations(self, robot, goals, **kw_args):
56
56
@param goals list of goal configurations
57
57
@return traj output path
58
58
"""
59
- return self .Plan (robot , jointgoals = goals , smoothingitrs = 0 , ** kw_args )
59
+ kw_args .setdefault ('smoothingitrs' , 0 )
60
+ return self .Plan (robot , jointgoals = goals , ** kw_args )
60
61
61
62
@PlanningMethod
62
63
def PlanToConfiguration (self , robot , goal , ** kw_args ):
@@ -66,7 +67,8 @@ def PlanToConfiguration(self, robot, goal, **kw_args):
66
67
@param goal goal configuration
67
68
@return traj output path
68
69
"""
69
- return self .Plan (robot , jointgoals = [goal ], smoothingitrs = 0 , ** kw_args )
70
+ kw_args .setdefault ('smoothingitrs' , 0 )
71
+ return self .Plan (robot , jointgoals = [goal ], ** kw_args )
70
72
71
73
@PlanningMethod
72
74
def PlanToEndEffectorPose (self , robot , goal_pose , ** kw_args ):
@@ -81,8 +83,10 @@ def PlanToEndEffectorPose(self, robot, goal_pose, **kw_args):
81
83
goal_tsr = prpy .tsr .tsr .TSR (T0_w = goal_pose , manip = manipulator_index )
82
84
tsr_chain = prpy .tsr .tsr .TSRChain (sample_goal = True , TSR = goal_tsr )
83
85
84
- return self .Plan (robot , tsr_chains = [tsr_chain ], psample = 0.1 ,
85
- smoothingitrs = 0 , ** kw_args )
86
+ kw_args .setdefault ('psample' , 0.1 )
87
+ kw_args .setdefault ('smoothingitrs' , 0 )
88
+
89
+ return self .Plan (robot , tsr_chains = [tsr_chain ], ** kw_args )
86
90
87
91
@PlanningMethod
88
92
def PlanToEndEffectorOffset (self , robot , direction , distance ,
@@ -137,8 +141,9 @@ def PlanToEndEffectorOffset(self, robot, direction, distance,
137
141
manip = robot .GetActiveManipulatorIndex ())
138
142
traj_tsr_chain = prpy .tsr .tsr .TSRChain (constrain = True , TSRs = [trajtsr ])
139
143
144
+ kw_args .setdefault ('psample' , 0.1 )
145
+
140
146
return self .Plan (robot ,
141
- psample = 0.1 ,
142
147
tsr_chains = [goal_tsr_chain , traj_tsr_chain ],
143
148
# Smooth since this is a constrained trajectory.
144
149
smoothingitrs = smoothingitrs ,
@@ -162,7 +167,7 @@ def PlanToTSR(self, robot, tsr_chains, smoothingitrs=100, **kw_args):
162
167
163
168
for chain in tsr_chains :
164
169
if chain .sample_start or chain .sample_goal :
165
- psample = 0.1
170
+ kw_args . setdefault ( ' psample' , 0.1 )
166
171
167
172
if chain .constrain :
168
173
is_constrained = True
@@ -172,7 +177,6 @@ def PlanToTSR(self, robot, tsr_chains, smoothingitrs=100, **kw_args):
172
177
smoothingitrs = 0
173
178
174
179
return self .Plan (robot ,
175
- psample = psample ,
176
180
smoothingitrs = smoothingitrs ,
177
181
tsr_chains = tsr_chains ,
178
182
** kw_args
0 commit comments