simulation.src.simulation_evaluation.src.speaker.speakers.event module

Definition of the EventSpeaker class.

Summary

Classes:

EventSpeaker

Find events that happen during a drive e.g collision, parked in spot.

Reference

class EventSpeaker(*, section_proxy: Callable[], List[simulation_groundtruth.msg._Section.Section]], lane_proxy: Callable[[int], simulation_groundtruth.msg._Lane.Lane], obstacle_proxy: Callable[[int], List[simulation_groundtruth.msg._LabeledPolygon.LabeledPolygon]], surface_marking_proxy: Callable[[int], List[simulation_groundtruth.msg._LabeledPolygon.LabeledPolygon]], parking_proxy: Callable[[int], Any], parking_spot_buffer: float, min_parking_wheels: int)[source]

Bases: simulation.src.simulation_evaluation.src.speaker.speakers.speaker.Speaker

Find events that happen during a drive e.g collision, parked in spot.

property parking_spots

Return all parking spots as a list of polygons.

property obstacles

All obstacles as a list of polygons.

property blocked_areas

All blocked_areas as a list of polygons.

speak() → List[simulation_evaluation.msg._Speaker.Speaker][source]

Return a list of SpeakerMsgs.

Contents:
  • Collision with an obstacle -> Speaker.COLLISION,

  • inside a parking spot -> Speaker.PARKING_SPOT