Commit Graph

276 Commits

Author SHA1 Message Date
Adeeb Shihadeh
ee9ac35ca5 fix route_framereader when segments are missing
old-commit-hash: 594877e4a8
2021-06-10 23:12:56 -07:00
Ross Fisher
40be12ab37 Clarify instructions in plotjuggler readme (#21158)
old-commit-hash: 4978a7fae4
2021-06-06 16:16:32 -07:00
siggie0815
35f0bcb35a CARLA: save calibration params as capnp (#21144)
old-commit-hash: c798c5f027
2021-06-04 16:05:05 -07:00
Adeeb Shihadeh
0c1c0ddcb1 unlogger: put YUV vipc send behind flag
old-commit-hash: 4b6ec3bca6
2021-06-03 21:53:16 -07:00
Josh Smith
2cae3a3799 Add type hints, small cleanups (#21080)
* 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
2021-06-03 12:21:04 +02:00
Adeeb Shihadeh
c7c49e8e35 fix up model tests + tools (#21071)
* unlogger: send yuv stream

* fix up model test tools

* fix unlogger

* rename model replay

* bump cereal

* test in actions

* no ci for now
old-commit-hash: cf6d133638
2021-05-28 23:08:08 -07:00
Dean Lee
a436b51e84 move c++ framereader to selfdrive/ui/replay (#21053)
old-commit-hash: bb5bcc7e49
2021-05-27 16:00:11 -07:00
Willem Melching
a7ddd6ecc7 fix route framereader when using signed urls (#21029)
old-commit-hash: 476ee91845
2021-05-26 11:36:53 +02:00
Adeeb Shihadeh
c41e23070b set github username in key setup script
old-commit-hash: 732006b0bc
2021-05-25 15:45:29 -07:00
Dean Lee
7b253433f2 Refactor FrameReader (#21002)
* Refactor FrameReader

* decodeThread

* delete frame

* remove joined

* continue

* less diff

* robust cv wait

* cache fist 15 frames

* notify_all

* rename variables

* need call avformat_find_stream_info before dump_format

* get width&height from codec

* use std::string

* delete in removeSegment

* use std::mutex in lockmgr_cb

* fix wrong min/max

* no get in process

* cleanup

* always notify decodeThread to do prefetch
old-commit-hash: 5540dcae78
2021-05-24 17:01:15 -07:00
Mitchell Goff
7eed124138 Updated RouteFrameReader to work on routes with missing segments (#20971)
old-commit-hash: 0dc27e3d6d
2021-05-23 14:15:48 -07:00
ShaneSmiskol
4748885813 Remove snap installed PlotJuggler (#20989)
* use our compiled plotjuggler

* update readme

* update readme
old-commit-hash: f3d41de9d8
2021-05-21 13:28:06 -07:00
ShaneSmiskol
a14fc7c5bd Support streaming in juggle.py (#20982)
* add --stream to juggle.py

* better

* rm old code

* for loopify

* clean up

* easier to pick out

* start by default

* don't exit

* Update tools/plotjuggler/juggle.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Revert "start by default"

This reverts commit 6cb481a6fdc2b401693a46be8d17553c1c00cc0f.

* Revert "don't exit"

This reverts commit 861b423eb8e259c8353586f3314ea8bad871f15a.

* rm

* move out of juggle_route

* Update PJ README.md

* Update tools/plotjuggler/README.md

* this is in the readme

* Updates

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 63e521935e
2021-05-20 20:19:06 -07:00
Cameron Reikes
5d11f5adc5 sim: get GPS data from CARLA (#20717)
* 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
2021-05-18 19:52:09 -07:00
ShaneSmiskol
0d45e6885a Deprecate brakeLights field (#20954)
* remove all references to CS.brakeLights

* unused red

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 551091bcfa
2021-05-18 17:48:02 -07:00
Willem Melching
bdd5cd2bce fix unlog_segment.py
old-commit-hash: 679919ab1f
2021-05-18 11:14:42 +02:00
Willem Melching
efa94a89ff Mapbox widget (#20751)
* squash mapbox stuff

* only hacks for pc

* no hack there

* only update when needed

* get destination from param

* no need for user agent

* add athena method

* change nav path color

* layout cleanups

* margin top

* add build scripts

* rename header file

* set pitch

* fix icon blinking

* keep both options

* draw on top to fix last blinking

* only recomput with gps

* fix include

* put map in onroadwidget

* update mapbox plugin to allow specifying directions url

* cycle through views

* dynamic resize

* only when present

* add map_helpers

* whitespace

* small fixes

* let scons decide

* update setup files

* implicit dependency

* fix alerts

* Update selfdrive/ui/SConscript

* move clearLayout to util.h

* only build when map.cc present

* move maps to own folder

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 86aefbe766
2021-05-17 14:57:07 +02:00
Willem Melching
3725aeca25 tools/lib/auth.py update oauth redirect url
old-commit-hash: 0252072729
2021-05-17 14:51:29 +02:00
Cameron Reikes
78ae1be356 Set standstill bit in sim (#20921)
old-commit-hash: 12ce822252
2021-05-15 21:09:17 -07:00
siggie0815
c3a6cc6aa0 sim: mount working dir to the same dir in the container (#20908)
old-commit-hash: 4b7ea0a032
2021-05-14 20:00:13 -07:00
Nicklas Boman
5ffdb65c6c Removed libmysqldb-dev. dont need to add scons, some QT -dev added, python3-dev is not neededand readline-dev to apt install. Added path to .pyenv/shims and .pyenv/bin for the setupscript to find where pip and pyenv is installed. Also made the setup end like the mac_setup script (#20860)
old-commit-hash: 0f43e7e089
2021-05-09 13:34:55 -07:00
Dean Lee
e333e4f189 Cleanup selfdrive/ includes (#20822)
* cleanup include path

* continue

* format includes

* fix testraw.cc

* remove include path from SConstruct

* regroup

* rebase master

* almost done

* apply review

* rename FileReader.xx to filereader.xx

* rename Unlogger.x->unlogger.x

* rename FrameReader.xx -> framereader.xx

* apply reviews

* ui.h

* continue

* fix framebuffer.cc build error:mv util.h up

* full path to msm_media_info

* fix qcom2 camerad

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20d
2021-05-08 22:15:17 -07:00
George Hotz
8427b0081b support file in juggle.py
old-commit-hash: 636a89b48e
2021-05-05 12:15:48 -07:00
Dean Lee
9159291a09 ui/replay: file extensions to .cc and .h (#20805)
old-commit-hash: bdf4a94cd0
2021-05-03 20:22:32 -07:00
iejMac
ff2138d905 qt replay (#20602)
* initial commit, works

* remove nui

* working again

* visionipc

* cleanup

* cleanup

* moving VisionIpcServer to Unlogger class

* works

* tab cleanup

* headless mode

* headless mode works

* working headless mode

* gitignore update

* small unlogger refactor

* refactor param in UIState

* works, very slow, hacks

* cleanup

* works

* cleanup

* cleanup

* unused

* works for whole route

* nicer

* a little nicer

* different threshold

* maintains 1 segment window

* works with public api

* comments

* networkTimer works

* cleanup

* unified HttpRequest

* tabs

* tabs

* comments'

* gitignore

* gitignore

* only on PC

* same line else

* no changes in home.cc

* scons

* update scons

* works

* revert mainc.c

* revert home

* else

* just api + problem with api send

* works

* include cleanup

* general json fail

* whitespace

* remove active

* adding request repeater

* removing comments

* tabs

* update comment

* cereal

* fix

* trailing new lines

* grammar

* if whitespace

* indentation

* Update selfdrive/ui/SConscript

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/ui/qt/request_repeater.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* works

* sort by dir

* no blockSignal

* replay is now QOBject

* cant take const char

* rename inner it

* get width and height from frame readeR

* resolve TODO

* seek in next pr

* spaces

* ui stuff

* fix CI

* remove comments

* no repalce

* trim segment fix

* remove seek from stream

* no cache key

* final changes'

* fix

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 19d962cdf3
2021-04-24 00:59:09 -07:00
Ankush Girotra
5c63aa3f7c fix mac setup script for zsh (#20708)
Co-authored-by: Ankush Girotra <ankush.girotra@dlzpgroup.com>
old-commit-hash: 18a59c0d4b
2021-04-20 17:28:10 -07:00
robbederks
5cd4a9ba36 Zookeeper support (#20000)
* zookeeper lib

* add ft4222 to dev pip packages and fix include error

* started on CI

* it's a file

* now it should be happy

* use docker for all on-device tests

* test scripts

* does this work?

* access to devices

* too broad. only usb enough?

* permissions for zookeeper usb

* as env var maybe?

* this?

* try this for now

* all devices

* move to correct location for impoerts

* right paths

* not running in the right agent?

* ofc not

* fix broken merge

* add ft4222 package again

* add timeout

* power monitor

* cleanup

Co-authored-by: Batman <batman@openpilot-ci.internal>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6a824d7651
2021-04-13 15:08:00 -07:00
Adeeb Shihadeh
d3429eee66 tools/ssh cleanup
old-commit-hash: 795b9ab35e
2021-04-06 15:00:11 -07:00
ChoMinSung
7aed8355db start_openpilot_docker.sh: pass in /dev/input for joystick support (#20563)
old-commit-hash: 780654cb3b
2021-04-06 09:55:18 +02:00
Adeeb Shihadeh
1ae061b09c update ubuntu setup
old-commit-hash: 6e360c08df
2021-04-03 13:42:05 -07:00
Philipp Braun
ed5606ecba Add mac requirements (#20420)
* Add mac requirements

* Remove bashrc spam
old-commit-hash: 523d36e7ca
2021-03-30 15:45:28 -07:00
Willem Melching
3ec4a7916b add qcamera support to Route (#20521)
old-commit-hash: 3755081145
2021-03-30 11:48:27 +02:00
Willem Melching
350b6b09cf Add qml-module-qtquick2 to package list
old-commit-hash: 58a17fb3c8
2021-03-29 13:57:05 +02:00
Willem Melching
285e086d80 use scons to build panda fw (#20457)
* use scons to build panda fw

* add arm gcc to dockerfile

* install gcc on macOS

* pandad shutdown test is flaky and broken due to faster startup

* bump panda
old-commit-hash: 0e338d2b91
2021-03-24 14:44:39 +01:00
iejMac
27e0bba16f increasing time for PlotJuggler CI
old-commit-hash: 05e53fb047
2021-03-23 21:33:31 -07:00
Willem Melching
d0cd4d6de9 sim/build_container.sh: fix container name
old-commit-hash: c563968003
2021-03-23 13:20:59 +01:00
ChoMinSung
a5727d14cb start_openpilot_docker.sh: fix docker container name (#20444)
old-commit-hash: 34342b21a9
2021-03-23 13:20:11 +01:00
cydia2020
2efc95b0a7 README.md for SSH (#20365)
* SSH README

* table of contents fix

* fix ambiguity

* removed some useless sections

* Update README.md

* fix line

* cleanup

* add link

* this is correct

* Add notice that key is only fetched once

* Update README.md

* end of sentence

* Even more

* Update tools/ssh/README.md

* move ssh above tools

* remove useless sections

* succint

* note

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e87d88490b
2021-03-21 18:58:58 -07:00
iejMac
8aa491994f update simulator README
old-commit-hash: 1830a87d9a
2021-03-17 00:42:32 -07:00
iejMac
10844d3b57 mount openpilot in simulator docker image (#20379)
* mount parameter

* works

* fixes
old-commit-hash: dc1506e382
2021-03-16 22:23:38 -07:00
qadmus
7297b95888 Fix warning popup for file not found, batman. (#20364)
old-commit-hash: e7e76b755b
2021-03-16 19:31:24 -07:00
Willem Melching
c5c9fddd6e juggle.py: make CAN optional to speed up parsing
old-commit-hash: aebad0b5e2
2021-03-15 11:36:21 +01:00
wolterhv
dfb437648e Specify comma containers come from ghcr.io in docker pull commands. (#20342)
old-commit-hash: 5463469f71
2021-03-14 12:59:05 -07:00
Willem Melching
4bd1929d2b LateralPlanner should only compute curvature (#20289)
* get curvature from planner

* no need to check active

* remove that

* remove self

* liveParams not needed

* cast

* fix test bug

* fixes

* fix ui.py

* fix radians

* update refs

* update refs

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c23ec9f753
2021-03-11 21:08:51 -08:00
iejMac
9f86db04ea Minimize sim docker image size (#20324)
old-commit-hash: 1e5b04ba2f
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: c4031750f3
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: baf07191d2
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: ea5fec7636
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: 072cdcad6b
2021-03-09 19:52:43 -08:00
Adeeb Shihadeh
1eed3b756b fix cached mac CI run (#20294)
old-commit-hash: 92c5bbf92d
2021-03-09 19:37:17 -08:00