Skip to content

Commit 42ea6ee

Browse files
committed
fix: make ompl path result into a list of np arrays for better compat
1 parent 1db96ed commit 42ea6ee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

python/rcs/ompl/mj_ompl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ def _plan_start_goal(self, start: np.ndarray, goal: np.ndarray, allowed_time = D
455455

456456
# reset robot state
457457
# self.robot.set_state(orig_robot_state)
458+
sol_path_list = [np.array(sol_path, dtype=np.float32) for sol_path in sol_path_list]
458459
return res, sol_path_list
459460

460461
def ik(self, pose:Pose, q0:np.ndarray=None, tcp_offset:Pose=None):

0 commit comments

Comments
 (0)