simulation.src.simulation_evaluation.src.speaker.speakers.test package¶
Submodules¶
simulation.src.simulation_evaluation.src.speaker.speakers.test.fake_msgs module¶
Functions:
|
Create a line of points and split it up into multiple sections. |
|
|
|
|
|
Imitate the response of the groundtruth lane service by returning what’s in lines at idx id. |
|
|
|
|
|
|
|
|
|
|
|
|
|
- create_points(start_point=Point(0.0, 0.0, 0.0), offset_right=1, point_dist=1, section_count=10, point_count=100, direction=0, deviation=0.39269908169872414) → List[simulation.utils.road.sections.line_tuple.LineTuple][source]¶
Create a line of points and split it up into multiple sections.
- lane_msgs(lines: List[simulation.utils.road.sections.line_tuple.LineTuple] = [], id: int = 0) → simulation_groundtruth.srv._LaneSrv.LaneSrvResponse[source]¶
Imitate the response of the groundtruth lane service by returning what’s in lines at idx id.
- obstacle_msgs(obstacles: List[simulation.utils.geometry.polygon.Polygon], id: int) → simulation_groundtruth.srv._LabeledPolygonSrv.LabeledPolygonSrvResponse[source]¶
- empty_labeled_polygon_response(id: int) → simulation_groundtruth.srv._LabeledPolygonSrv.LabeledPolygonSrvResponse[source]¶
- intersection_msg(south: Optional[simulation_groundtruth.msg._Lane.Lane] = None, west: Optional[simulation_groundtruth.msg._Lane.Lane] = None, east: Optional[simulation_groundtruth.msg._Lane.Lane] = None, north: Optional[simulation_groundtruth.msg._Lane.Lane] = None, rule: int = 0, turn: int = 0, id: int = 0) → simulation_groundtruth.srv._IntersectionSrv.IntersectionSrvResponse[source]¶
- intersection_srv(south: Optional[simulation_groundtruth.msg._Lane.Lane] = None, west: Optional[simulation_groundtruth.msg._Lane.Lane] = None, east: Optional[simulation_groundtruth.msg._Lane.Lane] = None, north: Optional[simulation_groundtruth.msg._Lane.Lane] = None, rule: int = 0, turn: int = 0)[source]¶
- parking_msgs(right_spots: List[simulation.utils.geometry.polygon.Polygon], left_spots: List[simulation.utils.geometry.polygon.Polygon], right_border: simulation.utils.geometry.line.Line, left_border: simulation.utils.geometry.line.Line, id: int) → simulation_groundtruth.srv._ParkingSrv.ParkingSrvResponse[source]¶
- parking_srv(right_spots: List[simulation.utils.geometry.polygon.Polygon], left_spots: List[simulation.utils.geometry.polygon.Polygon], right_border: simulation.utils.geometry.line.Line, left_border: simulation.utils.geometry.line.Line)[source]¶
simulation.src.simulation_evaluation.src.speaker.speakers.test.test_area_speaker module¶
Classes:
|
simulation.src.simulation_evaluation.src.speaker.speakers.test.test_event_speaker module¶
Classes:
|
simulation.src.simulation_evaluation.src.speaker.speakers.test.test_speaker module¶
Classes:
|
- class ModuleTest(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Methods:
Create a line of points as middle line and check if the following functions/attributes work:
Test if car state msg is processed correctly.
Test polygon functions:
simulation.src.simulation_evaluation.src.speaker.speakers.test.test_speed_speaker module¶
Classes:
|
simulation.src.simulation_evaluation.src.speaker.speakers.test.test_zone_speaker module¶
Classes:
|
simulation.src.simulation_evaluation.src.speaker.speakers.test.utils module¶
Functions:
|
|
|
Ensure that the speaker returns the correct msg when the vehicle is at a given position. |
- polygon_list_almost_equal(list1: Iterable[simulation.utils.geometry.polygon.Polygon], list2: Iterable[simulation.utils.geometry.polygon.Polygon])[source]¶