simulation.src.simulation_evaluation.src.speaker.speakers.area module

Summary

Classes:

AreaSpeaker

Check in which area of the road the vehicle is (e.g.

Reference

class AreaSpeaker(*, section_proxy: Callable[], List[simulation_groundtruth.msg._Section.Section]], lane_proxy: Callable[[int], simulation_groundtruth.msg._Lane.Lane], parking_proxy: Callable[[int], Any], min_wheel_count: int, area_buffer: int)[source]

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

Check in which area of the road the vehicle is (e.g. right corridor, parking lot).

property left_corridor

Concatenated left corridor from all sections.

property right_corridor

Concatenated right corridor from all sections.

property parking_lots

Return all parking bays as a list of polygons.

speak()[source]

Return a list of SpeakerMsgs.

With one of the following messages.

Contents:
  • Right lane -> Speaker.RIGHT_LANE,

  • right or left lange -> Speaker.LEFT_LANE,

  • right, left lane or parking lot -> Speaker.PARKING_LOT,

  • None of the above -> Speaker.OFF_ROAD