Commit Graph

215 Commits

Author SHA1 Message Date
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
78c88cfdd4 simulator: Remove comma pedal sensor (#32030)
old-commit-hash: 1637265ad3953cc2307b6f7422aeb5c64d9d9635
2024-03-27 09:47:29 -07:00
Shane Smiskol
1372dac6ab More fingerprint migration fixes (#32018)
* fix migration

* another
old-commit-hash: 81fae3d8077e7efd29c837a303421595b0e3d906
2024-03-26 16:43:09 -07:00
Adeeb Shihadeh
fcbce3d8f6 cleanup pedal crc
old-commit-hash: 23e8ad73979735479131dfb303e249b861829468
2024-03-20 10:35:33 -07:00
thenhnn
77d6d1a8f1 PlatformConfig: automatically get platform_str from the enum name (#31868)
* get platform_str from the enum name

* fix tests

* add migration table

* remove impossible todo

* Add link to PR in MIGRATION table

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Remove useless brand name comments and rename RAM_1500 to RAM_1500_5TH_GEN

* rename RAM_HD to RAM_HD_5TH_GEN

* rename references to RAM_HD and RAM_1500

* change "mock" to "MOCK" and rename torque data of Nissan Leaf 2018 IC

* remove MOCK from fingerprints.py

* change hard-coded car model in test_can_fingerprint.py/test_timing

* migration

* update ref

* space

* prius

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: justin newberry <justin@comma.ai>
Co-authored-by: Justin Newberry <jnewberry0502@gmail.com>
old-commit-hash: 489528dcae3888311f92075ba9e0f68626725121
2024-03-19 11:16:02 -07:00
Adeeb Shihadeh
3bf3f4bf78 remove pedal (#31903)
* remove pedal

* bump panda

* fix

* update refs
old-commit-hash: fa12a6722868d436f15bea31537df1277bcc4027
2024-03-17 22:42:49 -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
02a16c3eb4 simulator: Increase map size to contain road (#31805)
old-commit-hash: 9c8a27ad2492cf613543103709ae8e3c4a3f5b31
2024-03-08 15:13:02 -08: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
Harald Schäfer
add26a5d1f GpsLocation: Rename accuracy to horizontal accuracy (#31629)
* Rename accuracy to horizontal accuracy

* typo in cereal
old-commit-hash: 85eb221e4c9344a5c135789691e8e0500aa51482
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: 995250ae4967943ee33a3699a1d89a7a770d95e9
2024-02-24 16:41:23 -08:00
Justin Newberry
edef8ed522 Simulator: simulate the obd enabled/changed dance (#31519)
obd dance
old-commit-hash: a51ef41cf87c5a8b2eaa5301911051a9d5a8d00c
2024-02-20 12:11:42 -08:00
Justin Newberry
c50146837e Docker: merge opencl and base images (#31338)
* mergeem

* don't change workdir
old-commit-hash: ceecf39c54e95e1bf973ea221fb3c5e7f215aecb
2024-02-06 17:11:00 -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
231932d962 Simulator: add comment about mapbox tokens (#31162)
* add to readme
old-commit-hash: 410db2cd9fafdf17700179fe14999775551edc78
2024-01-25 12:45:43 -08:00
Justin Newberry
831826d3e5 Simulator: fix metadrive (#31104)
fix metadrive
old-commit-hash: 81516216b154bbf8c713aa6b4b538d3a2e0ae0b5
2024-01-21 17:34:26 -08:00
Adeeb Shihadeh
96e9a7d3ce CI: speedup unit test job (#30995)
* start

* mv to buildjet

* fix
old-commit-hash: e17e66180c3a9432e6d303ca36ff0e4af763dace
2024-01-13 21:16:35 -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
Hoang Bui
c17fc021e9 Enable variable pass between test and metadrive processes (#30961)
pass started between processes
old-commit-hash: 1da08460cba9f3d67b7b84249ccd8ee9bd282bf7
2024-01-10 18:13:21 -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
c3551ea4ec Simulator: fix keyboard ctrl messing with pytest (#30827)
fix
old-commit-hash: a6b17fb1f6063835f6e0065d9bf670fbf069de48
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: 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
Justin Newberry
ba865f4580 Simulator: fix safety param (#30738)
fix param
old-commit-hash: 977dd033c4b2003c06978eed391e744ed06ea8f9
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: 43e1409fd2fa4a92350a54434602b71b1874fd60
2023-12-12 14:09:07 -08:00
Justin Newberry
fb84f6bed9 Simulator: --simulator is no longer an argument (#30700)
these are also gone
old-commit-hash: be33d29d7a437201386638570fbda9e085a9910c
2023-12-12 09:45:34 -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
8c21642780 simulator: set valid flags (#30656)
sim set valid
old-commit-hash: bb9dda976405d62ceb9e366011dbf57c665bfc42
2023-12-08 16:31:30 -08:00
Adeeb Shihadeh
f38648f84b rename carEvents -> onroadEvents (#30577)
* rename carEvents -> onroadEvents

* bump cereal

* bump cereal
old-commit-hash: b97e5b0e03a5e22ef0ae6d6f5c2523592ee25540
2023-12-01 22:48:29 -08:00
Kacper Rączy
9cd71f897a locationd: remove models unused in openpilot (#30481)
* Remove filters used exclusively by xx

* Update SConstruct

* Remove from release

* Accomodate rednose build changes

* Update rednose ref

* rednose/helpers in rpath

* Add rednose_filters to files_common

* Change rednose_root

* Copy rednose site_scons to docker images

* Remove rednose from rpath

* Bump rednose

* Bump rednose

* Bump rednose
old-commit-hash: f65e6bc30e7a3cce8b073f9ae0155facfe6c7646
2023-11-22 13:25:29 -08:00
Logan Lasiter
4f1ed42285 adding --local-partial-types mypy opt (#30491)
old-commit-hash: 5b2bcf6bf220f88e11978e04a77226127b520efb
2023-11-18 22:47:11 -08:00
Harald Schäfer
9bf8ee6c86 Rm more laika references (#30451)
Rm more laikad references
old-commit-hash: 95c6d5140aee76e6fd28990b0b58e1a3dcc5ee62
2023-11-13 16:52:57 -08:00
YassineYousfi
d18f185115 modeld: parsing and publishing in python (#30273)
* WIP try modeld all in python

* fix plan

* add lane lines stds

* fix lane lines prob

* add lead prob

* add meta

* simplify plan parsing

* add hard brake pred

* add confidence

* fix desire state and desire pred

* check this file for now

* rm prints

* rm debug

* add todos

* add plan_t_idxs

* same as cpp

* removed cython

* add wfd width - rm cpp code

* add new files rm old files

* get metadata at compile time

* forgot this file

* now uses more CPU

* not used

* update readme

* lint

* copy this too

* simplify disengage probs

* update model replay ref commit

* update again

* confidence: remove if statemens

* use publish_state.enqueue

* Revert "use publish_state.enqueue"

This reverts commit d8807c8348338a1f773a8de00fd796abb8181404.

* confidence: better shape defs

* use ModelConstants class

* fix confidence

* Parser

* slightly more power too

* no inline ifs :(

* confidence: just use if statements
old-commit-hash: cad17b125595c4654bfd8299b041b94ccb3faf73
2023-10-19 14:23:51 -07:00
Justin Newberry
fa245bfab0 Simulator: set params enabled (#30195)
set params enabled
old-commit-hash: 2884fd6e3d86815a6616daf0fa7fb44aefaf1972
2023-10-05 22:19:38 -07: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
aac705cedb Simulator: metadrive is the default (#30133)
only docs and default
old-commit-hash: 78469b7ef64bff91a67c08e1105f2e0a9770e227
2023-10-02 14:44:40 -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
dc0babfae4 Simulator: update documentation for metadrive (#30002)
* update sim docs

* update docs
old-commit-hash: 84609f365ba56f6d835fe04a8ea11f116892b5ec
2023-09-29 12:44:12 -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