Develop Leap Motion in Ubuntu 16.04.02 LTS: SDK install

来源:互联网 发布:单晶和多晶冰糖 知乎 编辑:程序博客网 时间:2024/04/18 19:30

Let’s talk about some basic steps to develop Leap Motion in Ubuntu 16.04.

Step 1: Download the V2 Tracking toolkits.

Step 2: Install it. There are some special details.
For a greener, if you just follow the readme.txt, you would encounter a failure.

Failed to start leapd.service: Unit leapd.service not found

It is because ubuntu 16 switched from upstart to systemd and this .deb is still set up for upstart. A solution can be found here.
In details, follow the steps below:

vi /lib/systemd/system/leapd.servicesudo ln -s /lib/systemd/system/leapd.service /etc/systemd/system/leapd.servicesystemctl daemon-reloadsudo dpkg --install Leap-version-x64.deb

leapd.service file:

[Unit]Description=LeapMotion DaemonAfter=syslog.target[Service]Type=simpleExecStart=/usr/sbin/leapd[Install]WantedBy=multi-user.target

Note that you need to replace version with that of your sdk.

Step 3: Play with it!
After installation, you can see:

Check Leap Motion daemon with:
service leapd status
Open the Leap Motion GUI with:
LeapControlPanel
See /usr/share/Leap/README.linux for more information.

in the terminal window. If you have encountered some other problems, you may find solutions in file Readme in the sdk folder.