Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Пеньшин Игнат Николаевич committed Jul 20, 2023
0 parents commit ade30c0
Show file tree
Hide file tree
Showing 15 changed files with 14,692 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[flake8]
ignore = E203, E266, W503, E402
max-line-length = 88
exclude =
# git folder
.git,
# python cache
__pycache__,
# pytest cache
.pytest_cache,
# mypy cache
.mypy_cache
# venv folder
venv
.venv
# self typing
*.pyi
131 changes: 131 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# custom
typings/
*.lock
imu_zed/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3*
.db.sqlite3*
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.venv
venv/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
Binary file added README.md
Binary file not shown.
13,767 changes: 13,767 additions & 0 deletions data/imu.txt

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from src.tracker import Tracker


class Runner:
def __init__(self):
T: float = 1 / 25
self.tracker: Tracker = Tracker(T)

def run(self):
while True:
R, pose = self.tracker.track()
print(R, pose)


if __name__ == "__main__":
imu_plot: Runner = Runner()
imu_plot.run()
26 changes: 26 additions & 0 deletions nav.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"folders": [
{
"path": "."
},
],
"settings": {
"python.analysis.diagnosticMode": "openFilesOnly",
"python.analysis.typeCheckingMode": "strict",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.formatting.provider": "black",
"python.languageServer": "Pylance",
"python.analysis.autoImportCompletions": true,
"python.analysis.extraPaths": [
"${workspaceFolder}"
],
"python.analysis.indexing": true,
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingTypeStubs": "information",
},
},
"extensions": {
"recommendations": []
}
}
43 changes: 43 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[project]
name = "IMU_EKF"
authors = [{name = "Ignat Penshin"}]
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["dependencies", "version"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
version = {attr = "0.1a"}

[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[tool.black]
line-length = 88
exclude = '''
^/(
(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| venv
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''

[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
line_length = 88
Binary file added requirements.txt
Binary file not shown.
3 changes: 3 additions & 0 deletions src/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Vars:
PATH: str = "data"
FILE: str = "imu.txt"
Loading

0 comments on commit ade30c0

Please sign in to comment.