/crazyflie-osc

An OSC server to control crazyflie drones

Primary LanguagePythonThe UnlicenseUnlicense

crazyflie-osc

An OSC server to control crazyflies

NOTE : OSC documentation in the project wiki

Functionalities :

  • Drone connection

  • Sending 3D position setpoints

  • LPS configuration

  • Drone param system

  • Drone logging system

  • OSC debugging system

  • Unit tests

  • Sphinx documentation

How to install :

LINUX :

  • install git, python3, pip3
  • install virtualenv (pip package)
  • clone this repository
  • create a new virtualenv and activate it
  • install python dependencies pip3 install -r requirements

WINDOWS :

NOTE : You don't need to clone this repository or anything, the script will take care of this.

  • download this file as a .bat file
  • run it as admin. (If they ask you things and you don't know what to do, use the defaults)
  • install the crazyradio drivers :
    • plug in the radio
    • run zadig (win+r, then type zadig, then enter)
    • select the crazyradio
    • select the libusb-win32 driver
    • click on "install driver"
    • repeat for each radio

How to run :

LINUX :

  • run the server cd src; ./server.py

WINDOWS :

  • run the file name run.bat

How to test :

NEW WAY :

In order to use (or manually test) this project, you should use my Unity3D client.

OLD WAY :

No unit tests are currently present, but manual test client and server are present.

  • run both of them : cd manual_tests; ./test_client.py and cd manual_tests; ./test_server.py

  • write commands in the test_client console.

  • alternatively, you can run ./test_client.py --file full_run.py in order to execute a pre-planned connection (you will need changes in order to accomodate to your setup)