Skip to main content

A package for Guidance, Navigation, and Control (GNC) algorithms.

Project description

GNCPy

A python package for Guidance, Navigation, and Control (GNC) algorithms developed by the Laboratory for Autonomy, GNC, and Estimation Research (LAGER) at the University of Alabama (UA).

For using this package, simply clone the repository and then pip install the top level folder. It is recommended to install with the -e flag such that new updates can be applied automatically. For setting up a development environment to extend the package see the following sections.

Open in Dev Containers Test Status Test Cov

This project uses the pytest for developing and running the tests (with extensions for generating summary and coverage reports), tox automates setting up and running the test environment (as well as the documentation), Sphinx is used for documenting the code, and the Black formatter is used to auto format the python code. This project also follows semantic versioning where any api breaking changes will increment the major version number. Additionally, a prebuilt docker container image is provided to get started with developing for this library. It contains all of the needed tools to compile the code, run the tests, and build the documentation. The docker container can be used within VS Code through their dev container extension to allow editing local files but compiling using the toolchain provided within the container.

Development Environment Setup

It is recommended to use VS Code with the dev containers extension for developing. Development containers allow the full toolchain to be automatically setup on most any machine capable of running Docker. For information on dev-containers see here for an overview, here for auto installing extensions in the container and here for an example setup. The provided dev container also has useful extensions installed to ease development.

To being, make sure VS Code and git are installed. Additionally, make sure docker is installed for your system (Windows, Mac, Linux). Next, install the dev containers extension within VS Code. Clone the repository locally on your computer, for windows it is recommended to clone it within your linux subsystem directory (e.g. a sub-directory of your linux home folder) to improve performance within the container (the linux directories on Windows can be accessed through the file browser by typing \\wsl$ in the address bar and clicking on your distro). Now open the repo folder within VS Code (for windows you may need to connect to the linux subsystem first). Then you should be prompted to open the folder in the container, click yes. If you are not prompted, you can go to the command palette and start typing “Open folder in container”. Now your terminal within VS Code will be running commands within the container but the files your are editing/creating will be accessible from your local machine’s file browser.

Note if you click the open in container button on the repo’s page it will automatically open VS Code, open the container, and clone the repo for you. However, it will do this within a docker volume so the files are only accessible within the container (ie you can’t view them through your local file browser).

Example Workflow

Once the repository is open in the container, you can edit files, run tests, and make commits just like normal. For example, after editing some files and adding some validation tests to run these tests you would simply call the following from the root of the repository.

tox

This will attempt to run the all the validation tests, except those marked as slow, on multiple versions of python. If the python version can not be found, it will be skipped.

After running tests, it may be helpful to check the documentation build locally to ensure code comments are being pulled correctly. This can be done with

tox -e clean_docs
tox -e docs_html

to remove any existing documenation builds and generate the html version. The output is placed in docs/build/html and can be viewed by opening the docs/build/html/index.html file in your web browser.

Notes on tox

Tox will automatically create virtual environements, install dependencies, install the package, and run some commands in the virtual environment. These are defined in the tox.ini file in the repository. If tox is called without specifying an envrionment, it will run all of the default environments. The available environments can be listed with

tox -av

and a specific environment run by calling

tox -e ENV

where ENV is replaced with the environment name. To pass positional arguments into the commands run within the tox environment you must use -- after the environment name but before the positional arguments. For example to run validation tests using Python 3.9 and pass the --runslow option to pytest you would call tox -e py39-validation_test -- --runslow.

Note, all tox commands must be run from the root of the repository because this is where the tox.ini file lives.

Cite

Please cite the framework as follows

@Misc{gncpy,
    author       = {Jordan D. Larson and Ryan W. Thomas and Vincent W. Hill and Vaughn Weirens},
    howpublished = {Web page},
    title        = {{GNCPy}: A {P}ython library for {G}uidance, {N}avigation, and {C}ontrol algorithms},
    year         = {2019},
    url          = {https://github.com/drjdlarson/gncpy},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gncpy-2.0.0.tar.gz (15.9 MB view hashes)

Uploaded Source

Built Distributions

gncpy-2.0.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

gncpy-2.0.0-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (5.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

gncpy-2.0.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl (5.5 MB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

gncpy-2.0.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

gncpy-2.0.0-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (5.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

gncpy-2.0.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (5.5 MB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

gncpy-2.0.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

gncpy-2.0.0-pp37-pypy37_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (5.3 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

gncpy-2.0.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl (5.5 MB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

gncpy-2.0.0-cp39-cp39-musllinux_1_1_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

gncpy-2.0.0-cp39-cp39-musllinux_1_1_i686.whl (5.7 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ i686

gncpy-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

gncpy-2.0.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (5.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

gncpy-2.0.0-cp39-cp39-macosx_10_9_x86_64.whl (5.5 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

gncpy-2.0.0-cp38-cp38-musllinux_1_1_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

gncpy-2.0.0-cp38-cp38-musllinux_1_1_i686.whl (5.7 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ i686

gncpy-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

gncpy-2.0.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (5.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

gncpy-2.0.0-cp38-cp38-macosx_10_9_x86_64.whl (5.5 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

gncpy-2.0.0-cp37-cp37m-musllinux_1_1_x86_64.whl (5.6 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

gncpy-2.0.0-cp37-cp37m-musllinux_1_1_i686.whl (5.7 MB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ i686

gncpy-2.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

gncpy-2.0.0-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl (5.3 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ i686

gncpy-2.0.0-cp37-cp37m-macosx_10_9_x86_64.whl (5.5 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page