simulation.src.simulation_evaluation.src.speaker.speakers.test.fake_msgs module

Summary

Functions:

create_points

Create a line of points and split it up into multiple sections.

empty_labeled_polygon_response

intersection_msg

intersection_srv

lane_msgs

Imitate the response of the groundtruth lane service by returning what’s in lines at idx id.

lane_srv

obstacle_msgs

obstacle_srv

parking_msgs

parking_srv

section_msgs

section_srv

surface_marking_srv

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.

section_msgs(section_count: int = 4, section_types: Optional[List[int]] = None)[source]
section_srv(section_count: int = 4, section_types: Optional[List[int]] = None)[source]
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.

lane_srv(lines=None)[source]
obstacle_msgs(obstacles: List[simulation.utils.geometry.polygon.Polygon], id: int) → simulation_groundtruth.srv._LabeledPolygonSrv.LabeledPolygonSrvResponse[source]
obstacle_srv(obstacles=None)[source]
empty_labeled_polygon_response(id: int) → simulation_groundtruth.srv._LabeledPolygonSrv.LabeledPolygonSrvResponse[source]
surface_marking_srv()[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]