Commit Graph

39 Commits

Author SHA1 Message Date
Justin Newberry 0a866b2618 Webcam: prepare to make camerad a PythonProcess (#31202)
* webcam

* support /dev/* syntax

* support strings
old-commit-hash: 75d3e5fb4e
2024-01-29 10:10:55 -08:00
Adeeb Shihadeh 972650f0eb remove dashcam branch (#31081)
* remove dashcam branch

* fix

* more cleanup

* remove param

* one more
old-commit-hash: 7cd9568423
2024-01-19 14:05:03 -08:00
Hoang Bui 87cadf7262 Python camerad for webcam (#30930)
* webcamd

* remove destroy windows

* block

* shebang execute

* executaleeeee

* executableeeeeee

* she bang for camerad.py

* listener

* no signal?

* good

* ruff fix

* delete listener

* recover sim

* remove assert

* refactor

* fix shell

* fix namedtuple

* little change

* to tuple

* cleanup

* update readme

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7fdd5c4a7d
2024-01-08 19:22:21 -08:00
Adeeb Shihadeh 8d11c3b742 Update Python packages and pre-commit hooks (#30597)
* Update Python packages and pre-commit hooks

* fix

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
old-commit-hash: 46f3fdc090
2024-01-05 15:17:49 -08:00
Adeeb Shihadeh f3dec8658c Revert "Simplify passive mode handling (#30593)"
old-commit-hash: 99d51bf02c
2023-12-04 15:05:05 -08:00
Adeeb Shihadeh 4be789d40a Simplify passive mode handling (#30593)
* simplify passive handling

* makes more sense
old-commit-hash: 5ccff25d88
2023-12-03 13:59:59 -08:00
Justin Newberry c4f322ce2d Linter: remove pylint (#29611)
remove pylint
old-commit-hash: 1ee6ed4b16
2023-08-24 16:30:54 -07:00
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
2023-08-20 20:49:55 -07:00
Cameron Clough 8a4a390d6f Fix OpenCL driver URL (#26650)
old-commit-hash: 3d2f6c1dc0
2022-11-30 21:45:44 -08:00
Adeeb Shihadeh 51c5932248 update webcam readme
old-commit-hash: 051e1e0a06
2022-08-25 17:00:02 -07:00
Adeeb Shihadeh d9d83b0225 Move camerad to system/ (#24836)
* mv camerad

* add hardware symlink

* fix unit tests
old-commit-hash: 6123ab3d1c
2022-06-19 14:43:49 -07:00
Cameron Clough 38e14ed47b Don't build OpenCV tests in webcam docker image (#24326)
Building opencv tests and apps are [on by default](https://docs.opencv.org/4.x/db/d05/tutorial_config_reference.html#tutorial_config_reference_general_tests),
but we don't need them.
old-commit-hash: 2d77a31cd5
2022-04-25 16:08:42 -07:00
Adeeb Shihadeh 1ea1b9072a smaller docker image (#23469)
* save 2gb

* not used

* more cleanup

* little more

* wget too big

* follow

* needed for sim
old-commit-hash: fa3055f280
2022-01-10 11:43:18 -08:00
Adeeb Shihadeh 8ec4fa1002 update to python 3.8.5 (#20217)
old-commit-hash: 2034a04750
2021-03-09 13:38:22 -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: 5a3b511306
2021-03-05 11:03:23 +01:00
Adeeb Shihadeh 0823abceff tools: cleanup + setup CI (#20104)
* cleanup tools

* setup tools CI

* loggerd doesn't support this anymore

* cleanup

* builds with openpilot now
old-commit-hash: d1b44bbb34
2021-02-17 20:37:01 -08:00
Willem Melching c8bcf66cd5 Remove dockerhub references from CI (#20038)
* cache from base image

* specify github repo
old-commit-hash: e9c4a75a5c
2021-02-08 11:53:47 +01:00
Adeeb Shihadeh 75b57c9ffe faster webcam CI (#19975)
* don't copy in openpilot

* need that

* try this

* reenable the condition
old-commit-hash: afa1e69bc1
2021-01-30 17:56:54 -08:00
Adeeb Shihadeh c64a8356fe move to github container registry + CI speedup (#19621)
old-commit-hash: 59d7c5e64a
2020-12-31 14:57:01 -08:00
grekiki 0b902a02c1 Scons builder for cython extensions (#2485)
* complie boardd without python

* not good, but don't want to lose the file, because it works

* clean a bit

* update dbc

* should build on CI

* not good, but don't want to lose the file, because it works

* clean a bit

* should build on CI

* remove unneeded path

* reorder paths

* reduce diff

* and now it works?!

* ... should work in CI

* add kj, 30% chance to fix macos

* pydebug

* new way to find path

* fix :)

* tested

* sanity check

* repl. MacOS flags

* hope it works

* need more logs

* need more logs2

* test if it works

* should work on CI

* correct python file

* should not work

* cleanup

* real cleanup

* more removals

* 50% of file

* transformations

* fixed a hardcoded variable

* more logs

* simpl.

* kalman

* all donw if it passes tests

* cleanup

* reduce code by 20 lines if this works

* fix bugs

* cleanup

* SharedLibrary

* cleanup

* ...

* remove unused

* CI fix maybe?

* add more valid path

* more logs

* ...:

* fix webcam CI

* remove WError flag

* deprecated is not an error

* more Wno things

* reduce diff, add Wno to env

* don't import nonexistent stuff

* SharedLibrary v2

* less custom env

* renaming, remove SharedLibs

* pack libs in envCython

* experiment

* better docker caching

* whitespace

* more docker caching

* improvement

* improvements

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9529764549
2020-11-11 21:14:51 +01:00
Adeeb Shihadeh f25cec394e grey panda is unsupported (#2458)
old-commit-hash: 47c21f10f5
2020-11-03 19:56:25 -08:00
Adeeb Shihadeh 2e5247056a ubuntu 16.04 -> 20.04 (#2378)
old-commit-hash: 719c5e3598
2020-10-29 16:51:09 -07:00
Adeeb Shihadeh fb935fa5f7 Build openpilot with webcam support in CI (#2070)
old-commit-hash: f4e18e0b74
2020-10-16 15:16:17 -07:00
Willem Melching 725c5e742f Modeld: loop over platforms to find CPU/GPU (#1710)
* Modeld: loop over platforms to find gpu

* Remove prints

* PC needs CPU

* Keep default for qcom

* Update error message
old-commit-hash: 4ca8283d73
2020-06-15 15:58:12 -07:00
Adeeb Shihadeh d7d8f3091b clean up webcam readme
old-commit-hash: c6bd187450
2020-06-06 21:21:25 -07:00
Adeeb d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4
2020-06-03 12:54:49 -07:00
Adeeb Shihadeh 68a3061c9d enable E261 in flake8: two spaces before inline comment
old-commit-hash: 27754a277c
2020-05-31 14:07:29 -07:00
Adeeb Shihadeh be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e
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: d9bf9f0a40
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: ba2ac1207a
2020-05-28 15:40:48 -07:00
xx979xx a3aeab5018 update OpenCL Driver 16.1 > 18.1 (#1524)
old-commit-hash: 2d89f3c6d9
2020-05-21 12:03:30 -07:00
Ewout ter Hoeven d302078e30 Pip: Move from tensorflow-gpu to tensorflow package (#1530)
* Pip: Move from tensorflow-gpu to tensorflow package

Since tensorflow 2.1 the regular tensorflow package contains GPU support and replaces the tensorflow-gpu package, which will be depreceated at some point.

* Readme: Update Tensorflow version

* Update Pipfile.lock

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 3f8afe593f
2020-05-20 13:17:54 -07:00
ZwX1616 b83968e399 update readme
old-commit-hash: 5644b2875d
2020-03-30 14:13:04 -07:00
Ewout ter Hoeven 60c147478c Docs/tools: Update Tensorflow to 2.1 in readme and build script (#1286)
Update to Tensorflow 2.1 in a few forgotten places after 65f5e31:
tools\ubuntu_setup.sh
tools\webcam\README.md
old-commit-hash: d8a414834d
2020-03-28 12:10:43 -07:00
ZwX1616 c9aeeb1ade update opencl driver link
old-commit-hash: 8042e9238c
2020-03-27 15:50:57 -07:00
ZwX1616 f1d3d46332 nicer format; make links clickable
old-commit-hash: b646ba9ca9
2020-03-27 12:42:05 -07:00
ZwX1616 f5bc4d79e7 cleanups
old-commit-hash: 4bcfe54efd
2020-03-27 11:44:06 -07:00
ZwX1616 326b3407ff add setup note
old-commit-hash: 0e059f5d4a
2020-03-27 11:44:06 -07:00
ZwX1616 a004735b19 add webcam to cameras (#1201)
old-commit-hash: a95e61edf4
2020-03-26 19:19:47 -07:00