Commit Graph

40 Commits

Author SHA1 Message Date
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: dd2787b7a1f2ebb6f71eb3a667848db6caa9963c
2024-07-15 17:29:57 +00:00
Hoang Bui 86e2641636 Simulator: update MetaDrive to latest (#32576)
* bump metadrive

* comment
old-commit-hash: aa081f574833bcb1db4c234b9ee3d5bcd303a6de
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: 613f73c53fa1cd3525a0cb3af0615783bd213fd0
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: fe9a091f116dc0c3bb55d35b31512866663af6af
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: 630e1529008ce0c996ba6a111df44877596acfea
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: aca01365e6715c1c5c18242e81e27c6feed151c6
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: 44129ad0df5c31c03d78fe591183e9db50c8e6b3
2024-04-02 10:28:19 -07:00
Michel Le Bihan 70a649f88b simulator: Correctly handle arrival at destination (#31807)
old-commit-hash: 8a038845003d1a68896c71ea2c2c35455b27b6a0
2024-03-11 10:27:32 -07:00
Michel Le Bihan a036e6e043 Simulator: Add world status reporting (#31740)
old-commit-hash: b4c8e0834d23e757d37b7157dc23eac3ed655bdf
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: 32fb58656a46dc428ec43f04f396aee994efd14e
2024-03-05 10:36:01 -08:00
Michel Le Bihan 07ad9f9644 Add simple MetaDrive scenario (#31686)
old-commit-hash: 87a9445d565fd909a94f19a478841490573c452e
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: 995250ae4967943ee33a3699a1d89a7a770d95e9
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: 71236204bb78d64feb3d46680176dfb37741dc5d
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: e49eb4c54fcac8bd8a4a136d8e116b654efa73ba
2024-01-29 10:11:02 -08:00
Justin Newberry 831826d3e5 Simulator: fix metadrive (#31104)
fix metadrive
old-commit-hash: 81516216b154bbf8c713aa6b4b538d3a2e0ae0b5
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: 28e5d1bb49000b0740d36d6cd714126e9dab825c
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: f2c73039d7799da139ec4e55520f525db4fb95cc
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: 65ece2081a91b84c8b78de404aea2ec17fa81e7c
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: 8017c25f0b2960db13df22295c077fbbd6aa6a07
2023-12-19 10:45:07 -08:00
Justin Newberry 4627aca7a3 Metadrive: set near clip (#30745)
set near
old-commit-hash: da12a34ff66dbe70f532056ba43a6fdb228d41d3
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: 5fe9f1459c73d338bf6277dafc8654f92ee8b00a
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: 43e1409fd2fa4a92350a54434602b71b1874fd60
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: 11ec5bf25e82e53bbefa88643c81ab5b7581e913
2023-12-11 20:38:37 -08:00
Shane Smiskol f5d1c4f371 ruff: check newline (#30668)
* check newline

* nothing catches this
old-commit-hash: 97da129e11e58b07d5d136093827cd1c62311fea
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: f4b2b70791144a82d9c9a215996a5f51038a552d
2023-10-04 17:25:44 -07:00
Justin Newberry dddf3f5215 Metadrive: no preloading models (#30170)
no preloading
old-commit-hash: 56b16e77a45e3443cb97b0d9ab6fec3e949810b3
2023-10-04 15:49:05 -07:00
Justin Newberry 4ec10b3347 Metadrive: fix reset (#30142)
* fix reset

* 2 seconds
old-commit-hash: 4d7caff0c8cd3d9e864525430077d50503eea4ea
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: 3c55f76790a5663a62892581c9554391aebae1de
2023-10-02 16:11:56 -07:00
Justin Newberry db839e887d Simulator: blinkers and lane changes (#30107)
blinkers and lane changes
old-commit-hash: ba90bdf7d9c2d436be33ac7def0ab02d535efe73
2023-09-29 16:32:45 -07:00
Justin Newberry 3cd9856fcc Simulator: wait for engageable (#30105)
wait for engageable
old-commit-hash: 5c2cbec06ef0577425b0eae7f1bf506c7796c89e
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: 9d3dbd245ab39a2893d61759e4ef6b50ab42a463
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: 5af5469c66e04d114121658017a756269c610e48
2023-09-28 17:50:01 -07:00
Justin Newberry 078efeb3c2 Simulation: engage on startup, print help message (#30044)
old-commit-hash: 2792e5f2db33bd955d327545e6fba30ae2826ee0
2023-09-27 07:21:46 -07:00
Justin Newberry 8fd432743a Simulator: Looping metadrive world (#30068)
old-commit-hash: 09325b01ffa7adc9199f6767ccbbe3fa9a70b02c
2023-09-27 07:20:54 -07:00
Justin Newberry 2a985c8e8f Simulator: cleanup old common stuff (#30069)
cleanup
old-commit-hash: f18d66fa3ef8c979e79395758672a5bf1d38575c
2023-09-26 17:05:46 -07:00
Justin Newberry 00302ba898 Simulator: fix metadrive tick frequency (#30043)
sim rate fix
old-commit-hash: 98451611be260a0404069aa6c24e2a0cf032dbd7
2023-09-25 16:28:09 -07:00
Justin Newberry a6c4108045 Simulator: improve carla experience (#29996)
* wip

* carla improvments

* reset that
old-commit-hash: 2132e2358deb451bd7412fc4f9a5a7620ec09bfd
2023-09-21 10:38:06 -07:00
Justin Newberry 0673347b3e Simulator: add reset hotkey (#29995)
add sim reset
old-commit-hash: 0857f4bb85e166da5858820321d2e1e1caef7dff
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: e02519bb71beb4bf1f6b7f5def5a077886e00327
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: 7f6718a7cb87909305fd6f23a614db926d225915
2023-09-15 14:02:09 -07:00