Commit Graph

64 Commits

Author SHA1 Message Date
Kacper Rączy 05fd60278a
Add rot_to_euler sympy helper (#46)
* Add rot2quat and quat2euler

* Single element helpers

* Simplify

* Remove trash
2024-08-29 20:52:00 -07:00
Adeeb Shihadeh 66926771e0 fix one more 2024-08-28 13:15:11 -07:00
Adeeb Shihadeh 90c891fe89 fix "ResourceWarning: unclosed..." 2024-08-28 11:32:58 -07:00
pantew869 023a6195db
Use numpy instead of numpy-stubs in pre-commit (#44) 2024-07-13 13:36:10 -07:00
Uku Loskit 3ad6816953
Convert tests to use pytest instead of unittest (#43)
* Convert tests to use pytest instead of unittest

* Augment PYTHONPATH for pytest via pyproject.toml

* cleanup

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2024-07-10 00:36:23 +00:00
Adeeb Shihadeh 72b3479bab no pyenv 2024-05-01 15:58:08 -07:00
Adeeb Shihadeh 24c50f57bb
update to ubuntu 24.04 (#42)
* update to ubuntu 24.04

* Apply suggestions from code review

* Update Dockerfile
2024-04-27 17:33:06 -07:00
Hoang Bui 1dc61a60e6
Enable docker cache (#39)
* enable docker cache

* env lowercase

* fix space

* action/checkout version4

* change name repo
2024-02-27 12:00:12 -08:00
Cameron Clough c5762e8bc6
use pyupgrade to update typing syntax (#40)
* update ruff

* add pyupgrade hook

* fix deprecated ruff config

* update syntax with pyupgrade (pre-commit run -a)

* ruff --fix

* remove hook
2024-02-24 15:54:03 -08:00
Hoang Bui 18b91458fd
CI: rednose compile to relpath (#38) 2023-12-26 13:57:31 -08:00
Kacper Rączy 44e8a891a2
Load model libraries at runtime in cython ekf (#37)
* RednoseCompileFilter tool

* Refactor sconscripts

* Move lst_sq and feature_handler to examples

* add ekf_load_code_if_needed

* Fat binary for cython ext

* Restructure. Remove common_ekf. Load libs at runtime

* Build compatibility with openpilot

* ekf_lib_init

* Fix styling issues

* Fix linker flags for mac

* Remove useless pyx imports

* Build static lib instead of shared

* newlines

* Remove lst_sq_computer and feature_handler
2023-11-21 21:00:57 -08:00
Justin Newberry 8658bed296
Precommit: ensure executable bit is set (#36)
* precommit ensure executable

* not executable
2023-09-05 15:29:54 -07:00
Justin Newberry e32658ed91
remain compatible with other submodules (#35)
* Revert "propogate ruff (#33)"

This reverts commit 75f545a5e1.

* readd config

* fix ruff

* revert that
2023-08-29 15:51:37 -07:00
Justin Newberry 75f545a5e1
propogate ruff (#33) 2023-08-17 13:39:46 -07:00
Justin Newberry 22f02dd650
pylint to ruff (#32) 2023-08-07 15:30:35 -07:00
Dean Lee 7d0841db15
correct format string (#31) 2023-07-22 21:47:35 -07:00
Maxime Desroches de6e160b0e
Use bool instead of np.bool (#30) 2023-07-19 20:37:50 -07:00
Adeeb Shihadeh 973c04dc42
fix build with swaglog (#29) 2023-07-01 18:14:48 -07:00
Adeeb Shihadeh 3689d817d4
bump to python 3.11.4 (#27)
* bump to python 3.11.4

* Update requirements.txt

* lint

* revert

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2023-06-27 15:40:10 -07:00
apache2046 3319f4c43c
remove unnecessary zmq dependency (#26) 2023-03-06 09:22:34 -08:00
Adeeb Shihadeh 3b6bd703b7 .gitignore cython stuff in rednose/ 2022-07-08 12:34:03 -07:00
Willem Melching 225dbacbaa
pass in dependencies through rednose_config (#24)
* pass in dependencies through rednose_config

* fix args
2022-06-28 17:19:40 +02:00
Gijs Koning a79a87300a
Rename cython EKF_sym (#23)
* rename cython ekf_sym

* Make unittest
2022-06-27 10:26:22 -07:00
George Hotz 7663289f1e don't hardcode path of swaglog 2022-03-09 15:18:53 -08:00
Mayfield 5b526a8e00
fix wshadow error (#21)
* fix wshadow error

* enable wshadow flag

* fix pre-commit

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-02 15:18:20 +01:00
Willem Melching e25075a358 allow including in openpilot docs 2021-10-27 11:54:53 +02:00
Pratik Raj eab09f04f6
use pip's --no-cache-dir flag in dockerfiles to save space (#20) 2021-10-09 11:39:17 -07:00
Adeeb Shihadeh 30ed009a75 link against default cython libs 2021-10-07 16:28:01 -07:00
Adeeb Shihadeh 1f92835919 gitignore *.tmp 2021-10-07 13:51:52 -07:00
Vivek Aithal 08e03afe26
Add cloudlog support (#18)
* add case where filter ignores an old message to cloudlog (debug)

* add logger.h

* update SConstruct

* add logger in separate dir like in cereal
2021-10-06 15:42:48 -07:00
HaraldSchafer 7fff192e23
Allow normalization of quaternions after every predict and update (#16)
* initial commit

* better names

* need this in python version too

* forgot to write this
2021-05-05 13:20:54 -07:00
Joost Wooning f069de89f6
changes for locationd in c++ (#13)
* changes for locationd in c++

* minor fixes

* optional extra sympy routines

* Allow for generation of additional files
2021-04-20 11:07:40 +02:00
grekiki 06ac3a4804
Fix typo (#10) 2021-04-15 13:23:10 +02:00
Joost Wooning a0eb4d249e
EKF_sym class rewritten to c++ (#9)
* EKF sym (for live_kf only) in c++

* Cython wrapper for EKFSym in cpp

* Linking cython wrapper

* Compiling with eigency

* Non failing version

* Correct passing data from Eigen to numpy

* Working for locationd without rewidning

* Rewinding

* Fixed relative imports

* Pass data by reference

* Dynamic shared lib loading

* Both working python and c++ ekfsym

* Fixed names

* Naming error

* set globals

* Work with paramsd

* Fixed working on paramsd

* Added test to compare ekf_sym_py and ekf_sym_pyx

* Fixed imports

* Dockerfile fix

* Cleanup

* cleanup

* CI fixes

* No longer use output parameters

* CI

* Single sconscript for rednose and locationd/models

* cleanup

* CI fix

* removed unimplemented functions from header

* loading functions

* header file generation

* code generation fix

* formatting
2021-04-08 13:08:58 +02:00
Willem Melching 946a034574
add logger as argument to EKFSym (#8) 2021-03-15 13:26:40 +01:00
Harald Schafer 2f054316cb use K from name 2020-12-03 13:22:46 -08:00
Adeeb Shihadeh 8de93012b9
ubuntu 16.04 -> 20.04 (#6)
* ubuntu 16.04 -> 20.04

* no interactive
2020-10-23 15:27:51 -07:00
Willem Melching 10bf459f33
c++17 (#5)
* c++17

* 1z
2020-10-17 12:45:29 -07:00
vanillagorillaa 3226707116
Rednose typo fixes (#4) 2020-09-30 01:21:53 -07:00
Adeeb Shihadeh 3667aeb704 fix loading on mac 2020-09-08 22:50:17 -07:00
Harald Schafer 2e556b8219 should be a param 2020-07-29 17:53:22 -07:00
Adeeb Shihadeh 307c771fca cleanup pre-commit config 2020-06-22 14:03:52 -07:00
Willem Melching a11a52e0d9 fix ci 2020-06-04 11:33:03 -07:00
Adeeb Shihadeh e111a0867d use same pre-commit config as openpilot 2020-06-03 22:21:50 -07:00
Willem Melching 026464a3d1 install numpy-stubs for mypy 2020-06-03 12:11:53 -07:00
Willem Melching 40f9d48c63 stricter pylint 2020-06-02 15:20:43 -07:00
Adeeb Shihadeh 6938fea39b fix linter whitespace complaint 2020-05-31 17:48:26 -07:00
Willem Melching ffab6b4a36
Merge pull request #1 from commaai/pre-commit-ci
run static analysis in CI
2020-05-28 17:46:28 -07:00
Willem Melching 485162d9fa use github url 2020-05-28 17:46:19 -07:00
Willem Melching d3a001056b Fix docker container name 2020-05-28 16:17:11 -07:00