User Tools

Site Tools


doc:crazyflie:host:mac:macports

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:crazyflie:host:mac:macports [2014-12-09 12:05]
arnaud [Prerequisite]
doc:crazyflie:host:mac:macports [2019-09-05 15:32]
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page is deprecated and is moved to the main Bitcraze website. Please go to:
  
 + [[
 +https://​www.bitcraze.io/​docs/​crazyflie-clients-python/​master/​macports/​
 +]]
 +
 +</​WRAP>​
 +
 +====== Installing Crazyflie client with macPorts ======
 +
 +This procedure has been tested on a just-installed Yosemite installation. Commands in code blocks have to be executed in a terminal window.
 +
 +===== Prerequisite =====
 +
 +Download and install macport installer from https://​www.macports.org/​install.php
 +
 +Install the command line developer tools:
 +
 +<​code>​
 +xcode-select --install
 +</​code>​
 +
 +I found that installing only the command line developer tools is enough for Crazyflie client dependencies. However installing Xcode seems to be recommended. I installed the command line developer tools:
 +
 +{{:​doc:​crazyflie:​host:​mac:​image03.png|}}
 +{{:​doc:​crazyflie:​host:​mac:​image00.png|}}
 +{{:​doc:​crazyflie:​host:​mac:​image01.png|}}
 +
 +Update mac ports
 +
 +<​code>​
 +sudo port selfupdate
 +</​code>​
 +
 +Update already installed ports (none on a fresh installation)
 +
 +<​code>​
 +sudo port upgrade outdated
 +</​code>​
 +
 +===== Mandatory dependencies =====
 +Install Crazyflie client dependencies
 +
 +<​code>​
 +sudo port install libusb python27 py27-pyusb py27-SDL2 py27-pyqt4
 +</​code>​
 +
 +Most but not all packages are pre-compiled so this installation takes some time. It took about 12 minutes for me, YMMV.
 +
 +{{:​doc:​crazyflie:​host:​mac:​image05.png|}}
 +
 +Now you are able to clone and run the Crazyflie client!
 +
 +<​code>​
 +cd Documents
 +git clone https://​github.com/​bitcraze/​crazyflie-clients-python
 +cd crazyflie-clients-python
 +/​opt/​local/​bin/​python2.7 bin/​cfclient
 +</​code>​
 +
 +{{:​doc:​crazyflie:​host:​mac:​image04.png|}}
 +
 +===== Optional dependencies =====
 +
 +If you want to use the plotter tab, to graph in real time Crazyflie log variables, you need to install pyqtgraph. It installs a lot of dependencies and took about 5 minutes (The ports install time varies a lot depending on how many ports are pre-compiled):​
 +
 +<​code>​
 +sudo port install py27-pyqtgraph
 +</​code>​
 +
 +{{:​doc:​crazyflie:​host:​mac:​image02.png|}}
 +
 +You can now access the plotter tab:
 +
 +<​code>​
 +/​opt/​local/​bin/​python2.7 bin/​cfclient
 +</​code>​
 +
 +{{:​doc:​crazyflie:​host:​mac:​image06.png|}}
 +
 +===== Troubleshooting =====
doc/crazyflie/host/mac/macports.txt · Last modified: 2019-09-05 15:32 by kimberly