* 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
* 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>
* simulator: support running wide camera only
* proper frame id
* use param name that makes more sense
* do some cleanup
* Update tools/sim/bridge.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* Change low_quality argument and fix closing carla bridge
* Some fixes
* Change carla process in test
* Change fov to 120, higher doesn't look good
* Update readme and remove redundant test
* update
* Add folder description
* squash #24009
* Fix from other pr
Add low-quality arg
* Update tools/sim/test/test_carla_integration.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Updates for comments. Not finished yet
* commit
* fix arguments
* Final changes for comments
* Final fixes
* increase carla client timeout to 10
* make test executable
* actually wait for controlsd to send messages
* Error proof test. Starting up carla at each test and closing down using docker (tried many things).
* commit test carla
* Removed some time.sleeps
Add some more retries for bridge.
* Stop while loop on shutdown
* Increase teardown waiting time
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Add c3 camera flag to bridge.py
* Set c3_cameras to default
* add runtime error message
* Remove c2 arg
* Update to 163 fov to not see through car
* update comment
* Update tools/sim/bridge.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* Revert camera.py changes
* Remove focal_length
* cleanup
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* 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>
* 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>
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>
* 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>
* 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>
* 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
* 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>
* 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>
* 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>