Skip to main content

A library to do inertial navigation

Project description

ins_nav

Actions Status PyPI - License PyPI - Python Version PyPI - Format PyPI

This library is written independent of any specific IMU. The idea is you pass in the appropriate measurements and error terms from your IMU and get the desired output.

This is still under heavy development

Install

The suggested way to install this is via the pip command as follows:

pip install ins_nav

Development

To submit git pulls, clone the repository and set it up as follows:

git clone https://github.com/MomsFriendlyRobotCompany/ins_nav
cd ins_nav
poetry install

Usage

  • ins_nav.wgs84 contains a bunch of useful constants: semi-major axis, gravity, etc
  • ins_nav.ahrs creates an attitude and heading reference system (AHRS) using accelerometers, gyroscopes, and magnetometers
  • TiltCompensatedCompass contains the mathematics of an IMU with accelerometers, gyroscopes, and magnetometers
  • ins_nav.transforms has a bunch of reference frame conversions: ecef2llh, llh2ecef, etc

Transforms (in work)

Earth Centered Frames

  • ECI: Earth-centered Inertial is an inertial frame where Newton's laws of motion apply. It has its origin at the center of the Earth with:
    • x-axis in the direction of the vernal equinox
    • z-axis is parallel to the rotation of the Earth
    • y-axis completes the right-handed coordinate system
  • ECEF: Earth-centered, Earth-fixed has the same origin as ECI, but rotates with the Earth and the x-axis points towards the zero/prime meridian. The ECEF frame rotates at 7.2921E-5 rads/sec with respect to the ECI frame
  • LLA(H): Latitude, Longitude, Altitude(Height) is similar to the ECEF frame, but is the frame historically used for navigation

Navigation Frames

  • ENU: East North Up a local navigation frame, where up and the z-axis align, but clockwise right turns are negative
  • NED: North East Down a local navigation frame, where up and the z-axis are opposite, but the direction of right (clockwise) turns are in the positive direction and is the standard vehicle roll-pitch-yaw frame

Other Good Navigation Libraries

  • lat_lon_parser allows you to convert between measurements formats like -45 deg 12' 36.0 sec, 45.21 W, and -45.21 easily
  • nvector has a lot of capability
  • navpy appears to be simple grad student work but code is well referenced (BSD)
  • navigation does GPS navigation and way points

Todo

  • extended kalman filter
  • navigation equations
  • error model

Change Log

Date Version Notes
2020-03-28 0.6.0 moved to poetry
2019-07-05 0.5.1 cleanup and new functions
2017-07-07 0.0.1 init

The MIT License (MIT)

Copyright (c) 2017 Kevin J. Walchko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

ins_nav-0.6.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

ins_nav-0.6.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file ins_nav-0.6.0.tar.gz.

File metadata

  • Download URL: ins_nav-0.6.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Darwin/21.3.0

File hashes

Hashes for ins_nav-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2336fce226af3dae2e0c6a835292849a5ef41e13e090cb8ecdaa84ec7d6b8cd2
MD5 dc87c5c61a371b5e15915847de0488a7
BLAKE2b-256 8c6bc9f3ab75bfec9027af05a94dfbbd54942c5acd89a865f430a8a5a48554b5

See more details on using hashes here.

File details

Details for the file ins_nav-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: ins_nav-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Darwin/21.3.0

File hashes

Hashes for ins_nav-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2032749a4567171bd9f4e99ca64bc50efc1e9772fd9a515887b092cee97e1955
MD5 8dc6e935fe32638072e534598204f9ae
BLAKE2b-256 9ae9cd2437d00668b25a567f2397bfbd1e4aaa945869c8901a664f3305e8844c

See more details on using hashes here.

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