Commit Graph

482 Commits

Author SHA1 Message Date
Willem Melching
7d5546452c ui.py: use YUV stream
old-commit-hash: 2bdb2cb40af1bd159e165f9f475a2dc79f9d3c42
2022-05-25 17:37:21 +02:00
Adeeb Shihadeh
e5f94df332 latency logger: improve plot style
old-commit-hash: 3d74b5429da5c0b2c4c61ee0e32222512274a8df
2022-05-23 20:57:14 -07:00
Adeeb Shihadeh
00f7f96308 little tools fix ups (#24629)
old-commit-hash: b8a32bbc461fea1f15ef7db8021f1aa8f85f7df7
2022-05-23 16:10:36 -07:00
Lukas Petersson
0bb766ea3a Latency logger: binary search for frame ID (#24586)
binary search for frame id
old-commit-hash: 8fbcc49ee3a4d87823c02c1240c4b90e0e82403f
2022-05-23 13:02:23 -07:00
Lukas Petersson
c74b2edc8d latency logger: update demo route (#24608)
* handle no segment

* dont handle no route
old-commit-hash: 522b67f16df9947fb9f4704a55806bac80a1f3d3
2022-05-23 12:48:11 -07:00
George Hotz
eea872ae98 compressed_vipc: use correct system timestamps
old-commit-hash: e4b7791044003663d354c1734d1744dbe69f36e6
2022-05-18 13:18:00 -07:00
George Hotz
d811962f7a add to compressed_vipc
old-commit-hash: bb5a05084063ddf5ab2a353c1ca48c3cc8566d74
2022-05-18 12:58:12 -07:00
Willem Melching
f957c16a7b make normal logreader more robust (#24577)
old-commit-hash: 194e5fdf1c9ba2e01e2ec7faa62432d2a3b1870b
2022-05-18 12:21:01 +02:00
ntegan1
0a3fde5334 Tools: allow using plotjuggler on local data (#24473)
local juggler
old-commit-hash: 07f7570840320aeb16803e9c93f1d8e648568dba
2022-05-17 19:50:23 +02:00
George Hotz
46d11a2583 compressed_vipc: print frame latency
old-commit-hash: fe867df102a393a7a73de07b61d434cec19b3a3c
2022-05-16 20:40:11 -07:00
George Hotz
126014765f compressed_vipc: set NV_LOW_LATENCY flag
old-commit-hash: 2a978e36ac0159fa78861e9075f2685fca5b63fe
2022-05-16 15:58:31 -07:00
Adeeb Shihadeh
39de4d80b4 move models to selfdrive/modeld/ (#24539)
* move models to selfdrive/modeld/

* two more refs
old-commit-hash: 319f3d1475f2f212b63f32dbace476f63b3caf14
2022-05-15 17:29:09 -07:00
Adeeb Shihadeh
29a516bed8 replay: cleanup unused RGB buffers (#24537)
* replay: cleanup unused RGB buffers

* update replay cam

* little more
old-commit-hash: ab75c53792718d32e51d34336be3fae568051d2b
2022-05-14 19:55:12 -07:00
Ross Fisher
bc986e10ff Fix gcc-arm-embedded for m1 mac (#24515)
* Fix gcc-arm-embedded for m1 mac

* put in /tmp

* update comment

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 01a237ef02cf989a3e2dc8a529d5a0338a09e123
2022-05-13 11:12:59 +02:00
Jason Young
a5b2304b06 Improved steering accuracy measurement script (#23583)
* move steering accuracy measurement script

* git rebase is utterly worthless

* fix header width
old-commit-hash: c007c7e68131ed7dc4220700fa1e889e526954f7
2022-05-12 15:09:37 +02:00
Dylan Herman
2dfba97175 add mypy check for return-any (#24379)
* add mypy check for return-any

* remove unused import

* typing

* remove unnecessary variable typing

* cleanup

* cleanup

* bump submodules

* small fixes

* only a problem on mac

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: d2eef1955c777ef6110c7a74d2a9ca9e4e1d958c
2022-05-12 14:59:00 +02:00
grekiki
7cd23af9b1 Mypy fixes for --check-untyped-defs (#24372)
more type fixes
old-commit-hash: 17e33978cdd9322918e9d5d388f7fa47aa30e9b7
2022-05-12 14:08:11 +02:00
Mark Murnane
2d3370a619 Add gamepad support for body (#24415)
This MR adds basic gamepad support to the joystick web client.
The mappings appear to be consistent between a few controllers I tried, so I think inverting both axes is the optimal mapping.
old-commit-hash: e84d073233404e3375fc3708c0da079c88c012e5
2022-05-12 13:40:05 +02:00
Adeeb Shihadeh
49cd879976 pj: add fan rpm to thermal layout
old-commit-hash: 4b063a02462f81e60e1fb7a2d7409639a6d00ba4
2022-05-10 19:51:22 -07:00
George Hotz
1f4628bad5 encoderd: make work on PC (#24483)
* don't use the codec in video_writer

* this produces broken videos for some reason

* bugfix

* refactor on the class

* works on device

* fix codec

* no codec enum

* fix pc

* move into dirs

* these includes also

* rename it ffmpegencoder

* add avcodec_close

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2008db47c208f6f0fd661cc45f215bb80aef38d0
2022-05-10 15:20:51 -07:00
Ross Fisher
a36e28f2a9 tools: add link to jungle repo (#24477)
old-commit-hash: 32e4dc3869bd83f1a978d4a6dfab0238285f31a6
2022-05-09 14:24:09 -07:00
George Hotz
69558824b7 update compressed vipc to function on packets
old-commit-hash: dded24662f9f5ca0634033f63fa4ed9fa842bd97
2022-05-09 13:44:09 -07:00
Shane Smiskol
cf0c8aac08 URLFile: raise exception if remote URL doesn't exist when using cache (#24432)
* URLFile returns empty bytes if using cache and remote file doesn't exist

* better exception

* assert on cached files
old-commit-hash: 6163dd5ca06efe05a7d4645f6b4127847ce133ac
2022-05-09 13:31:55 -07:00
ntegan1
d4d72ab938 Tools: allow uncompressed logs (#24471)
old-commit-hash: bf269bd883e77bf29e4d9a0a21ef0c4a9eb79c2c
2022-05-09 12:07:19 -07:00
Adeeb Shihadeh
0195ae1464 latency logger: better errors and minor cleanup
old-commit-hash: 930d0c01a90ba6a7b321516a276cc0e6e6862514
2022-05-04 14:16:27 -07:00
Lukas Petersson
24c9e250f9 warning instead assert (#24424)
* warning instead assert

* warning description
old-commit-hash: 43d2a3c187368a7c6ddf40c03766f7a3a95dfb24
2022-05-04 14:05:41 -07:00
Jason Young
2708e96fab update joystick README for webjoystick (#24413)
old-commit-hash: 0771addd144a6822fca8209be53994c0db009bbb
2022-05-03 17:03:17 -07:00
George Hotz
7119a98414 loggerd: switch to v4l encoder try 2 (#24380)
* start v4l encoder

* v4l encoder starts

* start and stop

* fill in proper controls

* it dequeued a buffer

* getting bytes

* it made a video

* it does make files

* getting close

* ahh, so that's how dequeue works

* qcam works (no remuxing)

* remuxing works

* we just need to make shutdown and rollover graceful

* graceful destruction

* switch to polling

* should work now

* fix pc build

* refactors, stop properly

* touchups, remove a copy

* add v4l encoder to release

* inlcude file

* move writing to it's own thread

* fix minor memory leak

* block instead of dropping frames

* add counter, fix tests maybe

* better debugging and test print

* print file path in assert

* format string in test

* no more oversized qlogs

* match qcam

* touchups, remove omx encoder

* remove omx include files

* checked ioctl, better debugging, open by name

* unused import

* move linux includes to third_party/linux/include

* simple encoderd

* full packet

* encoderd should be complete

* lagging print

* updates

* name dq thread

* subset idx

* video file writing works

* debug

* potential bugfix

* rotation works

* iframe

* keep writing support

* ci should pass

* loggerd, not encoderd

* remote encoder code

* support remote encoder

* cereal to master, add encoderd

* header no longer required

* put that back there

* realtime

* lower decoder latency

* don't use queue for VisionIpcBufExtra, disable realtime again

* assert all written

* hmm simpler

* only push to to_write if we are writing

* assert timestamp is right

* use at and remove assert

* revert to queue

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0baa4c3e2ad9ee6f8daba8267db44c2cd44caa62
2022-04-30 09:22:52 -07:00
Lukas Petersson
2d6ae65ea7 Latency logger bad data robustness (#24343)
* robustness against bad data

* sort by time logreader

* loop until last frameid
old-commit-hash: 1439867d16295a289af753c581617e55e684188e
2022-04-29 13:32:21 -07:00
Gijs Koning
d0fc9afa48 Simulator: Fix CI and set low_quality default (#24354)
* 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
old-commit-hash: ee433dfa57a60364423a222a7f18dc137b77f532
2022-04-29 07:15:05 -07:00
Shane Smiskol
66454c000e Fix can replay Jungle warning (#24364)
old-commit-hash: 2fa5a59e3faf30c2d4bb45056f20ec2408dcb3f4
2022-04-28 17:43:26 -07:00
Jason Young
9de3eb63c1 Fix PlotJuggler saved tuning layout (#24347)
old-commit-hash: be0f27ac852fe41a904af1bb05b1438d43938896
2022-04-27 21:57:37 -07:00
Daniel
2201cf91a6 Update can_replay.py (#24346)
Fixed typo from PandaJugnle to PandaJungle
old-commit-hash: c60ce2a770e32a228f5dc234df7a37d2c77c37d1
2022-04-27 21:43:36 -07:00
Adeeb Shihadeh
2130eae8b1 fix panda_jungle static analysis
old-commit-hash: bfeaf35d6dd2c29c65b80a70ccafd9948056731a
2022-04-27 15:45:00 -07:00
grekiki
77d6d9a083 mypy: enable --warn-unused-ignores (#24287)
* this is the easy part to check

* Not sure what this fixes, 8aaf00c6a4

* bump laika

* works here

* cleanup

* add types-certifi

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 049b163ea0494a21956d89d4cb2a527dcbd62c0c
2022-04-27 14:26:15 -07:00
George Hotz
d348193169 compressed_vipc: make yuv default
old-commit-hash: 3694f9801c280cdba5654a8ad90ef4b5827795d0
2022-04-25 21:44:37 -07:00
Comma Device
482801d4fd body: remove print spam
old-commit-hash: 729d7ae549315411017cc19aeae52baeca27c776
2022-04-25 20:07:12 -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: 2d77a31cd57a17e8562ba7a57f741a942d674cf9
2022-04-25 16:08:42 -07:00
MT
e80d78969d ubuntu_setup.sh: support 22.04 LTS (#24312)
* Build on 22.04 lts

- Removed python-dev from install_ubuntu_common_requirements()
- Added case ubuntu 22.04
- Added install_ubuntu_21.10_requirements()
- Modified install_ubuntu_latest_requirements() to include python3-dev instead of python-dev

* remove 21.10

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2a64f7b5638d4acf0dff3a84e842e78a89537d77
2022-04-25 14:06:30 -07:00
Gijs Koning
0112f4212f Simulator: Fix keyboard input (#24320)
* Fix keyboard input for simulator

* add unblock_stdout() to test

* Revert import change
old-commit-hash: 01968ca61ba32174f86f826c5b4166890034691c
2022-04-25 07:26:30 -07:00
Gijs Koning
4ed3a158af Simulator Tests (#24274)
* 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>
old-commit-hash: 9be23cbdb9cbb6ee4cfc2e6332a81fd82f18c91e
2022-04-22 18:00:49 +02:00
grekiki
cc943ac9a5 mypy: enable --warn-unreachable (#24282)
* Optional solves mypy assuming None is always None

* oops

* spaces

* Update registration.py

* fix local error

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b8b15d5cf1d2507c89bbe0e3b1de1ff043d9078e
2022-04-21 18:27:45 +02:00
George Hotz
b872fe92ab loggerd: Separate writer from encoder (#24257)
* seperate writer from encoder

* video writer in release

* confirm loggerd on PC works, add YUV option to compressed_vipc

* make raw_logger use video_writer

* put this back to master

* close codec

* put this back

* use unique_ptr

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8d2465578707022ca4a54defe171103955026a65
2022-04-20 14:51:24 -07:00
Lukas Petersson
a9b23562ee Latencylogger list logreader (#24276)
old-commit-hash: e063f77accad8fe6a37da463979272ec23c4b5d2
2022-04-20 12:02:05 -07:00
Gijs Koning
8ddeb3f531 Add wide camera to Carla (#23989)
* 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>
old-commit-hash: 13254cef2f56e960093ae05471f4c1c0281d7e34
2022-04-20 08:06:56 -07:00
Gijs Koning
7b4b8d3f58 Carla pip dependency and fix for git init (#24258)
* Add carla pip dependency for dev

* Revert other packages in pipfile

* Remove redundant carla install in docker

* Fix CI
Remove broken openpilot_build

* New run command
old-commit-hash: e95a250bcad5f07b7092ba6faf989352d933f678
2022-04-20 05:23:27 -07:00
Lukas Petersson
544375abcf Disambiguate frame id in latencylogger (#24164)
* add tools to disambiguate frame id

* Update selfdrive/camerad/cameras/camera_qcom2.cc

Co-authored-by: Gijs Koning <gijs-koning@live.nl>

* bug fix

* remove duplicate code

* PR comments

* bug fix

Co-authored-by: Gijs Koning <gijs-koning@live.nl>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 397bd25e971abf5c32276cbd0c48c61d7b1eae30
2022-04-19 14:29:24 -07:00
Adeeb Shihadeh
ae71ecf8b8 manager: start bridge and web joystick for notcars (#24212)
* manager: start bridge and web joystick for notcars

* fix that

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 76a83381977f9dd3d5b223e0dfb8e1617e2c7237
2022-04-19 14:13:05 -07:00
Adeeb Shihadeh
db252b457a improve tici thermal control (#24228)
* improve tici thermals

* more i

* always 70
old-commit-hash: c5378cf8b923446269b7c207451a9804b6f862b0
2022-04-19 11:07:54 -07:00
George Hotz
5ce06c5016 joystickd: add send thread
old-commit-hash: 13e18b605a1a2f259cea5459f34358cd12322eb8
2022-04-18 22:35:19 -07:00