Git Product home page Git Product logo

drone_employee_ros's Introduction

DroneEmployee ROS stack

This repository contains ROS packages for the DroneEmployee project.

Hardware requirements

  • UAV with MAVLink-compatible flight controller (APM, PX4)
  • GPS/GLONASS module
  • Wireless Internet provider (LTE/3G modem)
  • Linux-compatible single board computer (RaspberryPi2)

In other case you can use the Software In The Loop solution for testing described down.

Installation

The AIRA ROS Bridge instance is needed, installation and simple usage described there.

Software In The Loop instance installation described there.

The next, create workspace and clone the repo:

$ mkdir workspace/src -p
$ cd workspace/src && catkin_init_workspace
$ git clone https://github.com/DroneEmployee/drone_employee_ros.git
$ cd ..

Install dependecies by rosdep:

$ rosdep install --from-paths src --ignore-src --rosdistro indigo -y

Build the packages:

$ cakin_make

Solidity contracts

The smart contract should be registered before using the Drone Employee. The contracts small_atc.sol and drone_employee.sol from contracts repository should be compiled by any solidity compiler, online compier for example. Compiled contracts passed to network by any Ethereum client, returned contract address in future used by AIRA ROS Bridge as argument.

Launch

Builded workspace should be added to ROS env:

$ source workspace/devel/setup.sh

The next you should run GEth node and AIRA ROS Bridge:

$ geth &
$ cd /path/to/aira_ros_bridge 
$ node start.js CONTRACT_ADDRESS 

The Air Traffic Controller

Simple run the launch:

$ roslaunch small_atc atc.launch

The Drone Employee

Simulation

Run the SITL:

$ cd /path/to/ArduCopter
$ export PATH=$PATH:../ardupilot/Tools/autotest
$ fg_quad_view.sh & sim_vehicle.sh --map --console

Launch the ROS node:

$ roslaunch drone_employee apm_sitl.launch 

Hardware

Difference from upper is a using real ArduPilot or PX4 hardware connected by UART or USB port. For using serial port in launch file you should set the fcu_url parameter:

$ roslaunch drone_employee apm_sitl.launch fcu_url:=/dev/ttyUSB0:115200

The argument is a serial device and baudrate.

drone_employee_ros's People

Contributors

akru avatar ensrationis avatar simonpavlov avatar

Stargazers

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