Commit Graph

56 Commits

Author SHA1 Message Date
Kacper Rączy
c640429406 aarch64: ubuntu build support (#29171)
* Add support for aarch64 pc linux

* Add new libyuv path to release files

* Add libyuv's x86_64 lib dir

* Move left-over platform specific dirs from files_common

* Remove libyuv/lib directory (duplicate)

* Fix mpc Sconscripts

* Remove acados lib path from mpc sources

* Fix typo

* Add watch3 exec on aarch64
2023-08-01 16:18:46 -07:00
Justin Newberry
ce679009ae Mapsd: Test recovery from internet drop (#29044) 2023-08-01 09:23:26 -07:00
Shane Smiskol
7c62c16196 map renderer: log unexpected map states (#29160)
log unexpected mapChange signals
2023-07-26 20:36:15 -07:00
Shane Smiskol
3f33d72a4c map renderer: log when initializing layer (#29157)
Update map_renderer.cc
2023-07-26 16:34:23 -07:00
Shane Smiskol
431a2542c9 navd: fix hysteresis when reaching destination (#29032)
fix destination hysteresis when reaching destination
2023-07-25 01:43:28 -07:00
Shane Smiskol
412ed6a017 navd: don't use empty last step banner instructions (#29034)
* fix empty banner instructions when arriving at destination

* bug fixes

* hide distance on arrival

* stash

* simpler

* can also do this, but i don't like modifying the response

* clean up

* rm

* revert

* rm

* flip this order

* move up

* need to flip order

* Revert "need to flip order"

This reverts commit ba961b8e6aa5d9490ab0dc661866cff9c72db91d.

* Revert "move up"

This reverts commit f1a4d8ae883080d52547fdaf9472457050e40669.

* Update selfdrive/navd/navd.py
2023-07-25 01:28:17 -07:00
Justin Newberry
a8396f6a12 Nav: Reset backoff on route clearing (#29067)
* nav backoff reset

* need to reset countdown as well

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-07-20 20:40:01 -07:00
Adeeb Shihadeh
60d570349f navd: handle key present with none value (#29025) 2023-07-18 21:19:18 -07:00
Adeeb Shihadeh
99c9cf0c02 mapsd: set nice value (#28994)
Co-authored-by: Comma Device <device@comma.ai>
2023-07-17 14:36:02 -07:00
Adeeb Shihadeh
9cec7fa1a8 Revert "mapsd: release MapRenderer on exit (#28988)"
This reverts commit 70b2a5220f.
2023-07-17 14:05:52 -07:00
Dean Lee
70b2a5220f mapsd: release MapRenderer on exit (#28988) 2023-07-17 12:57:58 -07:00
Adeeb Shihadeh
cd02ab6358 mapsd: more reliable test (#28985)
* mapsd: more reliable test

* better wait

* should be good

* fix frame id

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-17 10:58:39 -07:00
Adeeb Shihadeh
5b86268635 nav: always publish map and run model (#28924)
* always render

* more test

* test case

* update test

* vipc checks

* clear cache

---------

Co-authored-by: Comma Device <device@comma.ai>
2023-07-16 15:37:13 -07:00
Adeeb Shihadeh
e2b5d1e29a mapsd: rendering tests (#28981)
* mapsd: rendering tests

* run

* speedup
2023-07-16 14:39:34 -07:00
Shane Smiskol
cbde480cb9 navd: add repr method to Coordinate (#28959)
* repr coordinate for debugging

* fix

* stash

* better formatting
2023-07-14 21:42:01 -07:00
Mitchell Goff
e346839c68 nav model: fix flicker in nav enabled state (#28815)
* Fix flicker in nav enabled state

* Move all relevant information for validity checks into navModel packet

* Ignore locationMonoTime in replay tests

* Check route valid in navmodeld

* sm update

* check that

* update refs

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-09 15:10:02 -07:00
Mitchell Goff
9d835020fc Always publish from mapsd (#28581) 2023-06-16 20:13:24 -07:00
Mitchell Goff
6509cde41b Rename map_renderer -> mapsd (#28580) 2023-06-16 20:12:50 -07:00
Mitchell Goff
d528481d8d Offset topdown map by 128 meters (#28216)
We drive forward :)
2023-05-18 15:30:58 -07:00
Shane Smiskol
e780cca8b6 seldrive: use common sig handler (#28127)
* Update main.cc

* Update util.h

* same for navd
2023-05-08 14:27:04 -07:00
Mitchell Goff
861e18a1a8 Render map at 256x256 and don't crop (#28101) 2023-05-03 21:52:15 -07:00
mitchellgoffpc
c711d71caa Update libmap_renderer -> libmaprender in map_renderer.py/get_ffi 2023-04-26 15:45:12 -07:00
Adeeb Shihadeh
d5ab1e33c2 scons: set warnings as error (#28004)
* navd: fix scons build warnings

* fix release

* sim fix

* fix docs

* build cabana
2023-04-22 15:24:45 -07:00
Kurt Nistelberger
9a42929b0c navd: check duration_typical before using (#27184)
check duration_typical

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
2023-02-03 14:22:33 -08:00
Mitchell Goff
5ab2fc16ab model_replay: use last N frames of segment so navRoute is valid (#26790)
* model_replay: use last N frames of segment so navRoute is valid

* Use llk logMonoTime for MapRenderState.locationMonoTime

* Record mapRenderState

* update refs

Co-authored-by: Comma Device <device@comma.ai>
2022-12-20 14:19:21 -08:00
Adeeb Shihadeh
d3a3d74830 nav: add polyline helpers (#26816)
* nav: add polyline helpers

* Update selfdrive/navd/map_renderer.py
2022-12-16 21:46:07 -08:00
YassineYousfi
08b4cff484 navd: recompute if far for > 3 steps (#26798)
* navd: recompute if far for > 3 steps

* typo

* reset and unindent
2022-12-15 10:51:21 -08:00
Adeeb Shihadeh
951ceecadd navd: avoid re-routing back to past waypoints 2022-12-15 10:38:44 -08:00
Adeeb Shihadeh
be9a3fad37 nav: add setting for extra coordinates to specify route (#26803) 2022-12-14 18:48:39 -08:00
Adeeb Shihadeh
8d95faf97a nav: add README (#26802)
* start docs

* Update README.md
2022-12-14 17:17:25 -08:00
Adeeb Shihadeh
f959952972 nav: build map renderer python lib by default (#26770)
Co-authored-by: Comma Device <device@comma.ai>
2022-12-12 12:56:33 -08:00
Harald Schäfer
160c9ba1d2 Navmodel and driving style: update runner (#26762)
* Navmodel and driving style: update runner

* No driving style yet

* thneedrunner without extra inputs

* nav feature ref
2022-12-11 15:25:36 -08:00
Adeeb Shihadeh
f3a711953a navmodel: check images in replay test (#26747)
* move position

* log images

* enable test

* update refs

* ignore

Co-authored-by: Comma Device <device@comma.ai>
2022-12-09 22:56:32 -08:00
Adeeb Shihadeh
3ff37cca21 map renderer: retry when render fails (#26741)
* map renderer: retry when render fails

* cleanup
2022-12-09 14:31:18 -08:00
Adeeb Shihadeh
27dc9c0e79 nav: add mapRenderState.frameId 2022-12-09 13:24:44 -08:00
Adeeb Shihadeh
c3b3c10232 nav: add mapRenderState (#26734)
* nav: add mapRenderState

* bump cereal

* bump again
2022-12-08 20:57:11 -08:00
Adeeb Shihadeh
1da6f6a6e2 nav model replay (#26697)
* nav model replay

* set token

* fix gh actions

* update refs

* fix pc
2022-12-07 19:36:30 -08:00
Adeeb Shihadeh
6e0893299a navmodeld: only render necessary frames (#26698) 2022-12-05 17:41:32 -08:00
Harald Schäfer
c1e7bed061 Navd map renderer: update to larger image (#26580)
* rerender 512

* rerender 512

* Removed unnecessary code

* rgb -> grayscale

* Add constants

Co-authored-by: mitchellgoffpc <mitchellgoffpc@gmail.com>
2022-11-22 20:20:58 -08:00
Mitchell Goff
fcd6125deb Compute zoom level and downsample image in map_renderer.cc (#26315)
* Automatically zoom to fixed scale in map_renderer.cc

* Always downsample in map_renderer

* Remove updateZoom function

* Added mapsd to process_config.py (commented out for now)
2022-11-01 19:16:37 -07:00
Mitchell Goff
982ea83cf9 Added updateZoom function to map_renderer, plus custom style.json (#25997)
* Added updateZoom function to map_renderer, plus custom style.json

* Render 512x512 maps

* Define STYLE_PATH in navd sconscript
2022-10-13 14:27:59 -07:00
Shane Smiskol
42210a9910 multilang: nav instructions (#25102)
* Try Chinese nav

* try this

* not sure what does what

* read language setting in navd

* probably not used

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2022-09-28 14:44:05 -07:00
Adeeb Shihadeh
c6b749fb96 add pyside2 package (#25602) 2022-08-30 15:10:52 -07:00
Adeeb Shihadeh
6590fb2b93 pre-commit: add codespell (#25571) 2022-08-30 11:20:55 -07:00
Adeeb Shihadeh
90a4565eb2 params: make python and c++ API match (#25573)
* params: make python and c++ API match

* few more
2022-08-26 20:46:19 -07:00
Lee Jong Mun
25a89d1026 navd: include hw.h fix (#25297) 2022-07-27 17:43:06 +02:00
Willem Melching
f72c988415 map_renderer.py, output monochrome images (#25272)
* map renderer, output monochrome images

* pass token/url as argument

* greyscale
2022-07-25 16:20:52 +02:00
Willem Melching
86c1e8164a navd: add back VisionIPC map renderer (#25212)
* builds standalone

* process live msg

* render into nv12a

* VISION_STREAM_RGB_MAP -> VISION_STREAM_MAP

* cleanup sconscript

* main include cleanup
2022-07-19 16:57:13 +02:00
Willem Melching
a9401319df nav: use laikad position if locationd is not yet available (#25033)
* ui: use laikad position when locationd is not ready

* cleanup

* same threshold as locationd

* use first bearing directly

* use in navd too
2022-07-08 09:20:36 -07:00
Willem Melching
a875afd563 navd: handle maxspeed being none (#24871)
* navd: handle maxspeed being none

* none is encoded like this
2022-06-16 18:18:03 +02:00