Coder Social home page Coder Social logo

crisgao / encoder_imu_ekf_ros Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nkuwangfeng/encoder_imu_ekf_ros

0.0 0.0 0.0 250 KB

ROS package to fuse together IMU and wheel encoders in an EKF. Implemented in both C++ and Python. C++ version runs in real time.

License: MIT License

C++ 39.51% Python 48.05% CMake 12.43%

encoder_imu_ekf_ros's Introduction

encoder_imu_ekf_ros

ROS package to fuse together IMU (accelerometer + gyroscope) and wheel encoders in an EKF.
Updates position, velocity, orientation, gyroscope bias and accelerometer bias. Implemented in both C++ and Python. C++ version runs in real time. I wrote this package following standard texts on inertial navigation, taking the data directly from gyroscopes and accelerometers in the EKF state update step. Surprisingly, there aren't many such implementations (including robot_localization). This is probably because the proprietary algorithms onboard IMU's are made by PROs and the attitude from there can be used directly. Also, most people use low grade IMUs that are not capable of integrating the accelerometer in a useful way (high gyro drift). So if your IMU isn't as good as an XSens grade IMU, I don't think this package will work for you.

GitHub Logo

Instructions:

  1. clone package into catkin_ws/src
  2. catkin_make
  3. roslaunch encoder_imu_ekf_ros cpp_aided_nav.launch
  4. open rviz, create an axis with frame IMU to see the rover driving around.

External packages needed: eigen

  • subscribes to /imu/data for IMU data
  • subscribes to /wheels for encoder data (int64 array of encoder ticks)

Edit noise parameters in code file as necessary. Will move all parameters to launch file soon. Takes 5 seconds to initialize IMU orientation.

NOTE*** More sensors can be added given you can add a subscriber, derive the necessary measurement and noise matrices, and finally call the general 'ekf' function. We will be adding a sun-sensor onto our rover shortly. Theoretical derivation is in Derivation.pdf.

Derivation was done following: Aided Navigation: GPS with High Rate Sensors' by Jay A. Farrell, chapter 10.

encoder_imu_ekf_ros's People

Contributors

varshak314 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.