• Stars
    star
    1,036
  • Rank 44,478 (Top 0.9 %)
  • Language
    Jupyter Notebook
  • Created almost 11 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Some Python Implementations of the Kalman Filter

Multidimensional Kalman-Filter

See Vimeo for some Explanations. Or if you want to start with the basics, you might want to take a look at these Blogposts:

Some Python Implementations of the Kalman Filter

Kalman Filter Step

Kalman Filter with Constant Velocity Model

Situation covered: You drive with your car in a tunnel and the GPS signal is lost. Now the car has to determine, where it is in the tunnel. The only information it has, is the velocity in driving direction. The x and y component of the velocity (xË™ and yË™) can be calculated from the absolute velocity (revolutions of the wheels) and the heading of the vehicle (yaw rate sensor).

View IPython Notebook ~ See Vimeo

Kalman Filter with Constant Acceleration Model

in 2D

Situation covered: You have an acceleration sensor (in 2D: $\ddot x¨ and y¨) and try to calculate velocity (x˙ and y˙) as well as position (x and y) of a person holding a smartphone in his/her hand.

View IPython Notebook ~ See Vimeo

Second example is the same dynamic model but this time you measure the position as well as the acceleration. Both values have to be fused together with the Kalman Filter. Situation covered: You have an acceleration sensor (in 2D: x¨ and y¨) and a Position Sensor (e.g. GPS) and try to calculate velocity (x˙ and y˙) as well as position (x and y) of a person holding a smartphone in his/her hand.

View IPython Notebook ~ See Vimeo

in 3D

Third example is in 3D space, so the state vector is 9D. This model is for ball tracking or something else in 3D space.

Kalman 3D

View IPython Notebook

Adaptive Kalman Filter with Constant Velocity Model

Here the Measurement Covariance Matrix R is calculated dynamically via the maximum likelihood of the acutal standard deviation of the last measurements.

View IPython Notebook

Kalman Filter for Motorbike Lean Angle Estimation

Also know as the Gimbal Stabilization problem: You can measure the rotationrate, but need some validation for the correct lean angle from time to time, because simply an integration of the rotationrate adds up a lot of noise. There comes the vertical acceleration, which is a pretty good estimator for the angle in static situations. This Kalman Filter implementation fuses both together with some adaptive components.

View IPython Notebook

Extended Kalman Filter

EKF Filter Step

Extended Kalman Filter with Constant Turn Rate and Velocity (CTRV) Model

Situation covered: You have an velocity sensor which measures the vehicle speed (v) in heading direction (ψ) and a yaw rate sensor (ψ˙) which both have to fused with the position (x & y) from a GPS sensor.

State Vector

View IPython Notebook ~ See Vimeo

Extended Kalman Filter with Constant Heading and Constant Velocity (CHCV) Model

Situation covered: You have the position (x & y) from a GPS sensor and extimating the heading direction (ψ) and the velocity (v).

View IPython Notebook

Extended Kalman Filter with Constant Turn Rate and Acceleration (CTRA) Model

Situation covered: You have an acceleration and velocity sensor which measures the vehicle longitudinal acceleration and speed (v) in heading direction (ψ) and a yaw rate sensor (ψ˙) which all have to fused with the position (x & y) from a GPS sensor.

View IPython Notebook

License

CC-BY-SA2.0 Lizenz

More Repositories

1

FFT-Python

FFT Examples in Python
Jupyter Notebook
129
star
2

3D-OccupancyGrid-Python

An Occupancy Grid Representation in Python
Jupyter Notebook
70
star
3

immoscraper

Immoscout24.de scraper and data analytics
Jupyter Notebook
48
star
4

PyData-Berlin-2014-Kalman

Talk at PyData Berlin Conference
Python
27
star
5

Pandas-NMEA

Parse NMEA Sentences with Python Pandas
Python
15
star
6

Demoteilnehmer-Counter

Zählt Menschen im Videobild
Python
12
star
7

PegidaSprache

Analyse des Pegida facebook Korpus
Python
10
star
8

Matlab-NMEA-File-Reader

Reads NMEA coded GPS Data from .log File to Matlab
MATLAB
10
star
9

RotationMatrix

Calculate ZYX Rotation Matrix DIN70000
Python
8
star
10

BasemapExampleGallery

Showing an example for some Matplotlib Basemap Projections
Python
6
star
11

Robot-Kinematic

Forward and Backward Kinematics with Denavit-Hartenberg Formalism
Python
6
star
12

OSM2Pandas

Overpass-API to Pandas Dataframe
Python
4
star
13

Pandas-Stoxx-Europe-600

Some Financial Analysis Stuff with Python Pandas
Python
4
star
14

ICINCO-2014

Paper for 11th International Conference on Informatics in Control, Automation and Robotics (ICINCO)
Python
3
star
15

WikiCFPWorldMap

Crawl WikiCFP for conferences, create a .kml and render maps
Python
2
star
16

Datenspuren2014-Talk

Hack the (Gesundheits-)System - wenigstens 'n bisschen
Python
2
star
17

balzer82.github.io

Github Site
Python
1
star
18

covid-germany-predictor

Predict the next days of the Covid-19 infected in Germany
Jupyter Notebook
1
star
19

iEEEConferenceWorldMap

Crawling the iEEE Conference Search and displays a map
Python
1
star
20

LatLon2Meter

Python Script to calculate the Distance between two Lat/Lon Points
Python
1
star
21

Datenspuren2015

Datenspuren2015 Talk: "Rise of the Machines: Sie beginnen zu lernen."
Jupyter Notebook
1
star