Commit Graph

62 Commits

Author SHA1 Message Date
ChoMinSung
7aed8355db start_openpilot_docker.sh: pass in /dev/input for joystick support (#20563)
old-commit-hash: 780654cb3b3d9bce4ff4f4cfeb727d58cc427c91
2021-04-06 09:55:18 +02:00
Willem Melching
d0cd4d6de9 sim/build_container.sh: fix container name
old-commit-hash: c56396800351d09303cfa0b34442962fb7830faf
2021-03-23 13:20:59 +01:00
ChoMinSung
a5727d14cb start_openpilot_docker.sh: fix docker container name (#20444)
old-commit-hash: 34342b21a9b8524f21a9f8e23d0bd1f5364132cb
2021-03-23 13:20:11 +01:00
iejMac
8aa491994f update simulator README
old-commit-hash: 1830a87d9a39dee0f92dc5d2922513ab3d6e6d61
2021-03-17 00:42:32 -07:00
iejMac
10844d3b57 mount openpilot in simulator docker image (#20379)
* mount parameter

* works

* fixes
old-commit-hash: dc1506e3821fc372c267279e879b807757a2a28b
2021-03-16 22:23:38 -07:00
wolterhv
dfb437648e Specify comma containers come from ghcr.io in docker pull commands. (#20342)
old-commit-hash: 5463469f71e7861ccfbbd4d09b8e4ae56b8d3e45
2021-03-14 12:59:05 -07:00
iejMac
9f86db04ea Minimize sim docker image size (#20324)
old-commit-hash: 1e5b04ba2fd4642de2730041355714de6f497ed5
2021-03-11 19:04:29 -08:00
iejMac
7780426434 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>
old-commit-hash: c4031750f366905371565e3f9c80033534040647
2021-03-11 15:28:37 -08:00
iejMac
9c3c7b2f7d tuning simulator parameters (#20304)
* regular and low quality

* low_quality instead of quality

* fix
old-commit-hash: baf07191d258d86b324b85cb5641cddc1d2b1ad7
2021-03-10 21:57:24 -08:00
iejMac
efdd0e213a optimizing simulator performance (#20295)
* 20 hz

* weird blank screen on Low quality

* Epic quality
old-commit-hash: ea5fec76368617ec79344b1606a26c70af7e63a5
2021-03-09 23:48:46 -08:00
iejMac
e8326f2555 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
old-commit-hash: 072cdcad6bedcf54d94fa8c73d5e6809b8469a3b
2021-03-09 19:52:43 -08:00
Adeeb Shihadeh
aebfd97edd small carla docker fixes
old-commit-hash: 1f3278461a3d93d247c9a5854434e973c9eb8b70
2021-03-08 20:12:34 -08:00
Willem Melching
2e6473611d bridge.py: don't clear params
old-commit-hash: b2b207917eb8fe47342ee2cc4a45e9cdfca8a837
2021-03-08 15:53:18 +01:00
Willem Melching
e58f651070 start_openpilot_docker.sh: pull image
old-commit-hash: bedfca4fc9e0b89f46e0e27c3fcd2501ee050855
2021-03-08 15:42:24 +01:00
iejMac
afc0597686 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>
old-commit-hash: 968ed10200913d81833e87a738cd780089eb0eaa
2021-03-07 23:02:57 -08:00
Willem Melching
c0098cec09 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>
old-commit-hash: 5a3b51130649356b14b24e3c82e014b3a0be95a8
2021-03-05 11:03:23 +01:00
Adeeb Shihadeh
05eb44115e 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
old-commit-hash: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh
af95c26b26 remove gpsd (#20027)
old-commit-hash: fe7f3f0ec6b66e42b26451e180e3cde241e749bb
2021-02-10 16:39:39 -08:00
Willem Melching
c8bcf66cd5 Remove dockerhub references from CI (#20038)
* cache from base image

* specify github repo
old-commit-hash: e9c4a75a5c430ac6968808f103145cd0bd98a17a
2021-02-08 11:53:47 +01:00
Adeeb Shihadeh
966945880b Cereal cleanup (#20003)
* start cleanup

* fan speed

* cleanup dm

* fix cereal

* hwType -> pandaType

* update refs

* update refs

* bump cereal

* freeSpacePercent

* cereal master
old-commit-hash: 000bd226aa9902da01e6010bf26762fca2c20df0
2021-02-03 19:57:30 -08:00
Marcos S
059bddf7fc 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>
old-commit-hash: c03a95f7f92ab3eda7fe3b3db9776062aae0cbac
2021-01-18 17:16:32 -08:00
Adeeb Shihadeh
d4bf764d99 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>
old-commit-hash: cc1bca542d8a12acc381fc3d284d37b57b12c6ee
2020-11-18 13:10:37 -08:00
Ryan Branch
5cc1ee584a Update Simulator-Related READMEs with links to /wiki/CARLA (#2557)
old-commit-hash: d53325109325399a5794a4916a1ec935a85d3b68
2020-11-15 12:13:12 -08:00
Logan Lasiter
9f2d368340 update panda in sim (#2528)
old-commit-hash: ed34ffb1ba2091a2d8428d196b3c030f1ce8c349
2020-11-11 20:49:54 -08:00
Adeeb Shihadeh
0f2dfbfc52 trim trailing whitespace
old-commit-hash: 818bd8a591193b891cee44726203de327c5dd7fb
2020-11-05 14:11:41 -08:00
Willem Melching
05a758d70e build sim container with available cores
old-commit-hash: e2fa4cc212700bf53d1c79813e2351792e1effb0
2020-10-12 15:13:13 +02:00
Willem Melching
af97e71063 Try only extracting python folder (#2321)
old-commit-hash: f258366e0c276bec0818286f5aeca1397eb51621
2020-10-12 13:37:01 +02:00
Tom Dörr
370ba02e6c Add Flags to Control Simulator (#2246)
* Add flags

* Update readme
old-commit-hash: c13c6ef76b1b3bc9249ba08818f6afef0ee37076
2020-09-29 14:00:03 -07:00
Tom Dörr
260ff8cd46 Name openpilot docker container (#2239)
old-commit-hash: 459aa1123d0bd7d6715951c4f8007c34ae83ac1a
2020-09-28 14:44:03 -07:00
Tom Dörr
0768cf8be5 Enable Ctrl-C for Carla Server (#2240)
old-commit-hash: e6eedbe70453c72c695663411b41aca437493202
2020-09-28 13:41:37 -07:00
Adeeb Shihadeh
556c862586 fix simulator CI (#2159)
* pull image for cache

* typo

* cleanup dockerfile

* typo

* add pr trigger

* colon?
old-commit-hash: 4cbf965165bab44dcf819aaafbd2d99c89994c97
2020-09-12 14:31:20 -07:00
grekiki
41142635d2 Update README.md
old-commit-hash: 596ab39e0336249c7f75641a530b02c6a65c3e0c
2020-09-11 17:42:31 +02:00
grekiki
dd8fe84a95 Update README.md
old-commit-hash: 5fad5779c92f3a3730cc122f8d596159dd07a273
2020-09-11 17:42:12 +02:00
Vivek Aithal
db0a4ef2dc 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>
old-commit-hash: c5dfbe7a72c6f31a0aa3a32b6df3f81409b40faf
2020-09-10 12:14:49 +02:00
Adeeb Shihadeh
214c6f7e99 Scripts for containerized CARLA (#1987)
* run carla in container

* launch script

* fix launch script

* update carla
old-commit-hash: 6d645b4ce9445e7aa9ef95b3c453eb811e7ca015
2020-08-06 13:26:25 -07:00
Adeeb Shihadeh
a93f0b069a fix counter mismatch in sim
old-commit-hash: 20162f7a4a1d1054e816a67735b3a2cebf5498b9
2020-08-06 13:23:20 -07:00
Johannes Schmitz
b3f972b1b7 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.
old-commit-hash: 2a9b5b395c0efc583b925632d122ba5ad9aa745b
2020-06-17 17:53:17 -07:00
Willem Melching
94893781ed Sim hw type is grey panda now
old-commit-hash: 6810333075694c9c72d3c689f05462f6e6565e88
2020-06-12 10:57:30 -07:00
Adeeb
d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4f7c7ddaa742d9797b0d38646fdb268
2020-06-03 12:54:49 -07:00
Willem Melching
a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72fb94397a1edf814fa66044c8d92acbf
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh
68a3061c9d enable E261 in flake8: two spaces before inline comment
old-commit-hash: 27754a277c36b82ef4040e536cc918ba8ad77bec
2020-05-31 14:07:29 -07:00
Adeeb Shihadeh
be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e727c70065fdbe7499ec9e009dfd282
2020-05-31 12:49:11 -07:00
Adeeb
5e857427ba Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
old-commit-hash: d9bf9f0a4036f55411f6dfbb438990a5eb7f4930
2020-05-30 20:14:58 -07:00
Willem Melching
2ac27def5a Running pre-commit in CI (#1590)
* Running pre-commit in CI

* fix dockerfile syntax

* dont run on submodule repo folders

* Fix some import errors in ci

* more stuff

* That should be the last one
old-commit-hash: ba2ac1207a554d277e01af5b9514de4500d4f66a
2020-05-28 15:40:48 -07:00
Willem Melching
2b60ee9531 Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
old-commit-hash: 3d08dcc3b27936cb14c0eae63605be9a6c077380
2020-05-28 15:05:04 -07:00
Willem Melching
12a306021d flake8 in pre-commit(#1583)
old-commit-hash: 29aaa44740b5dae3c1cc0c273c72c7eb53135e5e
2020-05-27 20:33:05 -07:00
Willem Melching
c0866d9edb pre-commit pylint (#1580)
* "The commit-hook project sounds interesting though. I would definitely merge something that runs flake8 and pylint on the modified files!"
-  pd0wm, https://github.com/commaai/openpilot/pull/1575#issuecomment-634974344

* add pylint to pre-commit and make everything pass

* Remove uncommented stuff

Co-authored-by: J <user@4800.lan>
old-commit-hash: bd0643424357864287ae0485da03f66df85e1fb1
2020-05-27 20:00:14 -07:00
Adeeb Shihadeh
bd980f6048 delete unused lines
old-commit-hash: 10ae22a19247042b825f1bcac740f70f58b4e197
2020-05-10 11:25:42 -07:00
Adeeb
64b69bda50 LGTM fixes (#1480)
old-commit-hash: 008700a6b39c3fefe1233fca9adf85cb3413b5b8
2020-05-09 16:40:43 -07:00
George Hotz
6fbcde48e5 Using lgtm.com and fixing found alerts (#1452)
* lgtm in readme, and mac nui fixes

* call super inits in radars

* unused imports, dup lines

* more radars, more unused imports

* pass CP into RadarInterfaceBase

* more fixups

* unused imports

* delete unused lines

* ugh, new unused import

Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: 1295cfe06cd80a2c2f40e0af97697ee818037f08
2020-05-02 12:07:34 -07:00