Commit Graph

75 Commits

Author SHA1 Message Date
Adeeb Shihadeh
853febe21d visionipc: remove RGB support (#33739)
* visionipc: remove RGB support

* bump

* msgq master

* fix sim
2024-10-07 13:24:57 -07:00
Adeeb Shihadeh
bd2b09c7b6 Deprecate controlsState state fields (#33437)
* Deprecate controlsState state fields

* sim works

* update refs

* one more

* these too

* update sim
old-commit-hash: 3924ac587b735d1e735af4cb77faf6ccf053f656
2024-09-03 14:40:23 -07:00
Hoang Bui
696d4c8450 sim: fix code formatting (#33381)
sim: fix code
old-commit-hash: f37ee559fa
2024-08-26 14:09:40 -07:00
commaci-public
0ee93c6a90 [bot] Update Python packages and pre-commit hooks (#32682)
* Update Python packages and pre-commit hooks

* fix linter

* poetry lock

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 71063d66cd
2024-06-10 17:19:01 -07:00
Harald Schäfer
f870a968e9 Split cereal into cereal/msgq (#32631)
* squash

* fix doc

* compile device

* compile device

* Update ref

* add msgq to precommit exclusions

* No service ports

* fix compile

* address comments

* More comments

* Delete logger

* Update opendbc

* Linting

* bump msgq
old-commit-hash: e71ec4e8d7
2024-06-06 14:31:56 -07:00
Adeeb Shihadeh
2c6829ed67 boardd is pandad (#32628)
* boardd is pandad

* rename tests
old-commit-hash: 34e329649d
2024-06-04 19:16:55 -07:00
Hoang Bui
565e06b66a Simulator: standardize queue messages (#32313)
* standardize queue messages

* update control_command_gen

* fix

* fix logic

* update closing type

* qmessagetype -> enum

* update type hint

* old close() makes more sense

* cleanup

* fix

* revert that

* revert that

* better name

* actually this is better
old-commit-hash: 630e152900
2024-05-17 19:51:07 -07:00
Michel Le Bihan
5620c5e4f7 simulator: Change car to Honda Civic 2022 (#32087)
* simulator: Change car to Honda Civic 2022

* simulator: Enable experimental longitudinal control
old-commit-hash: 44129ad0df
2024-04-02 10:28:19 -07:00
Michel Le Bihan
78c88cfdd4 simulator: Remove comma pedal sensor (#32030)
old-commit-hash: 1637265ad3
2024-03-27 09:47:29 -07:00
Adeeb Shihadeh
fcbce3d8f6 cleanup pedal crc
old-commit-hash: 23e8ad7397
2024-03-20 10:35:33 -07:00
Adeeb Shihadeh
3bf3f4bf78 remove pedal (#31903)
* remove pedal

* bump panda

* fix

* update refs
old-commit-hash: fa12a67228
2024-03-17 22:42:49 -07:00
Michel Le Bihan
a036e6e043 Simulator: Add world status reporting (#31740)
old-commit-hash: b4c8e0834d
2024-03-06 19:16:21 -08:00
Michel Le Bihan
fd4ee6f1c5 Only print keyboard help on poll start and unknown command (#31710)
old-commit-hash: 32fb58656a
2024-03-05 10:36:01 -08:00
Michel Le Bihan
07ad9f9644 Add simple MetaDrive scenario (#31686)
old-commit-hash: 87a9445d56
2024-03-04 08:54:08 -08:00
Harald Schäfer
add26a5d1f GpsLocation: Rename accuracy to horizontal accuracy (#31629)
* Rename accuracy to horizontal accuracy

* typo in cereal
old-commit-hash: 85eb221e4c
2024-02-28 19:55:57 -08:00
Cameron Clough
9bd90112d0 use pyupgrade to update to new typing syntax (#31580)
* add pyupgrade hook

* run pyupgrade (pre-commit run -a)

* ruff --fix

* Revert "add pyupgrade hook"

This reverts commit 56ec18bb6b8602a0b612f3803d96cdad14b52066.

* revert changes to third_party/

* manual type fixes

* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae49
2024-02-24 16:41:23 -08:00
Justin Newberry
edef8ed522 Simulator: simulate the obd enabled/changed dance (#31519)
obd dance
old-commit-hash: a51ef41cf8
2024-02-20 12:11:42 -08:00
Justin Newberry
c3551ea4ec Simulator: fix keyboard ctrl messing with pytest (#30827)
fix
old-commit-hash: a6b17fb1f6
2023-12-20 15:10:11 -08:00
Justin Newberry
a3eafc8cd5 Simulator: only send camera frames at rate that they are generated (#30802)
only send frames at rate that they are generated
old-commit-hash: 8017c25f0b
2023-12-19 10:45:07 -08:00
Justin Newberry
ba865f4580 Simulator: fix safety param (#30738)
fix param
old-commit-hash: 977dd033c4
2023-12-14 19:34:06 -08:00
Kacper Rączy
f10d6d5738 metadrive: fix wasd steer signs (#30623)
* Swap AD signs

* Fix type annotation

* fix user torque

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 43e1409fd2
2023-12-12 14:09:07 -08:00
Justin Newberry
9ef90e214d Simulator: remove carla (#30690)
* no carla

* no arg and stylize metadrive
old-commit-hash: 11ec5bf25e
2023-12-11 20:38:37 -08:00
Shane Smiskol
f5d1c4f371 ruff: check newline (#30668)
* check newline

* nothing catches this
old-commit-hash: 97da129e11
2023-12-09 13:24:18 -08:00
Justin Newberry
8c21642780 simulator: set valid flags (#30656)
sim set valid
old-commit-hash: bb9dda9764
2023-12-08 16:31:30 -08:00
Logan Lasiter
4f1ed42285 adding --local-partial-types mypy opt (#30491)
old-commit-hash: 5b2bcf6bf2
2023-11-18 22:47:11 -08:00
Justin Newberry
db839e887d Simulator: blinkers and lane changes (#30107)
blinkers and lane changes
old-commit-hash: ba90bdf7d9
2023-09-29 16:32:45 -07:00
Justin Newberry
dc0babfae4 Simulator: update documentation for metadrive (#30002)
* update sim docs

* update docs
old-commit-hash: 84609f365b
2023-09-29 12:44:12 -07:00
Justin Newberry
8dcd04e702 Metadrive: move to a separate process (#30103)
* split bridge into two files

* fix metadrive

* wip

* fix tests too

* separate process

* sepeprate process

* finish moving to another process

* remove spammy output
old-commit-hash: 9d3dbd245a
2023-09-29 11:45:14 -07:00
Justin Newberry
078efeb3c2 Simulation: engage on startup, print help message (#30044)
old-commit-hash: 2792e5f2db
2023-09-27 07:21:46 -07:00
Justin Newberry
0673347b3e Simulator: add reset hotkey (#29995)
add sim reset
old-commit-hash: 0857f4bb85
2023-09-20 17:28:41 -07:00
Justin Newberry
a79bfe13bf Simulator: add metadrive as optional simulator (#29935)
* Add metadrive sim

* use monotonic

* don't use cuda if it's not available

* Cleanup metadrive patches

* PR suggestions

* fix typo
old-commit-hash: e02519bb71
2023-09-20 10:35:57 -07:00
Justin Newberry
6d0672632b Simulator: fix controlsd mismatch (#29976)
fix controls mismatch
old-commit-hash: bee40de703
2023-09-19 12:51:54 -07:00
Justin Newberry
27cacb51d4 Simulator: cleanup in preparation for metadrive (#29903)
* sim bridge cleanup

* fix carla

* remove that exception

* pr cleanup

* update car in a thread

* more cleanup

* import sorting

* handle exits better
old-commit-hash: 7f6718a7cb
2023-09-15 14:02:09 -07:00
Justin Newberry
c4f322ce2d Linter: remove pylint (#29611)
remove pylint
old-commit-hash: 1ee6ed4b16
2023-08-24 16:30:54 -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
a9611d13be simulator: fix CANParser input args (#29343)
* we weren't testing?

* fix
old-commit-hash: 84fbf1c2e9
2023-08-11 14:12:33 -07:00
Harald Schäfer
cbe8057c55 Fix CARLA simulation (#28541)
* logmessaged conflicts with onnxrunner

* More fixes, now engages

* Fix can properly

* Otherwise it faults

* Put check back

* remove more hacks

* remove more hacks

* Not relevant anymore

* Narrow camera default
old-commit-hash: c5c9d5b921
2023-06-13 22:54:37 -07:00
Adeeb Shihadeh
18b4b1e73e remove old tools script
old-commit-hash: 49044b5399
2022-08-07 17:10:14 -07:00
Adeeb Shihadeh
04af978260 let can packer handle counter (#25240)
* let can packer handle counter

* diff is expected

* update refs

* clean that up

* bump opendbc

* fix sim
old-commit-hash: 0ca62bf7df
2022-07-21 20:54:53 -07:00
Adeeb Shihadeh
f06bb9d5f2 CANParser: invalid until valid (#24945)
* CANParser: invalid until valid

* bump opendbc

* bump opendbc

* fix counter in sim
old-commit-hash: 569a39ff76
2022-06-22 15:38:38 -07:00
Maxime Desroches
9a003e9b29 simulator: run simulator test in ci (#24691)
* run simulator test in ci

* block navd process

* block ui

* fix jenkins

* build docker

* remove tty

* remove tty for carla

* detach carla_sim

* more retries

* only build once

* add more time for bridge

* cleanup

* use qt offscreen

* expose to docker

* block ui

* use new dockerimage

* fix

* from ubuntu20.04

* install curl

* add ssh

* add locales

* noninteractive

* syntax

* use base

* smaller image

* add git + git lfs

* kill carla

* run in parallel

* fix missing agents

* default agent?

* little cleanup

* default doesn't work

* not in ci

* fix path

* fix path

* new msg

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5add0c6159
2022-06-11 15:32:12 -07:00
Gijs Koning
d0fc9afa48 Simulator: Fix CI and set low_quality default (#24354)
* Change low_quality argument and fix closing carla bridge

* Some fixes

* Change carla process in test

* Change fov to 120, higher doesn't look good

* Update readme and remove redundant test

* update

* Add folder description
old-commit-hash: ee433dfa57
2022-04-29 07:15:05 -07:00
Adeeb Shihadeh
0c9aa1570b sim: add ignition toggling (#24043)
old-commit-hash: bb36a1c8b2
2022-03-25 14:17:45 -07:00
Adeeb Shihadeh
bd71c594a2 pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
old-commit-hash: 8af20af66d
2022-03-24 23:23:29 -07:00
Adeeb Shihadeh
05ba2a5866 sim: fix bridge after default values removed from CANParser
old-commit-hash: 36a3ec04be
2022-01-29 18:22:14 -08:00
Ewout ter Hoeven
a962365292 Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 55390d273f
2021-12-16 14:58:17 +01:00
jimw
cf29eacca4 CARLA: send YUV and RGB over visionipc from bridge.py (#23012)
* CARLA: send YUV and RGB over visionipc

* CARLA: send YUV and RGB over visionipc-fix pipfile

* CARLA: send YUV and RGB over visionipc-Camerad class

* relock pipfile

* small bridge cleanup

* use tici camera resolution

* update vof

* HUD_SETTING has no counter

* no loggerd

Co-authored-by: jwolffe <wolffja@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a58d272ae4
2021-11-26 16:58:25 +01:00
Adeeb Shihadeh
17b51d3fd8 sim: fix CAN error and block loggerd
old-commit-hash: 45ced84acf
2021-11-13 12:21:24 -08:00
Adeeb Shihadeh
fc4b12c05c sim: set fingerprint with environment variable (#22679)
old-commit-hash: e556d3d3d3
2021-10-24 21:59:50 -07:00
orphen
b433129fd6 fix: sim: gracefully shutdown the bridge (#21413)
old-commit-hash: 325cabd4da
2021-06-29 13:45:34 -07:00