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[LineTuple][source]
Create a line of points and split it up into multiple sections.
- lane_msgs(lines: list[LineTuple] = None, id: int = 0) LaneSrv_Response[source]
Imitate the response of the groundtruth lane service by returning what’s in lines at idx id.
- intersection_msg(south: Lane = None, west: Lane = None, east: Lane = None, north: Lane = None, rule: int = 0, turn: int = 0, id: int = 0) IntersectionSrv_Response[source]
- intersection_srv(south: Lane = None, west: Lane = None, east: Lane = None, north: Lane = None, rule: int = 0, turn: int = 0)[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:
TestCaseMethods:
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:
Attributes:
- test_line_functions()[source]
Create a line of points as middle line and check if the following functions/attributes work:
get_road_lines()
section_intervals
middle_line
arc_length
current_section
- test_overlapping_inside_funcs()[source]
Test polygon functions:
get_interval_for_polygon()
car_is_inside()
car_overlaps_with()
wheel_count_inside()
- _classSetupFailed = False
- _class_cleanups = []
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:
|
- class ModuleTest(methodName='runTest')[source]
Bases:
TestCaseMethods:
setUp()Hook method for setting up the test fixture before exercising it.
Test the speakers msgs by putting the car somewhere and checking the output.
Attributes:
- test_speak_function()[source]
Test the speakers msgs by putting the car somewhere and checking the output.
- _classSetupFailed = False
- _class_cleanups = []
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. |