Giter VIP home page Giter VIP logo

crazyflie_test's Introduction

Crazyflie_test

This is a project to fly crazyflie drone(s) autonomously, using Optitrack Motive motion capture system. The code is meant to be run on Ubuntu 16.04. However, using NatNetClient_Old.py and corrections to "COM" port names in the Main.py should lead to the correct version for Windows-based usage. The project is currently under development and probably has not been cleaned or a few bugs may still exist. The control algorithm is based on Keyvan Mohammadi's paper.

Prequisites

  1. Crazyflie Python Library
  2. SciPy library
  3. Plotly Python Library
  4. Setup Ethernet connection using LAN cable between Ubuntu and Windows (which has Motive). See this video.

Other useful notes:

  1. To run Main.py on Ubuntu, use the current NatNetClient.py and pay specific attention to the NatNet Version. For example, with our device we had to use version 2.9.0.0. optitrackThread = NatNetClient(ver=(2, 9, 0, 0), quiet=True)

  2. In our setup, an Emergency-Stop button was used which was defined in EStop_failsafe = EStop('/dev/ttyUSB0', 115200). In windows, it will be defined as EStop_failsafe = EStop('COM5', 115200)

  3. In our setup, for experimental purposes the first rigid-body (or the one with three marker) is assumed to be the payload, at least for now. Please see the definition of receiveRigidBodyFrame function.

  4. The callback function is different for Windows-based code. Use the following in your Main.py:

def receiveNewFrame( frameNumber, markerSetCount, unlabeledMarkersCount, rigidBodyCount, skeletonCount,
                    labeledMarkerCount, latency, timecode, timecodeSub, timestamp, isRecording, trackedModelsChanged ):
    pass

Using the codes

  1. Number of gains in kPos in PB_Control.py, xOffsets and yOffsets in Trajectory_Planner, numCopters in Main for single-drone or in Main_multi_test must be modified accordingly.

crazyflie_test's People

Contributors

aligriv avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

crazyflie_test's Issues

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.