You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| tests | 2 years ago | |
| .gitignore | 2 years ago | |
| README.md | 2 years ago | |
| SConscript | 2 years ago | |
| __init__.py | ||
| helpers.py | 2 years ago | |
| main.cc | 2 years ago | |
| map_renderer.cc | 2 years ago | |
| map_renderer.h | 2 years ago | |
| map_renderer.py | 2 years ago | |
| navd.py | 2 years ago | |
| set_destination.py | 2 years ago | |
| style.json | ||
README.md
navigation
This directory contains two daemons, navd and mapsd, which support navigation in the openpilot stack.
navd
navd takes in a route through the NavDestination param and sends out two packets: navRoute and navInstruction. These packets contain the coordinates of the planned route and turn-by-turn instructions.
map renderer
The map renderer listens for the navRoute and publishes a rendered map view over VisionIPC for the navigation model, which lives in selfdrive/modeld/. The rendered maps look like this:
development
Currently, mapbox is used for navigation.
- get an API token: https://docs.mapbox.com/help/glossary/access-token/
- set an API token using the
MAPBOX_TOKENenvironment variable - routes/destinations are set through the
NavDestinationparam- use
set_destination.pyfor debugging
- use
- edit the map: https://www.mapbox.com/contribute
- mapbox API playground: https://docs.mapbox.com/playground/
