MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / __init__

Method __init__

limsim/utils/obstacles.py:237–248  ·  view source on GitHub ↗
(self,
                 obstacle_id: str,
                 shape: Shape,
                 obstacle_type: ObsType,
                 current_state: State,
                 lane_id: str,
                 future_trajectory: Trajectory = None,
                 edge: str = "")

Source from the content-addressed store, hash-verified

235 """
236
237 def __init__(self,
238 obstacle_id: str,
239 shape: Shape,
240 obstacle_type: ObsType,
241 current_state: State,
242 lane_id: str,
243 future_trajectory: Trajectory = None,
244 edge: str = "") -> None:
245 super().__init__(obstacle_id, shape, obstacle_type, current_state,
246 lane_id, edge)
247
248 self._future_trajectory = future_trajectory if future_trajectory is not None else Trajectory()
249
250
251

Callers

nothing calls this directly

Calls 2

TrajectoryClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected