Coder Social home page Coder Social logo

drone_stick's Introduction

DroneStick

Flight code to control a swarm of Crazyflie drones via externally tracked controllers.

Example usage

The flight software from this repository requires external positioning system for drones to fly. It could be a motion capture system, for example Vicon. The external controller could be any object with known position and orientation, for example, you can use a VR controller (its pose is estimated by HTC Vive base stations) or even another drone, tracked by motion capture system.

Vicon motion capture

In case if you use a motion capture system for crazyflie localization, install a ROS driver, crazyflie_ros, and vicon_bridge follow the instructions bellow:

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
git clone https://github.com/ethz-asl/vicon_bridge.git
git clone https://github.com/whoenig/crazyflie_ros.git
cd crazyflie_ros
git submodule init
git submodule update

Build package inside the workspace.

cd ~/catkin_ws/
catkin_make
source ~/catkin_ws/devel/setup.bash

Clone the repository.

cd ~/Desktop/
git clone https://github.com/RuslanAgishev/drone_stick

Adjust drone URI you use in the launch file here.

And use our repository alongside with crazyflie_ros driver.

cp -r ~/Desktop/drone_stick/flight_code/scripts/interactive_control_vr ~/catkin_ws/src/crazyflie_ros/crazyflie_demo/scripts/
cp ~/Desktop/drone_stick/flight_code/launch/connect1.launch ~/catkin_ws/src/crazyflie_ros/crazyflie_demo/launch

Interactive control example

Here we map a VR controller movements to drone position commands. In order to obtain VR controller pose information, follow the next steps:

  1. Install HTC Vive SteamVR.
  2. pip2 install openvr OR download the installer.
  3. Setup VR environment. You can follow an example from Bitcraze.

Connect to crazyflie:

roslaunch crazyflie_demo connect1.launch

And run the flight node:

rosrun crazyflie_demo interactive_control_vr.py

drone_stick's People

Stargazers

 avatar

Watchers

 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.