Commit Graph

70 Commits

Author SHA1 Message Date
fishnux
3dd127c5ad tools: fix setup for directories with spaces (#33769)
Now handles $DIR with spaces. Also fixes UV_BIN variable
2024-10-13 09:55:06 -07:00
Maxime Desroches
8b1766caa0 curl pc installer (#33072)
* setup

* curl

* usable right now

* op sim

* cleanup

* show cmd
old-commit-hash: 173a633a75
2024-07-25 14:28:41 -07:00
Kacper Rączy
41fd8b51e7 macOS: generate .pyenvrc during setup (#29698)
* Create .pyenvrc if it does not exist

* Replace source zshrc with pyenvrc

* Remove unnecessary variables if pyenv wasn't installed

* Add check fo PYENV_SHELL

* source instead of eval

* printf instead of echo

* leave previous pyenvrc path to source

* Add newline

* Change shebang

* Dont source the file after setup

* eval virtualenv-init too

* modify comment

* Just unset broken function on macos
old-commit-hash: 39d2517d3d
2023-08-29 16:01:04 -07:00
Greg Hogan
69570ef251 script to install only ubuntu dependencies (#29510)
* script to install only ubuntu dependencies

* update Dockerfile

* add shebang
old-commit-hash: b24bbe4607
2023-08-21 16:32:35 -07:00
Kacper Rączy
1d47429f8e Setup cleanup vol. 2 (#29456)
* code from setup cleanup #29419

update ci

update ci

export variables for mac os

check env

what is in the profile script?

install pyenv the same everywhere

temporarily disable brew cache

temporarily disable brew cache

try fixing pyenv virtualenv-init

try this

inject shims path earlier

try alternate install method

switch back to brew install

try         eval "$(pyenv init --path)"

add eval "\$(pyenv init --path)"

* Add local .env file to the cache list

* Change .env paths

* debug line

* order?

* remove .env

* Add .venv to caches

---------

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
old-commit-hash: 0f7be5b1e6
2023-08-21 13:30:48 -07:00
Justin Newberry
1988b4805e Revert "setup cleanup (#29419)" (#29451)
This reverts commit bc9c60a3f955bb5b96dc41e6072cab47191f8896.
old-commit-hash: 1944945d9d
2023-08-17 13:23:06 -07:00
Greg Hogan
cce2c732c6 setup cleanup (#29419)
* setup cleanup

* update ci

* update ci

* export variables for mac os

* check env

* what is in the profile script?

* install pyenv the same everywhere

* temporarily disable brew cache

* temporarily disable brew cache

* try fixing pyenv virtualenv-init

* try this

* inject shims path earlier

* try alternate install method

* switch back to brew install

* try         eval "$(pyenv init --path)"

* add eval "\$(pyenv init --path)"
old-commit-hash: ad32816fd6
2023-08-17 08:51:16 -07:00
Adeeb Shihadeh
b3f734283d remove xx dependencies (#29263)
* rm xx deps

* mv that

* fix

* fix a path

* relock

* relock

* update

* update sentry

* update

* revert sentry

* Update lock

* Dummy pip package

* Not needed with poetry

* dont need dummy

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
old-commit-hash: 0ced56b2ea
2023-08-11 20:05:44 -07:00
Vivek Aithal
e8d84e11f5 [commabody] Add body packages to op (#29162)
* add body packages

* update poetry lock
old-commit-hash: 156c7a84e8
2023-07-26 23:08:23 -07:00
Dean Lee
0035749f62 add libncurses5 to ubuntu_setup.sh (#27751)
old-commit-hash: f3664b658b
2023-03-30 12:24:41 -07:00
ClockeNessMnstr
ac72bdb09b add g++-12 dependancy for Ubuntu 22.04 (#27263)
add g++-12 dependancy for 22.04

scons -u -j8 gave clang++ not finding iostream and others. 

https://askubuntu.com/questions/1449769/clang-cannot-find-iostream

solution at the bottom of the page worked. installed g++-12 and built fine after that.
old-commit-hash: cd37231666
2023-02-09 12:51:50 -08:00
Samer Khatib
1b9975df91 Added unofficial support for Ubuntu 22.10 in ubuntu_setup.sh (#26828)
* Added unofficial support for Ubuntu 22.10 in ubuntu_setup.sh

Added a conditional to check if $UBUNTU_CODENAME is equal to "kinetic" in ubuntu_setup.sh. Installs the same packages as Ubuntu 22.04 LTS Jammy Jellyfish.

* Attempt #2 at adding unofficial support for Ubuntu 22.10 in ubuntu_setup.sh

Still checks to see if $UBUNTU_CODENAME is equal to "kinetic" I just fixed some errors that were appearing beforehand

* Update tools/ubuntu_setup.sh

* Update tools/ubuntu_setup.sh

* Update tools/ubuntu_setup.sh

* Update tools/ubuntu_setup.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 777dc9dcd2
2022-12-20 13:44:33 -08:00
Cameron Clough
9bcf83f493 micd: scale sound volume with ambient noise level (#26399)
* test changing sound volume

* test changing sound volume

* create system/hardware/pc/hardware.h

* implement Hardware::set_volume using pactl

* soundd: use Hardware::set_volume

* add sounddevice dependency

* sounddevice example

* simple micd

* cleanup

* remove this

* fix process config

* add to release files

* hardware: get sound input device

* no more offroad

* debug

* calculate volume from all measurements since last update

* use microphone noise level to update sound volume

* fix scale

* mute microphone during alerts

* log raw noise level

* hardware: reduce tici min volume

* improve scale

* add package

* clear measurements on muted

* change default to min volume and respond quicker

* fixes

Co-authored-by: Shane Smiskol <shane@smiskol.com>

* logarithmic scaling

* fix

* respond quicker

* fixes

* tweak scaling

* specify default device

* Revert "hardware: get sound input device"

This reverts commit 50f594f7a3bab005023482bc793147a8c8dae5d7.

* tuning

* forgot to update submaster

* tuning

* don't mute microphone, and clip measurement

* remove submaster

* fixes

* tuning

* implement Hardware::set_volume using pactl

* Revert "test changing sound volume"

This reverts commit 4bbd870746ec86d1c9871a6175def96cf7f751a6.

* draft

* draft

* calculate sound pressure level in dB

* fix setting

* faster filter

* start at initial value

* don't run command in background

* pactl: use default sink

* use sound pressure db

* tuning

* bump up max volume threshold

* update filter slower

* fix divide by zero

* bump cereal

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 108ff15f5d
2022-11-30 21:56:03 -08:00
Cameron Clough
132e5fe200 tools: pyenv setup fix (#26601)
* setup pyenv immediately

* sudo

* fix
old-commit-hash: 821d8ff12f
2022-11-30 15:11:26 -08:00
Dean Lee
292d55cf8a c++ cabana: Initial version (#25946)
* draft

* continue

* fix QChart unresponsive with large points

* build with --extras

* add filter

* save DBC button

* more buttons

* add flag to use qcamera

* stop replay in dctor

* README

* use getMsg

* video control

* edit signal

* add colors

* correct ts

* add/edit signals

* use bus:address as key
old-commit-hash: 1b8324af87
2022-10-03 15:19:42 -07:00
Jason Shuler
2922d5b7aa ubuntu_setup.sh detect base ubuntu version for variant distros (#25433)
ubuntu_setup detect base version
old-commit-hash: 65f230e6f6
2022-08-13 18:53:45 -07:00
Willem Melching
dfcd3a2910 casync unittests (#25306)
* simple extract test

* add test with loopback

* test for chunk reuse

* test seeding

* add instructions

* cleanup

* install casync

* make more tests work without a loopback
old-commit-hash: 753f4c7fab
2022-07-29 17:46:19 +02:00
pcjx
3ccab8345c Make ubuntu_setup.sh use codenames to support Ubuntu based distros (#25261)
Using codenames allows the ubuntu_setup.sh to install
properly on systems like Pop!_OS or Linux Mint.
old-commit-hash: 551d2fe511
2022-07-23 16:49:41 -07:00
Shane Smiskol
2c5e890a23 UI: wrap all text for translation (#24961)
* rough multiple language demo

* more wrappings

* stash

* add some bad translations

* updates

* map from french to spanish still has same problem of needing to call setText on everything

* add files

* restart UI

* use return code

* relative path

* more translations

* don't loop restart

* Toggle and prime translations

* try on device

* try QComboBox with readable style

* stash

* not yet scrollable

* stash

* dynamic translations (doesn't work for dynamic widget strings yet)

* clean up multiple option selector

* store languages in json

* try transparent

* Try transparent popup

* see how this looks

* tweaks

* clean up

* clean up

* clean up 2 and missing tr

* wrap more strings

* missing updater

* fixes

* add basic test to ensure all strings wrapped

* try in CI

* clean up

* test name

* fix test

* always install qt dev tools

* fix deps

* fast test

* add section so it prints multiple errors

* debug

* debug

get rid of those

* make any difference?

* comment

* oh...

* run with offscreen platform

* try out section

* clean up

* fix missing wrappings (it works!)

* move down

* space

* clear relevant params, set TICI=1
old-commit-hash: 879a7c3201
2022-06-29 14:47:46 -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: 2a64f7b563
2022-04-25 14:06:30 -07:00
Willem Melching
772f394423 Revert "collect C++ code coverage (#23619)"
This reverts commit a97b2e613b275f407576ddb3d7a3bd52b05f612a.

old-commit-hash: a62e914090
2022-01-26 10:59:21 +01:00
Willem Melching
6c89b62dd9 collect C++ code coverage (#23619)
* collect cpp coverage

* install llvm

* compile with coverage

* cd to root

* remove broken gcda files

* remove newline

* delete more stuff

* script to collect coverage

* Update tools/collect_coverage.sh

* actually delete
old-commit-hash: 698ab6ac97
2022-01-25 23:15:24 +01: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
Andrew
192978753d mac: fix setup and re-enable CI (#23365)
* rework mac_setup.sh
* ignore casadi and onnx runtime in pipfile for Darwin
* remove rust stuff
* build and install casadi

* add wget

* explicit python3. dont do onnx just yet

* resource compiler

* replace acados Darwin lib w universal2 libs

* relock Pipfile using linux machine

* Update update_requirements.sh

brackets

* Update update_requirements.sh

oops

* ci: re-enable mac build

* attempt to fix ci build:
* pip stuff?
* move rcc bin path to env script

* oops

* only mac

* k im lazy. does ci like this??

* huh??

* * use curl
* avoid casadi rebuilds
* add comment to remove protobuf
* host detect typo

* python version

* how did the builds not use swig?
* better reinstall check

* sometimes mac clang complain abt error limit

* ci: build OP in venv

* ci: bump to Big Sur
* retry? idk why it failed @ acados link

* * use macos-latest
* move rcc path to scons
* add extra paths for odd homebrew installs
* acados source change

* update macOS README

* uh, maybe?

* k nvm

* ci: ok this is strange. might be scons bug?

* fix conflicts: bump

* just add cppcheck for pre-commit stuff

* agane

* cleanup

* try that

* fix path

* no pyenv update on mac

* source

* fix rpath prefix?

* no examples

* fix exit

* let's get this cached

* add virtualenvs to cache

* why did we cache that

* let's see what's big

* more

* always ruyn

* cache scons cache

* better cache key

* fix for partial hit

* why so long

Co-authored-by: Andrew Tec <andrest@trabus.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Bruce Wayne <batman@openpilot-mac-mini.local>
old-commit-hash: 6664421710
2022-01-07 15:15:18 -08:00
Adeeb Shihadeh
02f1866b61 CI: use ubuntu_setup.sh (#23349)
* CI: use ubuntu_setup.sh

* works?

* need to fix paths

* set paths

* no batman for now

* pyenv version

* rehash after install packages

* unify python install

* revert that

* fix pyenv path

* no pipenv

* flip that

* fix rehash

* skip that

* revert panda
old-commit-hash: 066e3e3626
2022-01-02 14:47:16 -08:00
Adeeb Shihadeh
55e0fb4a55 fix setup scripts if git isn't installed
old-commit-hash: 7cd6a88638
2021-12-31 19:29:38 -08:00
Adeeb Shihadeh
c9b2b90681 ubuntu_setup.sh: add option to continue on unsupported os
old-commit-hash: 0674726cf4
2021-11-16 14:30:51 -08:00
lipniak
9fcb713e9c tools/setup: do not change global state (#22735)
* tools/setup: do not change global state

1. download packages in the venv
2. never change global python version

* update_requirements.sh: install to system if used by comma employees

* bump pip & pipenv versions

* no --upgrade

* run pre-commmit install in venv

* for consistency

Co-authored-by: predicate@bonzo <noreply@example.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1d55f2f23e
2021-10-31 16:37:07 +01:00
lipniak
dc816fc35c tools: add info on common issues (#22709)
* tools/README.md: add more information

1. Add info about OpenCL drivers
2. Add info about pipenv environment

* ubuntu_setup.sh: add clinfo

Adds the clinfo command so you can verify your OpenCL installation.

* tools/README.md: add info on GUI WSL
old-commit-hash: e68849cfc8
2021-10-29 11:19:43 +02:00
Andrew
1e04063b9b tools/setup: add missing package for plotjuggler (#22713)
old-commit-hash: 999b2ee5cc
2021-10-27 10:56:41 -07:00
lipniak
d2d94f2fd4 ubuntu_setup.sh: add 21.10 support and change packages (#22628)
old-commit-hash: 38420a1bef
2021-10-22 15:45:20 -07:00
Adeeb Shihadeh
6b8ea0b86a tools/setup: install git-lfs from standard apt source
old-commit-hash: 76a8751497
2021-10-19 22:37:08 -07:00
Minjie Xu
8120ce0a98 tools/setup: use OP_ROOT in cd (#22600)
old-commit-hash: a9672eabf4
2021-10-18 10:51:20 -07:00
Lasse Skov
aade2e1025 tools: use .python-version in setup scripts (#22511)
* Updated tools installer to us.python-e version file

* Updated tools installer to use .python-version file

* fix path

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 25def3cc34
2021-10-10 16:03:56 -07:00
orphen
44440909dd Fix path issues in ubuntu_setup.sh and openpilot_env.sh (#21380)
* fix: fix pathing issues in ubuntu_setup.sh and openpilot_env.sh

Fixes:
- enter git tree before trying git operations in ubuntu_setup.sh
- extend PYTHONPATH instead of overwriting it in openpilot_env.sh
- fix pyenv pathing with workaround in openpilot_env.sh

This also adds a newline before .bashrc extensions to visually separate
the additions from existing content.

* Update tools/ubuntu_setup.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6d3c587564
2021-06-23 13:31:28 -07: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
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
Adeeb Shihadeh
1ae061b09c update ubuntu setup
old-commit-hash: 6e360c08df
2021-04-03 13:42:05 -07:00
Willem Melching
350b6b09cf Add qml-module-qtquick2 to package list
old-commit-hash: 58a17fb3c8
2021-03-29 13:57:05 +02: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
Adeeb Shihadeh
8ec4fa1002 update to python 3.8.5 (#20217)
old-commit-hash: 2034a04750
2021-03-09 13:38:22 -08:00
grekiki
60de719638 update libs (#20009)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 4a509982a7
2021-02-03 17:09:49 +01:00
grekiki
4603a9b9d3 Fix Wifi UI not working on PC (#2597)
old-commit-hash: 3a7fcc62fb
2020-11-22 00:10:00 +01:00
doktorsleepelss
444080d1b6 Upgrade pip in ubuntu setup (#2573)
old-commit-hash: e1bda99acb
2020-11-19 14:54:26 -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
8f9f31778d get rid of rest of czmq
old-commit-hash: f571b7c751
2020-10-27 19:07:56 -07:00
Greg Hogan
f1835a740a more pipenv version updates
old-commit-hash: be2b093d6e
2020-09-15 18:25:16 -07:00
Vivek Aithal
db0a4ef2dc dockerize carla + openpilot (#2011)
* 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
2020-09-10 12:14:49 +02:00
Adeeb Shihadeh
0ae5e7403e QT UI: sounds (#2078)
* move android into own dir

* fix name

* maybe this works? qt ui doesn't work on mac

* fix that

* pc sound works

* fix pc build

* lowercase

* that needs to be real_arch

* split into classes

* fix typo in lib

* Fix cycle alerts

* Add qt multimedia libs to install scripts

* Add ui/android folder

* Fix android build

* Raise exception if sound init fails

* add missing return

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: acd1bde496
2020-09-09 19:04:28 +02:00
Willem Melching
55c441b6dd Systemd logcatd (#2085)
* Systemd logcatd infrastructure

* This should work

* Cleanup

* Split

* More compact and cleanup

* Add to ubuntu setup package list

* Run logcatd on all non pc platforms
old-commit-hash: 5782efe3ae
2020-08-26 17:09:23 +02:00