Skip to content

Commit 6a1fe7b

Browse files
author
David Butterworth
committed
When SnapPlanner calls GetLinearCollisionCheckPts() it should pass in a sampling function.
1 parent 89d8084 commit 6a1fe7b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/prpy/planning/snap.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,15 @@ def _Snap(self, robot, goal, **kw_args):
161161
# trajectory only has one waypoint then only the
162162
# start configuration will be collisioned checked.
163163
#
164-
# sampling_order: 'linear' or 'van_der_corput'
164+
# Sampling function:
165+
# 'linear'
166+
#linear = prpy.util.SampleTimeGenerator
167+
# 'Van der Corput'
168+
vdc = prpy.util.VanDerCorputSampleGenerator
165169
checks = GetLinearCollisionCheckPts(robot, \
166170
traj, \
167171
norm_order=2, \
168-
sampling_order='van_der_corput')
172+
sampling_order=vdc)
169173

170174
# Run constraint checks at DOF resolution:
171175
for t, q in checks:

0 commit comments

Comments
 (0)