Commit Graph

71 Commits

Author SHA1 Message Date
HaraldSchafer
6838e1c82c Refactor lateral lag compensation (#21334)
* add T_IDXS

* refactor

* fix test

* unused

* typo

* needs casting

* Update selfdrive/controls/lib/drive_helpers.py

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

* deprecate field

* regen all

* new segs

* add todo

* split back

* clean

* bad names

* do in controls

* add arg

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-30 14:19:39 -07:00
orphen
325cabd4da fix: sim: gracefully shutdown the bridge (#21413) 2021-06-29 13:45:34 -07:00
HaraldSchafer
234971203b Simplify longitudinal tests (#21337)
* first pass

* passes!

* little more cleanup

* little more

* fix sim

* remove more plot stuff

* fix crash check

* fcw

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-24 21:03:18 -07:00
Alfonso Hernandez
22b632f407 Simulator: Complete GPS message from Carala State Values (#21357) 2021-06-21 13:52:46 +02:00
siggie0815
c798c5f027 CARLA: save calibration params as capnp (#21144) 2021-06-04 16:05:05 -07:00
Josh Smith
77321dbac4 Add type hints, small cleanups (#21080)
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl

* unpack more efficiently

* minor improvements

* agnos.py match spec better

* manual_ctrl test missing queue arg

* fix incorrect type annotation

* queues are generic

* varname reuse resulting in incorrect type inference

* bytes().hex() rather than bytes.hex(bytes())

* a bit of type hinting stuff
2021-06-03 12:21:04 +02:00
Cameron Reikes
fc4f27d20a sim: get GPS data from CARLA (#20717)
* Send simulated carla GPS to OP

* Use ublox enum from cereal

* Add more fields to carla gnss packet

* use math.degrees

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-05-18 19:52:09 -07:00
Cameron Reikes
12ce822252 Set standstill bit in sim (#20921) 2021-05-15 21:09:17 -07:00
siggie0815
4b7ea0a032 sim: mount working dir to the same dir in the container (#20908) 2021-05-14 20:00:13 -07:00
ChoMinSung
780654cb3b start_openpilot_docker.sh: pass in /dev/input for joystick support (#20563) 2021-04-06 09:55:18 +02:00
Willem Melching
c563968003 sim/build_container.sh: fix container name 2021-03-23 13:20:59 +01:00
ChoMinSung
34342b21a9 start_openpilot_docker.sh: fix docker container name (#20444) 2021-03-23 13:20:11 +01:00
iejMac
1830a87d9a update simulator README 2021-03-17 00:42:32 -07:00
iejMac
dc1506e382 mount openpilot in simulator docker image (#20379)
* mount parameter

* works

* fixes
2021-03-16 22:23:38 -07:00
wolterhv
5463469f71 Specify comma containers come from ghcr.io in docker pull commands. (#20342) 2021-03-14 12:59:05 -07:00
iejMac
1e5b04ba2f Minimize sim docker image size (#20324) 2021-03-11 19:04:29 -08:00
iejMac
c4031750f3 improving tools readme (#20305)
* rough draft

* plotjuggler and carla description

* testing someting

* this is cool

* very short replay and debug desc

* small change

* small change 2

* better word

* low quality mode

* better word

* fixes

* changes

* minor fixes

* ubuntu_setup fix + README changes

* Update tools/README.md

* Update README.md

* Update README.md

* Update README.md

* changes

* Update tools/sim/README.md

* final changes

* final change

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-11 15:28:37 -08:00
iejMac
baf07191d2 tuning simulator parameters (#20304)
* regular and low quality

* low_quality instead of quality

* fix
2021-03-10 21:57:24 -08:00
iejMac
ea5fec7636 optimizing simulator performance (#20295)
* 20 hz

* weird blank screen on Low quality

* Epic quality
2021-03-09 23:48:46 -08:00
iejMac
072cdcad6b minor bug fixes in sim (#20286)
* order doensn't matter

* order doensn't matter

* minor fixes

* minor fixes

* not blocking ctrl-c

* removing weather params

* removing type ignore
2021-03-09 19:52:43 -08:00
Adeeb Shihadeh
1f3278461a small carla docker fixes 2021-03-08 20:12:34 -08:00
Willem Melching
b2b207917e bridge.py: don't clear params 2021-03-08 15:53:18 +01:00
Willem Melching
bedfca4fc9 start_openpilot_docker.sh: pull image 2021-03-08 15:42:24 +01:00
iejMac
968ed10200 Fix simulator docker: CPU only for now (#20227)
* initial commit

* CPU working in dokcer

* Update selfdrive/manager.py

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

* Update selfdrive/manager.py

* fixes

* fixing env var

* fixes

* building and running in docker

* camerad fix

* camerad fix

* this ACTUALLY works

* removing unused libraries

* updating to CARLA 0.9.11

* removing useless flags

* small changes

* forgot this

* sudo not needed for xhost

* final changes

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-07 23:02:57 -08:00
Willem Melching
5a3b511306 Manager cleanup (#20231)
* move manager in folder

* inital refactor

* call start

* small cleanup

* add comments

* use self.signal()

* order shouldnt matter

* newlines

* add helpers

* newlines

* add process config

* split out build part of manager

* this should fix most tests

* no sensord on pc

* dont start athena

* remove comment

* fix old athena test

* fix inject model

* fix test car models

* should be not none

* fix helpers exitcode

* ignore manage_athenad

* Use time.monotonic()

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

* combine init, remove spinner

* move manager test

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-03-05 11:03:23 +01:00
Adeeb Shihadeh
312b681a46 cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* panda state

* camera stuff

* start deg

* most is building

* builds

* planner + controls run

* fix up paramsd

* cleanup

* process replay passes

* fix webcam build

* camerad

* no more frame

* thermald

* ui

* paramsd

* camera replay

* fix long tests

* fix camerad tests

* maxSteeringAngle

* bump cereal

* more frame

* cereal master
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh
fe7f3f0ec6 remove gpsd (#20027) 2021-02-10 16:39:39 -08:00
Willem Melching
e9c4a75a5c Remove dockerhub references from CI (#20038)
* cache from base image

* specify github repo
2021-02-08 11:53:47 +01:00
Adeeb Shihadeh
000bd226aa Cereal cleanup (#20003)
* start cleanup

* fan speed

* cleanup dm

* fix cereal

* hwType -> pandaType

* update refs

* update refs

* bump cereal

* freeSpacePercent

* cereal master
2021-02-03 19:57:30 -08:00
Marcos S
c03a95f7f9 Carla fixes (#19824)
* use carla provided frame_number

* fix carla comm issues error

* add minimal W-A-S-D keyboard controls

* fix window from carla docker not showing

* carla 0.9.7 uses `frame`, not `frame_number`

* set safetyModel on health for simulator

* safetyModel check now works with simulator

* ignore ubloxRaw and frontFrame when running sim

* Update selfdrive/controls/controlsd.py

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

* added WINDOW flag for optional show carla window

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-18 17:16:32 -08:00
Adeeb Shihadeh
cc1bca542d update simulator to ubuntu 20.04 (#2463)
* fix sim build in 20.04

* run ci

* fix docker build

* restore ci cofnig

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-11-18 13:10:37 -08:00
Ryan Branch
d533251093 Update Simulator-Related READMEs with links to /wiki/CARLA (#2557) 2020-11-15 12:13:12 -08:00
Logan Lasiter
ed34ffb1ba update panda in sim (#2528) 2020-11-11 20:49:54 -08:00
Adeeb Shihadeh
818bd8a591 trim trailing whitespace 2020-11-05 14:11:41 -08:00
Willem Melching
e2fa4cc212 build sim container with available cores 2020-10-12 15:13:13 +02:00
Willem Melching
f258366e0c Try only extracting python folder (#2321) 2020-10-12 13:37:01 +02:00
Tom Dörr
c13c6ef76b Add Flags to Control Simulator (#2246)
* Add flags

* Update readme
2020-09-29 14:00:03 -07:00
Tom Dörr
459aa1123d Name openpilot docker container (#2239) 2020-09-28 14:44:03 -07:00
Tom Dörr
e6eedbe704 Enable Ctrl-C for Carla Server (#2240) 2020-09-28 13:41:37 -07:00
Adeeb Shihadeh
4cbf965165 fix simulator CI (#2159)
* pull image for cache

* typo

* cleanup dockerfile

* typo

* add pr trigger

* colon?
2020-09-12 14:31:20 -07:00
grekiki
596ab39e03 Update README.md 2020-09-11 17:42:31 +02:00
grekiki
5fad5779c9 Update README.md 2020-09-11 17:42:12 +02:00
Vivek Aithal
c5dfbe7a72 dockerize carla + openpilot (#2011)
* dockerize carla + openpilot

* separate dockerfile

* bring back CI dockerfile

* cleanup bridge

* add op docker build and start script

* build container in CI

* fix camerad hack

* remove most magic numbers from bridge.py

* openpilot-sim docker build and run scripts

* fix dmonitoring hacks

* revert controlsd hacks

* clean up build scripts

* singular

* fix path

* fix image name

* modify sim readme

* sim readme and start script changes

* dockerfile with working opengl

* working opengl + passing panda build_st in docker

* fix bug in sim docker file

* bugfix sim docker file

* bugfix all op-sim docker issues

* modify readme + run script

* IT DRIVES

* clean this up

* more cleanup

* cleanup docker stuff

* more cleanup

* start with openpilot-base

* install carla python package

* Script is not in lib

* chmod

* everything should be running in docker now, the code may not be nice though

* works locally...

* rhdChecked is deprecated

* Checkout using git lfs when building sim container

* try to pass the tests

* pull latest docker

* gps should not throw an error on openpilot launch in bridge.py

* fixed a coding style error

* Only start ubloxd in car

* fixed more style problems

* revert typo

* Use enviromental variable to prevent errors in a simulator

* Remove unused import

* Attempt to fix missing enviromental variable

* fix typo

* less work for users, auto tmux engagement

* less work for users, auto tmux engagement

* fix check for nvidia

* clean up nvidia check

* remove typo, shorted dockerfile

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Bruce Wayne <batman@workstation-eu-gregor.eu.local>
Co-authored-by: Gregor Kikelj <gregor1234567890@gmail.com>
2020-09-10 12:14:49 +02:00
Adeeb Shihadeh
6d645b4ce9 Scripts for containerized CARLA (#1987)
* run carla in container

* launch script

* fix launch script

* update carla
2020-08-06 13:26:25 -07:00
Adeeb Shihadeh
20162f7a4a fix counter mismatch in sim 2020-08-06 13:23:20 -07:00
Johannes Schmitz
2a9b5b395c Clarify shortcut usage in Carla simulation mode (#1724)
The keys to control openpilot have to be pressed with focus on the
terminal running the Carla bridge.
Also improve table formatting.
2020-06-17 17:53:17 -07:00
Willem Melching
6810333075 Sim hw type is grey panda now 2020-06-12 10:57:30 -07:00
Adeeb
ab83e48ec4 Add pre-commit hooks (#1629) 2020-06-03 12:54:49 -07:00
Willem Melching
843a64c72f Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh
27754a277c enable E261 in flake8: two spaces before inline comment 2020-05-31 14:07:29 -07:00