Skip to content

A simple Kalman Filter for points (linear model) for ROS

License

CesMak/simple_kf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_kf

Overview

This package subscribes to /cam_pose_in_world (geometry_msgs/PoseWithCovarianceStamped) to get the measurements for internal Kalman Filtering. Kalman Filtering is done using opencv's kf library. The result is published as /cam_pose_in_world_kf (alfons_msgs/KfState) which contains the estimated position, velocity and acceleration.

Author: Markus Lamprecht
Maintainer: Markus Lamprecht, 2f4yor@gmail.com

alfons

Installation

Dependencies

This software is built on the Robotic Operating System (ROS), which needs to be installed first. Additionally, this package depends on following software:

Building

In order to install this package, clone the latest version from this repository into your catkin workspace and compile the package using catkin_tools

mkdir -p catkin_ws/src
cd catkin_ws/src/
git clone git@github.com:CesMak/simple_kf.git 
cd ..
catkin init 
catkin build
source devel/setup.bash

Basic Usage

  • A linear model is used as defined in src/kalman_filter.cpp
    // [ 1  0  0  dt   0   0  1/2*dt^2 0        0       ]
    // [ 0  1  0   0  dt   0  0        1/2*dt^2 0       ]
    // [ 0  0  1   0   0  dt  0        0        1/2*dt^2]
    // [ 0  0  0   1   0   0  dt       0        0       ]
    // [ 0  0  0   0   1   0  0        dt       0       ]
    // [ 0  0  0   0   0   1  0        0        dt      ]
    // [ 0  0  0   0   0   0  1        0        0       ]
    // [ 0  0  0   0   0   0  0        1        0       ]
    // [ 0  0  0   0   0   0  0        0        1       ]
  • Use tsrc/kalman_filter.cpp to adjust it for measurement and process noise.
  • You can also adjust the launch file launch/start_simple_kf.launch to test this package with a bag in /data

Main Launch file

roslaunch simple_kf start_simple_kf.launch

License BSD

If you want to use this package please contact: me.

TODO's

-> if motion blur or if no marker detected somehow stops does not predict further....

About

A simple Kalman Filter for points (linear model) for ROS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published