Commit Graph

45 Commits

Author SHA1 Message Date
Adeeb Shihadeh
dc094792b7 Revert "ci: faster metadrive test (#33755)"
This reverts commit d7c0906d0b.
2024-10-14 09:11:37 -07:00
Maxime Desroches
d7c0906d0b ci: faster metadrive test (#33755)
* fast

* fix

* same ratio

* output

* check old

* error

* fail

* better

* log

* test faster runner

* work?

* test

* ratio

* forward

* try without wait

* test old distance

* fxi

* test old runner

* test this

* assert distance

* cleanup

* better

* get distance

* cleanup

* choose runner

* very slow

* wait

* put this back
2024-10-09 15:16:50 -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
Maxime Desroches
6a36e1d05f reduce metadrive size (#33391)
* minimal

* uv.lock

* remove anisotropic filtering

* new wheel
old-commit-hash: 629dcdcfca
2024-08-30 20:08:03 -07:00
Shane Smiskol
4f019b5f60 move selfdrive/car to opendbc (#32630)
* move most of /car

* move some car tests

move some car tests

* fix selfdrive/car/tests

* fix selfdrive/controls tests

* fix the rest of the selfdrive tests

* bump opendbc

* fix all tests

* few more non-test references

* remove opcar and move docs to car

fix these debugging scripts

fix docs

* bump opendbc and panda

forgot panda
old-commit-hash: e735a7f379
2024-08-17 00:54:51 -07:00
commaci-public
daf3d15d72 [bot] Update Python packages and pre-commit hooks (#32990)
* Update Python packages and pre-commit hooks

* fix ruff

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: dd2787b7a1
2024-07-15 17:29:57 +00:00
Hoang Bui
86e2641636 Simulator: update MetaDrive to latest (#32576)
* bump metadrive

* comment
old-commit-hash: aa081f5748
2024-05-30 11:25:21 -07:00
Hoang Bui
60b476a5b6 CI/simulator: metadrive test starts when OP engaged and world is initialized (#32523)
* fix metadrive start time

* fix
old-commit-hash: 613f73c53f
2024-05-25 10:37:07 -07:00
Hoang Bui
b8fd64f3e7 CI: Drive a loop in MetaDrive (#32308)
* finish failure on crossing any line

* update

* standardize queue messages

* update control_command_gen

* fix

* fix logic

* update closing type

* update test

* update logic

* update test

* add out of lane to local

* ci arrive_dest

* pytest integration

* update ci_config

* fix ruff

* move test termination to time

* better

* better order

* curve_len

* add buffer

* cleanup

* cleanup

* cleanup

* cleanup

* out_of_lane

* cleanup

* merge tests

* run 90s

* change test name

* local out of lane detect

* out_of_lane

* static anal

* cleanup

* test_duration

* change setup_class -> setup_create_bridge

* no print state during test

* new out_of_lane detect

* cleanup print in common.py

* fix

* fix

* check distance vs time

* cleanup

* cleanup increase check time

* minimum bridge test time

* wording

* cleanup
old-commit-hash: fe9a091f11
2024-05-22 10:04:43 -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
Hoang Bui
29a1763d01 CI/Simulator: Add Metadrive test to CI (#32352)
* works consistently

* ci gha

* fix

* navd

* fix

* cleanup

* change button

* cleanup

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: aca01365e6
2024-05-05 16:32:08 -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
70a649f88b simulator: Correctly handle arrival at destination (#31807)
old-commit-hash: 8a03884500
2024-03-11 10:27:32 -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
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
Hoang Bui
2852e61e40 Fix self.started value pass in metadrive test (#31153)
* fix value pass

* fix test

---------

Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: 71236204bb
2024-02-02 12:06:05 -08:00
Justin Newberry
c61f40c34f Simulator: prepare to make bridge a PythonProcess (#31201)
* sim services

* clean
old-commit-hash: e49eb4c54f
2024-01-29 10:11:02 -08:00
Justin Newberry
831826d3e5 Simulator: fix metadrive (#31104)
fix metadrive
old-commit-hash: 81516216b1
2024-01-21 17:34:26 -08:00
Justin Newberry
f138a6eccf Metadrive: fix map config on main (#30983)
* Fix map api too

* dont render
old-commit-hash: 28e5d1bb49
2024-01-12 14:42:40 -08:00
Justin Newberry
86139fd98e fix metadrive after bump (#30967)
* fix clip

* wip

* oop

* 1.22

* ... ugly

* fix tuning
old-commit-hash: f2c73039d7
2024-01-11 18:09:39 -08:00
Kacper Rączy
a97f55dadb metadrive: Change camera position to reflect typical height of a vehicle (#30831)
old-commit-hash: 65ece2081a
2024-01-01 14:36:37 -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
4627aca7a3 Metadrive: set near clip (#30745)
set near
old-commit-hash: da12a34ff6
2023-12-14 21:03:02 -08:00
Kacper Rączy
c8160d33fa metadrive: fix dual_camera mode (#30743)
* Use wide cam in metadrive

* 120 fov
old-commit-hash: 5fe9f1459c
2023-12-14 20:51: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
b8df8f21e7 Metadrive: fix slow acceleration and enable past 50 mph (#30171)
metadrive tuning
old-commit-hash: f4b2b70791
2023-10-04 17:25:44 -07:00
Justin Newberry
dddf3f5215 Metadrive: no preloading models (#30170)
no preloading
old-commit-hash: 56b16e77a4
2023-10-04 15:49:05 -07:00
Justin Newberry
4ec10b3347 Metadrive: fix reset (#30142)
* fix reset

* 2 seconds
old-commit-hash: 4d7caff0c8
2023-10-02 16:43:35 -07:00
Justin Newberry
07c27071a4 remove carla dependency (#30139)
* only docs and default

* remove carla dependency

* remove carla dependency
old-commit-hash: 3c55f76790
2023-10-02 16:11:56 -07: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
3cd9856fcc Simulator: wait for engageable (#30105)
wait for engageable
old-commit-hash: 5c2cbec06e
2023-09-29 12:18:49 -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
1f4f70eda2 Simulator: split bridge and world into two files (#30091)
* split bridge into two files

* fix metadrive

* fix tests too
old-commit-hash: 5af5469c66
2023-09-28 17:50:01 -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
8fd432743a Simulator: Looping metadrive world (#30068)
old-commit-hash: 09325b01ff
2023-09-27 07:20:54 -07:00
Justin Newberry
2a985c8e8f Simulator: cleanup old common stuff (#30069)
cleanup
old-commit-hash: f18d66fa3e
2023-09-26 17:05:46 -07:00
Justin Newberry
00302ba898 Simulator: fix metadrive tick frequency (#30043)
sim rate fix
old-commit-hash: 98451611be
2023-09-25 16:28:09 -07:00
Justin Newberry
a6c4108045 Simulator: improve carla experience (#29996)
* wip

* carla improvments

* reset that
old-commit-hash: 2132e2358d
2023-09-21 10:38:06 -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
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