Skip to content

Commit aca72e7

Browse files
author
David Butterworth
committed
Fix imports in SnapPlanner
1 parent 6a1fe7b commit aca72e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/prpy/planning/snap.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def PlanToEndEffectorPose(self, robot, goal_pose, **kw_args):
124124
def _Snap(self, robot, goal, **kw_args):
125125
from prpy.util import CheckJointLimits
126126
from prpy.util import GetLinearCollisionCheckPts
127+
#from prpy.util import SampleTimeGenerator
128+
from prpy.util import VanDerCorputSampleGenerator
127129
from prpy.planning.exceptions import CollisionPlanningError
128130
from prpy.planning.exceptions import SelfCollisionPlanningError
129131

@@ -163,13 +165,13 @@ def _Snap(self, robot, goal, **kw_args):
163165
#
164166
# Sampling function:
165167
# 'linear'
166-
#linear = prpy.util.SampleTimeGenerator
168+
#linear = SampleTimeGenerator
167169
# 'Van der Corput'
168-
vdc = prpy.util.VanDerCorputSampleGenerator
170+
vdc = VanDerCorputSampleGenerator
169171
checks = GetLinearCollisionCheckPts(robot, \
170172
traj, \
171173
norm_order=2, \
172-
sampling_order=vdc)
174+
sampling_func=vdc)
173175

174176
# Run constraint checks at DOF resolution:
175177
for t, q in checks:

0 commit comments

Comments
 (0)