Code Monkey home page Code Monkey logo

viconmavlink's Introduction

ViconMAVLink

ViconMAVLink is an application to provide indoor positioning for networked robots using Vicon motion capture measurements. It is primarily used in the Intellegent Robotics Lab at the University of Illinois as a tool to simulate indoor GPS for Linux-based autonomous vehicles, such that you can operate autonomous vehicles indoors:

A fleet of UAVs flying with simulated GPS:

Heterogeneous autonomous vehicles controlled via tablet groundcontrol:

Dependencies

ViconMAVLink uses the following libraries:

  • Vicon DataStream SDK: to obtain real-time, high-precision positioning measurement for objects.
  • MAVLink library: to encode/unpack UDP data with the MAVLink protocol.
  • GeographicLib: to convert positioning data between local coordinates and GPS locations.
  • QT5 (core gui widgets network concurrent): to provide a GUI, networking and multithreading.

As long as you have all required libraries added to the Qt project file. This application can be built for multiple platforms in QtCreator.

User's Guide

You can run this app directly on the Vicon server computer or on any other computers as long as they are in the same network as the Vicon server computer. After you launch the application, the main window will appear. But, the capture objects list is empty because you haven't connected to Vicon yet.

  • The HostAddress is the IP address of the Vicon server computer.
  • The HostPort usually is 801. This is the port used by Vicon.
  • The North mapping: Vicon uses a Forward-Left-Up coornidates while the LOCAL_POSITION_NED message in MAVLink uses North-East-Down, to make the situation more confusing, GeographicLib uses a East-North-Up coordinates. To convert position data correctly, you need to map your Vicon axis first. Assuming you calibrated Vicon according to the manual, just choose the correct half-axis that corresponds to North then this app will handle the mapping correctly.

To connect to Vicon: Click Menu->Connect Vicon then objects that are captured by Vicon will appear in the Captured Objects List.

To launch a sender for a robot: Choose an object then Click Start a MavLink Sender, the Sender's window appears. After you start sending data, the Rate slider is still adjustable to change the sending rate on-the-fly.

You may launch multiple senders for a fleet of robots:

Developer's Guide

The Station object will launch a separate thread to communicate with Vicon. A Writer/Reader lock is used to synchronize data. The Station object is the writer and Sender objects are the readers who fetch raw measurement from the Station. The raw measurement includes position (unit: mm) and a quarternion encapsulated in a mavlink_att_pos_mocap_t object. Since Vicon does not output velocities, the Sender uses a linear Kalman filter to compute a mavlink_local_position_ned_t object with positions and velocities. The GPS_HIL data is then computed with the local position object. The Station and Sender objects and windows use the Model-View-Controller pattern.

viconmavlink's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

viconmavlink's Issues

Which sensors are you using?

Hello, I'm trying to find a method to fly indoors with my PX4 drone. I'm looking at your repo and trying to understand how it works. How can you define indoor coordinates without any particular sensor installed on the drone?

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.