GithubHelp home page GithubHelp logo

sjsu-ad / test_gsl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ntwong0/test_gsl

0.0 4.0 0.0 23 KB

Learn by doing - GNU Scientific Library, and Generating Covariance Matrices for Kalman Filters

Makefile 0.23% C++ 75.71% C 24.06%

test_gsl's Introduction

test_gsl AKA covar

0. First things

Ensure that gsl is installed: sudo apt-get install libgsl2 libgsl-dev libgsl-dbg gsl-bin

1. Getting the package

Do the following to add to the src of your ROS workspace (i.e. catkin_ws if you kept the dirname from ROS tutorial), almost as you would any other package - we're going to give this repo's dirname "covar" instead of "test_gsl".

  • cd path/to/catkin_ws/src; git clone https://github.com/ntwong0/test_gsl.git covar

2. Installation

catkin_make as usual:

  • cd path/to/catkin_ws; catkin_make

You already have the loam_velodyne package installed, right?

3. Running

No launch file has yet been prepared, so use rosrun instead, and don't forget to source the setup.bash file:

  • cd path/to/catkin_ws; source devel/setup.bash
  • rosrun covar covar_node

4. Service calls - this is why you "bought" it

Generate the covariance matrix with the following:

  • For pose only, 100 samples
    • rosservice call /gen_pose_covar 100
  • For twist only, 100 samples
    • rosservice call /gen_twist_covar 100
  • For pose and twist, 100 samples pose and 200 samples twist
    • rosservice call /gen_both_covar 100 200

999. Dummy compilation note:

To compile, do the following:

g++ -std=c++11 src/file.cpp -lgsl -lgslcblas -Iinclude

Header files of the gsl library are located at /usr/include/gsl

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.