Skip to content

Commit b2d2ca2

Browse files
author
Michael Koval
committed
Convert CBiRRT "direction" to a NumPy array.
1 parent 486ca4d commit b2d2ca2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/prpy/planning/cbirrt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def PlanToConfigurations(self, robot, goals, **kw_args):
5757
"""
5858
return self.Plan(robot, jointgoals=goals, smoothingitrs=0, **kw_args)
5959

60-
6160
@PlanningMethod
6261
def PlanToConfiguration(self, robot, goal, **kw_args):
6362
"""
@@ -95,6 +94,8 @@ def PlanToEndEffectorOffset(self, robot, direction, distance,
9594
@param smoothingitrs number of smoothing iterations to run
9695
@return traj output path
9796
"""
97+
direction = numpy.array(direction, dtype=float)
98+
9899
if direction.shape != (3,):
99100
raise ValueError('Direction must be a three-dimensional vector.')
100101
if not (distance >= 0):

0 commit comments

Comments
 (0)