Skip to content

Commit e3e902b

Browse files
Refactor import of ReedsSheppParking to avoid dependency error in SummoningRoutePlanner class
1 parent 788c622 commit e3e902b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

GEMstack/onboard/planning/route_planning.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import os
66
import numpy as np
77
from .RRT import BiRRT
8-
from .reeds_shepp_parking import ReedsSheppParking
98

109

1110
class StaticRoutePlanner(Component):
@@ -216,6 +215,8 @@ class SummoningRoutePlanner(Component):
216215
"""Reads a route from disk and returns it as the desired route."""
217216

218217
def __init__(self, roadgraphfn: str = None, map_type: str = 'roadgraph', map_frame: str = 'start'):
218+
# Moving this import here to avoid dependency error related to reeds-shepp python package
219+
from .reeds_shepp_parking import ReedsSheppParking
219220
self.planner = None
220221
self.route = None
221222
self.map_type = map_type

0 commit comments

Comments
 (0)