smarts.sstudio.sstypes.zone module
- class smarts.sstudio.sstypes.zone.ConfigurableZone(ext_coordinates: List[Tuple[float, float]], rotation: float | None = None)[source]
A descriptor for a zone with user-defined geometry.
- ext_coordinates: List[Tuple[float, float]]
external coordinates of the polygon < 2 points provided: error = 2 points provided: generates a box using these two points as diagonal > 2 points provided: generates a polygon according to the coordinates
- rotation: float | None = None
The heading direction of the bubble(radians, clock-wise rotation)
- class smarts.sstudio.sstypes.zone.MapZone(start: Tuple[str, int, float], length: float, n_lanes: int = 2)[source]
A descriptor that defines a capture area.
- length: float
The length of the geometry along the center of the lane. Also acceptable ‘max’.
- n_lanes: int = 2
The number of lanes from right to left that this zone covers.
- start: Tuple[str, int, float]
The (road_id, lane_index, offset) details of the starting location.
- road_id:
The starting road by name.
- lane_index:
The lane index from the rightmost lane.
- offset:
The offset in meters into the lane. Also acceptable ‘max’ or ‘random’.
- class smarts.sstudio.sstypes.zone.PositionalZone(pos: Tuple[float, float], size: Tuple[float, float], rotation: float | None = None)[source]
A descriptor that defines a capture area at a specific XY location.
- pos: Tuple[float, float]
A (x,y) position of the zone in the scenario.
- rotation: float | None = None
The heading direction of the bubble. (radians, clock-wise rotation)
- size: Tuple[float, float]
The (length, width) dimensions of the zone.
- class smarts.sstudio.sstypes.zone.RoadSurfacePatch(zone: Zone, begin_time: int, end_time: int, friction_coefficient: float)[source]
A descriptor that defines a patch of road surface with a different friction coefficient.
- begin_time: int
The start time in seconds of when this surface is active.
- end_time: int
The end time in seconds of when this surface is active.
- friction_coefficient: float
The surface friction coefficient.