Git Product home page Git Product logo

samples's Introduction

OpenUAV Playbook example (leader-follower)

IMAGE ALT TEXT HERE

The video shows an example with a leader, and two followers with different controllers. The source payload archived version of https://github.com/Open-UAV/samples/tree/master/leader-follower/ .

The folder structure for the template simulation payload is shown below. Any simulation needs six inputs listed below.

  • drone models
  • simulation world
  • setup (initialization)
  • measure (of performance)
  • controllers
  • parameters
leader-follower/
└── simulation
    ├── inputs
    │   ├── controllers
    │   │   ├── test_1_Loop.py
    │   │   └── test_2_Follow.py
    │   ├── measures
    │   │   └── measureInterRobotDistance.py
    │   ├── models
    │   │   └── f450-1
    │   │       ├── f450-1.sdf
    │   │       └── model.config
    │   ├── parameters
    │   │   └── swarm.sh
    │   ├── setup
    │   │   ├── testArmAll.py
    │   │   └── testCreateUAVSwarm.py
    │   └── world
    │       └── empty.world
    └── run_this.sh

Shown below is an example simulation from remote Ubuntu box with the SSH keys to talk to the OpenUAV Playground server. The username is 'jdas', replace with your own username when trying to run on your machine.

:~$ name=openuav-${3:-`date +%s`}-$(uuidgen) 
:~$ scp -r /home/nsf/PycharmProjects/Open-UAV/examples/leader-follower/simulation/ [email protected]:~/"simulation-"$name
:~$ ssh [email protected] "nvidia-docker run -dit -v ~/\"simulation-\"$name/:/simulation --name $name openuav-swarm-functional"

You can combine the above three commands.

:~$ name=openuav-$(uuidgen)-${3:-`date +%s`} && echo $name && scp -r /home/nsf/PycharmProjects/Open-UAV/examples/leader-follower/simulation/ [email protected]:~/"simulation-"$name && ssh [email protected] "nvidia-docker run -dit -v ~/\"simulation-\"$name/:/simulation --name $name openuav-swarm-functional"

The logs are stored in the simulation/outputs folder as a list of CSV files.

jdas@airborne:~$ ls  ~/simulation/outputs/
measure.csv  uav1.csv  uav2.csv  uav3.csv

Running your first simulation

  1. Talk to the project administrators for an account on the OpenUAV server and set up SSH keys

samples's People

Contributors

darknight-007 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.