simulation.src.simulation_evaluation.src.speaker.speakers.test.fake_msgs module¶
Summary¶
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. |
|
Reference¶
-
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]¶