selfdrive.navd package

Submodules

selfdrive.navd.helpers module

class selfdrive.navd.helpers.Coordinate(latitude: float, longitude: float)[source]

Bases: object

as_dict() dict[str, float][source]
distance_to(other: Coordinate) float[source]
dot(other: Coordinate) float[source]
classmethod from_mapbox_tuple(t: tuple[float, float]) Coordinate[source]
selfdrive.navd.helpers.coordinate_from_param(param: str, params: Params = None) Coordinate | None[source]
selfdrive.navd.helpers.distance_along_geometry(geometry: list[Coordinate], pos: Coordinate) float[source]
selfdrive.navd.helpers.field_valid(dat: dict, field: str) bool[source]
selfdrive.navd.helpers.maxspeed_to_ms(maxspeed: dict[str, str | float]) float[source]
selfdrive.navd.helpers.minimum_distance(a: Coordinate, b: Coordinate, p: Coordinate)[source]
selfdrive.navd.helpers.parse_banner_instructions(banners: Any, distance_to_maneuver: float = 0.0) dict[str, Any] | None[source]
selfdrive.navd.helpers.string_to_direction(direction: str) str[source]

selfdrive.navd.libmaprender module

selfdrive.navd.map_renderer module

selfdrive.navd.map_renderer.coords_to_polyline(coords)[source]
selfdrive.navd.map_renderer.get_ffi()[source]
selfdrive.navd.map_renderer.get_image(lib, renderer)[source]
selfdrive.navd.map_renderer.navRoute_to_polyline(nr)[source]
selfdrive.navd.map_renderer.polyline_to_coords(p)[source]
selfdrive.navd.map_renderer.wait_ready(lib, renderer)[source]

selfdrive.navd.navd module

class selfdrive.navd.navd.RouteEngine(sm, pm)[source]

Bases: object

calculate_route(destination)[source]
clear_route()[source]
recompute_route()[source]
reset_recompute_limits()[source]
send_instruction()[source]
send_route()[source]
should_recompute()[source]
update()[source]
update_location()[source]
selfdrive.navd.navd.main()[source]

selfdrive.navd.set_destination module

Module contents