Giter Site home page Giter Site logo

mavhub's Introduction

MAVHUB (Micro Air Vehicle HUB)

MAVHUB is a simple C++ framework to abstract the communication between multiple components of a robotic system. Therefor it supports multiple protocols and has some wrapper classes to access I/O devices or to realize your robotic algorithm.

Dependencies

Required

  • automake
  • pkg-config

Optional

Configuration

Additional libraries

  • MAVLink:

      ./configure CPPFLAGS="-I$(FULL_PATH_TO_MAVLINK)/include/huch"
    
  • MKHUCHLink:

      ./configure CPPFLAGS="-I$(FULL_PATH_TO_MKHUCHLINK)"
    

Compiler flags

To enable optimization level 2 and to get rid of the debug symbols, enter

./configure CXXFLAGS="-O2"

Cross compilation

To cross compile for an arm platform with the angstrom SDK run

./configure --build=`config.guess` --host arm-angstrom-linux-gnueabi 

Two variables for pkg-config need to be set for proper operation. The paths given below are for the older oe directory layout. In recent versions this has to be changed to

build/tmp-angstrom_2008_1/sysroots/armv7a-angstrom-linux-gnueabi

for e.g. the beagle-board.

PKG_CONFIG_PATH=PATH_TO_OEROOT/tmp/staging/armv5te-angstrom-linux-gnueabi/usr/lib/pkgconfig
PKG_CONFIG_SYSROOT_DIR=PATH_TO_OEROOT/tmp/staging/armv5te-angstrom-linux-gnueabi

Unit Test Framework

To compile the test program in the tests directory, enable test support via

./configure --enable-tests=yes

If you get an error on a 64 bit machine saying that configure could not find the version of the library, adding of

--with-boost-libdir=/usr/lib/x86_64-linux-gnu/

might help.

Examples

  1. On x86 architecture you might want to enter

     mkdir build-i686
     cd build-i686
     ../configure CXXFLAGS="-O2" \
     	CPPFLAGS="-I/home/user/git/mavlink/include/huch \
     	-I/home/user/git/mkhuchlink"
    
  2. For a typical beagleboard or gumstix configuration run

     mkdir build-arm
     cd build-arm
     ../configure --build=`../auxdir/config.guess` \
     	--host arm-angstrom-linux-gnueabi \
     	CXXFLAGS="-O2 \
     	CPPFLAGS="-I/home/user/git/mavlink/include/huch \
     	-I/home/user/git/mkhuchlink"
    

Compilation

After configuration, just type

make

and you will find the binary under src/mavhub.

Documentation

Documentation can be generated using Doxygen. Please run

make doxygen-doc

and have a look at doc/html/index.html.

Usage

mavhub [options]

Options

-c <file>, --config <file>    open config file <file>
-h, --help                    print usage summary

Settings

Settings can be stored in an ini-like file. Examples can be found in the mavhub.d directory. To start, just enter

./src/mavhub -c ../mavhub.d/mavhub.conf

GStreamer plugins

To use own gstreamer plugins or plugins which aren't installed in the GStreamer search path, you have to set the GST_PLUGIN_PATH to the directory containing the plugins, e.g.

export GST_PLUGIN_PATH=/home/user/git/mavhub/lib/gstreamer/
./src/mavhub -c ../mavhub.d/mavhub.conf

Unit Test Framework

A complete list about the supported paremeters can be found in the boost runtime parameter reference. For example, a more verbatim output can be reached by

./tests/test_mavhub --log_level=message

To run only a subset of tests use the run_test argument

./tests/test_mavhub --log_level=test_suite --run_test=hub_camera_tests,hub_slam_tests/tracker_test

FAQ

Where to get the sourcecode?

git clone https://github.com/calihem/mavhub.git

How can I manually rebuild the autotools files?

aclocal -I m4
automake
autoconf

mavhub's People

Contributors

calihem avatar cb-314 avatar x75 avatar

Watchers

 avatar  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.