Commit Graph

71 Commits

Author SHA1 Message Date
Justin Newberry 3027a428cb Pytest: tici mark for skipping on-device tests (#30412)
* mark tici

* not those ones

* missed that one

* add those

* add pypoetry

* oops
old-commit-hash: aec7cea30d
2023-11-07 17:35:44 -08:00
Justin Newberry 40757d9d01 Mapsd: move on the CPU (#30349)
* mapsd -> cpu

* link directly to mesa

* Fix gitignore

* without launcher script

* dont change that

* dont need that

* add to files_common

* rename to configure cpu rendering

* without a symlink!

* update time refs

* update ref

* update ref

* remove duplicate include

* bump up again

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: bdf2fa0f83
2023-11-06 09:04:53 -08:00
Justin Newberry 080ae26ee3 Mapsd: test render performance (#30367)
* cleanup and fix test

* sa

* fix test failing

* increase tolerance more for stddev

* increase that more

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 983ac6c235
2023-11-03 10:59:07 -07:00
Adeeb Shihadeh 0f11c17669 Revert "Mapsd: test render performance (#30363)"
This reverts commit 36a5c076a5f42ca76b8ff9aa69ebf4d545552d83.

old-commit-hash: bb828f0cda
2023-11-02 20:19:13 -07:00
Justin Newberry 8d9899e596 Mapsd: test render performance (#30363)
* cleanup and fix test

* sa

---------

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 676ba9f951
2023-11-02 16:07:30 -07:00
Adeeb Shihadeh 4b78e52e34 cleanup old sm pm args (#30241)
* cleanup sm pm

* fix controlsd

* fix
old-commit-hash: b68cfbb332
2023-10-13 23:27:04 -07:00
Shane Smiskol 02a5c081cc navd: locationd is only trusted source (#29803)
* finish revert for https://github.com/commaai/openpilot/pull/27579

* comment out

* clean up
old-commit-hash: 96fd66e4e2
2023-09-06 15:47:21 -07:00
Shane Smiskol 3b8cc9113a map renderer: only log map states once fully loaded (#29722)
only log once fully loaded
old-commit-hash: 6a68944c63
2023-08-30 20:32:00 -07:00
Adeeb Shihadeh 16ec56398c add openpilot prefix to imports (#29498)
* add openpilot prefix to imports

* more

* more

* fix docs

* fix linter

* bump submodules

* fix patched tests

* update dynamic imports

* debug

* Revert "debug"

This reverts commit db5e13b9911cc74438bee123bc3430da6c31b24b.

* fix pm test
old-commit-hash: a9626f95b6
2023-08-20 20:49:55 -07:00
Shane Smiskol 593322dfa9 ui/map: slight turn lane types (#29446)
* add slight turns

* bump cereal

* revert

* hmm, i like this better

* whops

* fix

* bump
old-commit-hash: 6d2922b8e6
2023-08-17 20:51:52 -07:00
Mitchell Goff e6e19f8d3e Non-Inflatable Model 🎈 (#29003)
* Added all maneuvers to navInstruction message

* Added nav instruction logic to modeld

* New model: fcee01c1-96bb-414f-b00d-e4a994a00922/700

* Fixed bug in navd

* Added sharp/slight modifiers

* Updated refs
old-commit-hash: c04e5d12fc
2023-08-09 19:56:45 -07:00
Justin Newberry 3ee0786de3 CI: Pylint to ruff (#29294)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad

* set line length

* pylint exclusions to ruff

* same excludes as old linter

* fix tools QA

* remove unrequired check

* revert linting third_party

* ignore e402
old-commit-hash: 7fdd9fc37c
2023-08-09 13:26:54 -07:00
Justin Newberry 7b677910df Linter: Fix >160 line length test (#29287)
* test

* fix line length

* fix line length

* fix file size

* revert poetry

* cleanup for PR
old-commit-hash: cf64b27168
2023-08-08 17:13:35 -07:00
Justin Newberry ff96892511 Revert "CI: pylint to ruff (#29276)" (#29284)
This reverts commit ffad7279cbad3c4f2ea786287b4624d3a3aa18d7.
old-commit-hash: a91764954b
2023-08-08 14:24:04 -07:00
Justin Newberry 99006365a3 CI: pylint to ruff (#29276)
* pylint to riff

* pylint to riff

* pylint to riff

* revert more

* undo exclude removal

* exclude tinygrad
old-commit-hash: cb31a53d8a
2023-08-08 13:41:30 -07:00
Kacper Rączy edc31db6df 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
old-commit-hash: c640429406
2023-08-01 16:18:46 -07:00
Justin Newberry 401f760418 Mapsd: Test recovery from internet drop (#29044)
old-commit-hash: ce679009ae
2023-08-01 09:23:26 -07:00
Shane Smiskol 8837deee98 map renderer: log unexpected map states (#29160)
log unexpected mapChange signals
old-commit-hash: 7c62c16196
2023-07-26 20:36:15 -07:00
Shane Smiskol 26f3fdae3d map renderer: log when initializing layer (#29157)
Update map_renderer.cc
old-commit-hash: 3f33d72a4c
2023-07-26 16:34:23 -07:00
Shane Smiskol bb46c0e3a0 navd: fix hysteresis when reaching destination (#29032)
fix destination hysteresis when reaching destination
old-commit-hash: 431a2542c9
2023-07-25 01:43:28 -07:00
Shane Smiskol ec900d0389 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
old-commit-hash: 412ed6a017
2023-07-25 01:28:17 -07:00
Justin Newberry cde4198dae Nav: Reset backoff on route clearing (#29067)
* nav backoff reset

* need to reset countdown as well

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: a8396f6a12
2023-07-20 20:40:01 -07:00
Adeeb Shihadeh 5f8e1afc88 navd: handle key present with none value (#29025)
old-commit-hash: 60d570349f
2023-07-18 21:19:18 -07:00
Adeeb Shihadeh 9b3ceb5f5f mapsd: set nice value (#28994)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 99c9cf0c02
2023-07-17 14:36:02 -07:00
Adeeb Shihadeh eb9c9b19b4 Revert "mapsd: release MapRenderer on exit (#28988)"
This reverts commit 97db3f84daffd9e2c6fdf6e65325f42c118aacb8.

old-commit-hash: 9cec7fa1a8
2023-07-17 14:05:52 -07:00
Dean Lee cb8cc55d01 mapsd: release MapRenderer on exit (#28988)
old-commit-hash: 70b2a5220f
2023-07-17 12:57:58 -07:00
Adeeb Shihadeh 7a8ff5d59f 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>
old-commit-hash: cd02ab6358
2023-07-17 10:58:39 -07:00
Adeeb Shihadeh 99945aded5 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>
old-commit-hash: 5b86268635
2023-07-16 15:37:13 -07:00
Adeeb Shihadeh 30a6fa35aa mapsd: rendering tests (#28981)
* mapsd: rendering tests

* run

* speedup
old-commit-hash: e2b5d1e29a
2023-07-16 14:39:34 -07:00
Shane Smiskol 78939ebcbd navd: add repr method to Coordinate (#28959)
* repr coordinate for debugging

* fix

* stash

* better formatting
old-commit-hash: cbde480cb9
2023-07-14 21:42:01 -07:00
Mitchell Goff a0d705d113 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>
old-commit-hash: e346839c68
2023-07-09 15:10:02 -07:00
Mitchell Goff 88c95293cd Always publish from mapsd (#28581)
old-commit-hash: 9d835020fc
2023-06-16 20:13:24 -07:00
Mitchell Goff 300071a27c Rename map_renderer -> mapsd (#28580)
old-commit-hash: 6509cde41b
2023-06-16 20:12:50 -07:00
Mitchell Goff 0fc01cc6f6 Offset topdown map by 128 meters (#28216)
We drive forward :)
old-commit-hash: d528481d8d
2023-05-18 15:30:58 -07:00
Shane Smiskol 3af7b02a26 seldrive: use common sig handler (#28127)
* Update main.cc

* Update util.h

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

* fix release

* sim fix

* fix docs

* build cabana
old-commit-hash: d5ab1e33c2
2023-04-22 15:24:45 -07:00
Kurt Nistelberger edf555e8fd navd: check duration_typical before using (#27184)
check duration_typical

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 9a42929b0c
2023-02-03 14:22:33 -08:00
Mitchell Goff b3626c8ecd 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>
old-commit-hash: 5ab2fc16ab
2022-12-20 14:19:21 -08:00
Adeeb Shihadeh a8c4347a5f nav: add polyline helpers (#26816)
* nav: add polyline helpers

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

* typo

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

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

* No driving style yet

* thneedrunner without extra inputs

* nav feature ref
old-commit-hash: 160c9ba1d2
2022-12-11 15:25:36 -08:00
Adeeb Shihadeh 44098cc024 navmodel: check images in replay test (#26747)
* move position

* log images

* enable test

* update refs

* ignore

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

* cleanup
old-commit-hash: 3ff37cca21
2022-12-09 14:31:18 -08:00
Adeeb Shihadeh 62f035b089 nav: add mapRenderState.frameId
old-commit-hash: 27dc9c0e79
2022-12-09 13:24:44 -08:00