[SOLVED]CF client installation for Ubuntu 14.04

Firmware/software/electronics/mechanics
Post Reply
rgalvez
Beginner
Posts: 8
Joined: Mon Jan 18, 2016 4:40 pm

[SOLVED]CF client installation for Ubuntu 14.04

Post by rgalvez »

Hi guys, I am using crazyflie ROS driver and I want to install CF client for Ubuntu 14.04 in able to assign different addresses to the quad. To do this I want to install first the dependencies. I did the following steps.
1.Opened a terminal and typed "sudo apt-get install python3 python3-pip python3-pyqt4 python3-zmq python3-pyqtgraph" as instructed here https://github.com/bitcraze/crazyflie-clients-python but there’s an error "Unable to locate package python3-pyqtgraph" so I did not include python3-pyqtgraph in the installation. The installation was successful then I typed " sudo pip3 install pyusb==1.0.0b2 " and it was installed successfully.
2. I want to launch the GUI so I typed "python bin/cfclient" but the error was "python: can't open file 'bin/cfclient': [Errno 2] No such file or directory" What do you think the solution to this error?Thanks in advance!
Last edited by rgalvez on Mon Feb 15, 2016 2:04 pm, edited 1 time in total.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: CF client installation for Ubuntu 14.04

Post by chad »

rgalvez wrote:2. I want to launch the GUI so I typed "python bin/cfclient" but the error was "python: can't open file 'bin/cfclient': [Errno 2] No such file or directory" What do you think the solution to this error?Thanks in advance!
You need to be inside the crazyflie-clients-python directory for that command to work. The "bin/cfclient" part of that command refers to the "bin" directory inside crazyflie-clients-python directory. The cfclient script is inside that bin directory.

Where is your crazyflie-clients-pyhon directory? If you installed it like the Bitcraze VM, it's in ~/projects. So, in that case you need to use the following to run it:

Code: Select all

cd ~/projects/crazyflie-clients-python
python bin/cfclient
Make sense?
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
rgalvez
Beginner
Posts: 8
Joined: Mon Jan 18, 2016 4:40 pm

Re: CF client installation for Ubuntu 14.04

Post by rgalvez »

Thanks chad! I did it.
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: CF client installation for Ubuntu 14.04

Post by chad »

You're welcome!! Happy to help you get flying. :)
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
binx
Beginner
Posts: 11
Joined: Tue Feb 07, 2017 4:42 am

Re: CF client installation for Ubuntu 14.04

Post by binx »

chad wrote:You're welcome!! Happy to help you get flying. :)
Hi Chad,

Is CF client compatible with ubuntu 16.04? I've tried all the procedures while it fails to execute cfclient.

Bin
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: [SOLVED]CF client installation for Ubuntu 14.04

Post by arnaud »

Hi bin,

The client is mostly developed on Ubuntu 16.04, so it is compatible :-). What error are you seing?

/Arnaud
Post Reply