* Fix Openpilot in Carla isn't accelerating
The scalars of the timestamp are different in real-world and simulation,
which will cause an infinite loop in selfdrive/modeld/modeld.cc.
* Set eof based on the frame ID
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* remove global
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: db93275d87
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER
* little more
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 57b6fdc17a
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
old-commit-hash: 332f568a82
* CARLA: send YUV and RGB over visionipc
* CARLA: send YUV and RGB over visionipc-fix pipfile
* CARLA: send YUV and RGB over visionipc-Camerad class
* relock pipfile
* small bridge cleanup
* use tici camera resolution
* update vof
* HUD_SETTING has no counter
* no loggerd
Co-authored-by: jwolffe <wolffja@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: a58d272ae4
* retune civic
* seems smooth
* back to normal
* new ref
* fix conflict
* runs
* rm
* accel scale is 4
* toyota should be good
* more cleanup
* fixup
* better naming
* update ref
* deprecated
* sending brake when not enable causes a fault
* rm gas and brake
* unused
* update ref
* acura logic is no more
* wrong before
* revert tuning cleanup
* adress comments
* update ref
* already on master
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1ac89f14aa
* 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
old-commit-hash: 77321dbac4
* 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>
old-commit-hash: fc4f27d20a
* 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: 072cdcad6b
* 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: c03a95f7f9
* 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: c5dfbe7a72
* "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: bd06434243
* 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: 1295cfe06c
* cleanup simulator files
* minor updates
* update readme
* keras runner builds
* hmm, still doesn't work
* keras runner works
* should work with python3 keras mod
* touchups
old-commit-hash: c50c718293
* use the openpilot/persist directory on PC
* manager runs on mac
* sim runs w/o carla
* fix params location in test
* that rmtree can fail and it's okay
* refactor params clear functionality
* set PARAMS_PATH
old-commit-hash: c42e2ecc50