User Tools

Site Tools


projects:crazyflie:pc_utils:install

This is an old revision of the document!


Crazyflie PC client installation

The Crazyflie PC utilities are developed using Python 2.7. The Crazyflie library is used from the command line tools as well as a graphical user interface. On Windows an installer permits to run the client without having to install any dependencies, on linux the client can easily be run from source code.

Installing on windows

Download and run the installer from the binaries download page. A link called “Crazyflie client” will be created in the start menus.

To install the Crazyradio dongle follow the instruction Install crazyradio driver on Windows 7. The procedure is similar for windows XP to 8.

Installing on Linux

The following has to be installed for the PC utilities to work:

  • Python 2.7
  • pyGame
  • PyUSB (0.X or 1.X)
  • libusb

For the graphical userinterface to work the following is also needed:

  • Python bindings for Qt4

Fedora

The following has been tested on Fedora 16 to 18. Note that this will pull in a lot of dependencies.

sudo yum install pygame pyusb PyQt4

Ubuntu

The following has been tested on Ubuntu 10.04/11.10/12.04. Note that this will pull in a lot of dependencies

sudo apt-get install python2.7 python-usb python-pygame python-qt4

Fix udev premissions on Linux

In order to fix the permissions so it's possible to use the USB Radio without being root do the following steps.

sudo groupadd plugdev
sudo usermod -a -G plugdev <username>

Create a file named /etc/udev/rules.d/99-crazyradio.rules and add the following:

SUBSYSTEM=="usb", ATTRS{idVendor}=="1915", ATTRS{idProduct}=="7777", MODE="0664", GROUP="plugdev"

Restart the computer and you are now able to access the USB radio dongle without being root.

Running the client

Decompress the source code in a folder, open a console and type:

cd <cfclient folder>
python2 bin/cfclient

Running source code on Windows

This procedure is required if you want to develop with the Crazyflie client on Windows. If you just want to run and fly the Carzyflie follow the instruction to install the client above.

Windows XP

The following has to be downloaded/installed for the PC utilities to work:

For the graphical userinterface to work the following is also needed:

Windows Vista/7 32/64-bit

Even if you have a 64-bit install you should download the 32-bit versions of the libraries since this makes everything easier.

The following has to be downloaded/installed for the PC utilities to work:

For the graphical userinterface to work the following is also needed:

Installing on Mac OSX

Caveat: I don't know what I'm doing so this may or may not be correct information, but I figure some potentially wrong information is better than simply TODO. Also, this wiki makes for very hard formatting (e.g. no code format) - just sayin'.

NOTE: For each of the following, make sure you grab the correct files for your specific version of OSX (i.e. Lion vs Mountain Lion)

  1. Open Terminal and see if Python
  2. Install Python
  3. Install Homebrew
  4. Use Homebrew to install libusb
    • type: brew install libusb
  5. (You may also need to install Command Line Tool)
  6. Install pyGame
    1. (alternatively, there maybe a Homebrew install method)
  7. Install pyQT4
    1. (though this is how far I got before getting stuck)
  8. Download CrazyFlie Client
    • start client by typing:
    • python bin/cfclient
projects/crazyflie/pc_utils/install.1367797280.txt.gz · Last modified: 2015-07-15 16:30 (external edit)