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 d8807c8348
.
* 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: cad17b1255
2 years ago
Justin Newberry
fa245bfab0
Simulator: set params enabled ( #30195 )
...
set params enabled
old-commit-hash: 2884fd6e3d
2 years ago
Justin Newberry
b8df8f21e7
Metadrive: fix slow acceleration and enable past 50 mph ( #30171 )
...
metadrive tuning
old-commit-hash: f4b2b70791
2 years ago
Justin Newberry
dddf3f5215
Metadrive: no preloading models ( #30170 )
...
no preloading
old-commit-hash: 56b16e77a4
2 years ago
Justin Newberry
4ec10b3347
Metadrive: fix reset ( #30142 )
...
* fix reset
* 2 seconds
old-commit-hash: 4d7caff0c8
2 years ago
Justin Newberry
07c27071a4
remove carla dependency ( #30139 )
...
* only docs and default
* remove carla dependency
* remove carla dependency
old-commit-hash: 3c55f76790
2 years ago
Justin Newberry
aac705cedb
Simulator: metadrive is the default ( #30133 )
...
only docs and default
old-commit-hash: 78469b7ef6
2 years ago
Justin Newberry
db839e887d
Simulator: blinkers and lane changes ( #30107 )
...
blinkers and lane changes
old-commit-hash: ba90bdf7d9
2 years ago
Justin Newberry
dc0babfae4
Simulator: update documentation for metadrive ( #30002 )
...
* update sim docs
* update docs
old-commit-hash: 84609f365b
2 years ago
Justin Newberry
3cd9856fcc
Simulator: wait for engageable ( #30105 )
...
wait for engageable
old-commit-hash: 5c2cbec06e
2 years ago
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
2 years ago
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
2 years ago
Justin Newberry
078efeb3c2
Simulation: engage on startup, print help message ( #30044 )
...
old-commit-hash: 2792e5f2db
2 years ago
Justin Newberry
8fd432743a
Simulator: Looping metadrive world ( #30068 )
...
old-commit-hash: 09325b01ff
2 years ago
Justin Newberry
2a985c8e8f
Simulator: cleanup old common stuff ( #30069 )
...
cleanup
old-commit-hash: f18d66fa3e
2 years ago
Justin Newberry
00302ba898
Simulator: fix metadrive tick frequency ( #30043 )
...
sim rate fix
old-commit-hash: 98451611be
2 years ago
Justin Newberry
48e2871d42
Simulator: passthrough BLOCK on launch script ( #30040 )
...
sim block passthrough
old-commit-hash: 51674f61c1
2 years ago
Justin Newberry
a6c4108045
Simulator: improve carla experience ( #29996 )
...
* wip
* carla improvments
* reset that
old-commit-hash: 2132e2358d
2 years ago
Justin Newberry
0673347b3e
Simulator: add reset hotkey ( #29995 )
...
add sim reset
old-commit-hash: 0857f4bb85
2 years ago
Justin Newberry
62d61e9b55
Simulator: fix port issues in devcontainer ( #29977 )
...
* fix sim devcontainer
* use host.docker.internal instead
* devcontainer supports jsonc
old-commit-hash: 1f8ceb4ca1
2 years ago
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
2 years ago
Justin Newberry
6d0672632b
Simulator: fix controlsd mismatch ( #29976 )
...
fix controls mismatch
old-commit-hash: bee40de703
2 years ago
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
2 years ago
Justin Newberry
e09216088e
Simulator: launch simulator from any directory ( #29910 )
...
launch sim from any directory
old-commit-hash: a95c896b5f
2 years ago
Justin Newberry
bd78ec0bce
Sim: fix openpilot directory ( #29754 )
...
fix simulator
old-commit-hash: a774809fdb
2 years ago
Justin Newberry
302a450a14
bump submodules ( #29705 )
...
* bump submodules
* bump rednose
* fix dockerfiles
old-commit-hash: 7a4eaeaf9f
2 years ago
Justin Newberry
ffddeace6e
CI: fix sim/docs scons cache invalidation ( #29639 )
...
* fix sim and docs images
* fix that
* that's a weird issue
* exists should work fine
* as little diff as possible
old-commit-hash: 5716dfc9b5
2 years ago
Justin Newberry
643a13f27e
CI: use local scons cache instead of building a separate image ( #29634 )
...
* use local
* added ci_sim
* revert scons
* dont need these anymore
* same for sim
* fix dockerfiles
old-commit-hash: c46965fc27
2 years ago
Justin Newberry
c4f322ce2d
Linter: remove pylint ( #29611 )
...
remove pylint
old-commit-hash: 1ee6ed4b16
2 years ago
Justin Newberry
7205b92bb6
CI: use scons cache mount for building simulator and docs ( #29436 )
...
* build docker image with scons cache
* use setup
* scons cache
* added the dockerfile
* add the shell
* docs use cache
* dont pull lfs for docs
* simulator too
* dont pull the cache image
* fix inputs
* inputs
* booleans aren't supported
* bool not supported
* bool isnt supported
* fix
* readonly cache
* fix sim cache too
* respect readonly
* gitignore and move to correct folder
* also copy old
* move to tools/ci
* move to selfdrive/test
* just make the cache writable, it's discarded anyway
* minimize diff in this pr
old-commit-hash: 197460e061
2 years ago
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 db5e13b991
.
* fix pm test
old-commit-hash: a9626f95b6
2 years ago
Shane Smiskol
a9611d13be
simulator: fix CANParser input args ( #29343 )
...
* we weren't testing?
* fix
old-commit-hash: 84fbf1c2e9
2 years ago
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
2 years ago
nathanoy
85ca41390d
Updated Carla to version 0.9.14 ( #29210 )
...
old-commit-hash: 3fca1b4f8d
2 years ago
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
2 years ago
Dean Lee
eddc84d104
automatically detect available camera streams ( #27640 )
...
* remove WideCameraOnly
* check in set_initial_state
* no block
* remove try block
* apply reviews
old-commit-hash: 4ae0378f63
2 years ago
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
2 years ago
grekiki
0393f8b99c
Carla simulator: set driver orientation ( #27363 )
...
old-commit-hash: 202eb06a05
2 years ago
Adeeb Shihadeh
b3e47c691b
move all third party stuff into third_party/ ( #26853 )
...
* mv fastcluster
* move msm_kgsl.h
* camerad include
* update path
* mv pyextra
* fix tici build
* add acados_template to release build
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cd8e03d53e
2 years ago
Hamid Ebadi
1ba96c78a8
carla sim: fix accelerometer sensor data ( #26794 )
...
old-commit-hash: 49ae806534
2 years ago
Adeeb Shihadeh
5f4cc55c2c
sim: disable micd ( #26653 )
...
old-commit-hash: 996a6c06d4
2 years ago
James
beadbb1b39
Fixed typo in CARLA README.md ( #26615 )
...
old-commit-hash: 67fb344146
2 years ago
Ricardo Nuno
9e033f6d7e
sim: add docker kill to openpilot docker ( #26310 )
...
add docker kill to openpilot docker
old-commit-hash: d1cf31bced
3 years ago
Rohit Bernard
bf27021719
sim: Converting RGB frames to NV12 format in OpenCL ( #26169 )
...
* convert carla rgb frames to nv12
* code cleanup
* move kernel
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9377448888
3 years ago
wjxjmj
dbd5cd3341
Add ip and port arguments to /tools/sim/bridge.py ( #26011 )
...
* Add ip and port arguments
* Add descriptions of ip and port arguments
* Update README.md
* Update README.md
* prefer host/port options
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
old-commit-hash: dbdb3a02a8
3 years ago
Adeeb Shihadeh
3e2f436d4c
auto-detect pigeon or quectel ( #25991 )
...
* auto-detect pigeon or quectel
* persistent
* fix sim
* fix process replay
* fix locationd unit tests
* fix that
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 01d05f66fe
3 years ago
Shane Smiskol
984134be0e
FPv2: fixed fingerprint overrides query result ( #25990 )
...
* query FW versions if fixed (override after)
* skip here
* also skip here
* and here
old-commit-hash: e7805eb5c5
3 years ago
Adeeb Shihadeh
1cb4cdab24
sim: fix sensor freq and timestamps ( #25937 )
...
* sim: fix sensor freq and timestamps
* 100hz
* fix that too
old-commit-hash: 5d33199905
3 years ago
Kurt Nistelberger
fb06d2769f
Sensor events splitup ( #25714 )
...
* PoC of reading sensors via interrupts instead of polling
* add Gyro and draft for magn
* add more functionality to gpio.cc
* change LSM gyro to interrupt
* resolve rebase conflict
* update BMX accel interrupt impl
* add interrupt collector thread to fetch in parallel
* change get_event interface to return true on successful read
* update BMX gyro interrupt impl
* update gpio.h/.cc according to comments
* address comments, rename Edgetype enum
* Edgetype to EdgeType
* update sensor interrupt interface
* add error handling, and read fd on trigger
* avoid sending empty messages
* fix build
* use gpiochip
* less diff
* gpiochip on both edges, but skip falling edge if rising edge is detected
* init last_ts with 0
* update sensord testcases
* update sensord testsweet
* test for pipeline
* readd with_process
* add null check
* move tests update to seperate PR
* sensord: improve test coverage (#25683 )
* update sensord-interrupt testsweet
* address review comments
* inc stddev threshold
* fix format string
* add version 0 check again
* relax strictness after c3 with bmx tests
* relax strictness after tests
Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
* address PR comments
* fix typo
* remove 4ms limit, and skip first 0.5sec of data
* revert disable_interuppt change to destructor
* fix and remove timing skip
* make gpiochip generic
* sensord port
* change from sensorEvents to separated events
* fix gyro usage
* add splitted sensor tests
* modify debug script sensor_data_to_hist.py
* refactor get_event interface to remove sensorEvent message type
* update locationd to non sensorEvent usage
* tmp commit
* fix replay
* fix accelerometer type
* fix sensor to hist debug script
* update sensord tests to split events
* remove rebase artifacts
* port test_sensord.py
* small clean up
* change cereal to sensorEvents-splitup branch
* upate sensorEvents in regen
* fix route generation for splitted sensor events
* regen cleanUp from sensorEvents change
* .
* remove light and temp from locationd
* add generic init delay per sensor
* .
* update routes
* move bmx gyro/accel to its own channel
* adopt sensor tests to bmx channel
* remove rebase artifacts
* fix sensord test
* handle bmx not present
* add bmx sockets to regen
* .
* .
* code cleanUp
* .
* address PR comments
* address PR comments
* address PR comments
* lsm clean up
* readd sensorEvents
* rever regen.py
* .
* update replay refs
* move channels
* fix artifact
* bump cereal
* update refs
* fix timing issue
Co-authored-by: Bruce Wayne <batman@workstation-eu-intern2.eu.local>
Co-authored-by: gast04 <kurt.nistelberger@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 29d3ed2ce6
3 years ago
Adeeb Shihadeh
35ff65121e
pre-commit: add codespell ( #25571 )
...
old-commit-hash: 6590fb2b93
3 years ago