デバイス(devices)/LeapMotion
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
|
Help
] [
Japanese
/
English
]
Research
research overview
papers
media
Members
professors
graduates
undergraduates
alumni
Links
Links
Classes
Computer Programming Basic II
Special Lecture of Mechanical Intelligent System Engineering I
Start:
[[デバイス(devices)]]
#setlinebreak(on);
*ubuntuでのセットアップ(12.04 LTS以降)(2018/12/23現在) [#...
-公式ページ https://developer.leapmotion.com/get-started
-&ref(Leap_Motion_Setup_Linux_2.3.1.tgz);
--これを適当なところに置いて展開
$ tar -xfz Leap_Motion_*_Linux_2.3.1.tgz
--出てきたセットアップ用のdebファイルに以下のコマンド(32b...
$ sudo dpkg --install Leap-2.3.1+31549-x64.deb
→「パッケージ libgl1-mesa-glx はまだインストールされてい...
$ sudo apt install libgl1-mesa-glx*
--以下ができて、Leap motionをつないでLeap motionの画面に...
$ sudo leapd
--だめだったら以下のコマンドをやって対策
$ sudo systemctl status leapd.service
---Unit leapd.service could not be found. と出たら以下
$ sudo emacs /lib/systemd/system/leapd.service
このファイルに以下を書く
[Unit]
Description=LeapMotion Daemon
After=syslog.target
[Service]
Type=simple
ExecStart=/usr/sbin/leapd
[Install]
WantedBy=multi-user.target
以下を実行
$ sudo ln -s /lib/systemd/system/leapd.service /etc/syst...
$ sudo systemctl daemon-reload
$ sudo dpkg --install Leap-2.3.1+31549-x64.deb
参考 https://askubuntu.com/questions/1008964/problems-in...
---● leapd.service - LeapMotion Daemon
Loaded: loaded (/lib/systemd/system/leapd.service; linked...
Active: failed (Result: timeout) since Sun 2018-12-23 20:...
と出たら以下
$ sudo systemctl start leapd.service
--leapdのdaemonが動いていないと、PCにLeap motionを刺して...
*ubuntuで動かすサンプル(12.04 LTS以降)(2018/12/23現在) [#...
-SDK&ref(Leap_Motion_SDK_Linux_2.3.1.tgz);
--これを適当なところに置いて展開
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/samples$
にサンプルコードがある
**pythonの場合 [#c7b6b75f]
-Leap motionの画面に赤外線が点いている状態で
$ cd LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/lib
$ cp Leap.py ../samples/
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/samplesで
$ python Sample.py
-プログラムが走り始める(文字が出続けたら成功)Leap motio...
--Leap.pyはSample.pyに必要なライブラリ 一緒のとこに置か...
→パス設定 以下を.bashrc等に
export PYTHONPATH="/path/to/LeapDeveloperKit_2.3.1+31549_...
export PYTHONPATH="/path/to/LeapDeveloperKit_2.3.1+31549_...
**ブラウザで見る場合 [#j1903c83]
-Leap motionの画面に赤外線が点いている状態で
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/samplesで
$ firefox JSONViewer.html
firefoxのところは使ってるブラウザに
ブラウザが立ち上がって、Leap motionに手をかざしてブラウザ...
--Leapmitionは、デフォルトでWebsocketサーバを立てているの...
---https://gist.github.com/uupaa/6102441
*以下は2018/12/23より前の情報 [#u201afa5]
*サンプルプログラム及びSDK [#l64ce49f]
-https://developer.leapmotion.com/downloads
--ユーザ登録(無料)が必要
--Linux用はこれ->&ref(yQoLQUx8QTmkih6fA5C0_DeveloperSdk_L...
*パッケージのインストール(ubuntu) [#xd74e29f]
-*_Linuz.gzを解凍したディレクトリに.debがいるので
$ sudo dpkg --install Leap-0.8.0-x86.deb (64bitの場合はx...
*サンプルプログラムを試す(Linux) [#sd02d2f0]
-LeapMotionパイプライン?をスタート
$ leapd
--色々な設定(最大フレームレート等変えられるぽい)
$ LeapControlPanel
-解凍したディレクトリ内のExampleディレクトリ内にサンプル...
--FingerVisualizer
---3次元ビュワーに指先位置を表示
--MotionVisualizer
---手の動きに応じて3次元ビュワーの格子?が動く
End:
[[デバイス(devices)]]
#setlinebreak(on);
*ubuntuでのセットアップ(12.04 LTS以降)(2018/12/23現在) [#...
-公式ページ https://developer.leapmotion.com/get-started
-&ref(Leap_Motion_Setup_Linux_2.3.1.tgz);
--これを適当なところに置いて展開
$ tar -xfz Leap_Motion_*_Linux_2.3.1.tgz
--出てきたセットアップ用のdebファイルに以下のコマンド(32b...
$ sudo dpkg --install Leap-2.3.1+31549-x64.deb
→「パッケージ libgl1-mesa-glx はまだインストールされてい...
$ sudo apt install libgl1-mesa-glx*
--以下ができて、Leap motionをつないでLeap motionの画面に...
$ sudo leapd
--だめだったら以下のコマンドをやって対策
$ sudo systemctl status leapd.service
---Unit leapd.service could not be found. と出たら以下
$ sudo emacs /lib/systemd/system/leapd.service
このファイルに以下を書く
[Unit]
Description=LeapMotion Daemon
After=syslog.target
[Service]
Type=simple
ExecStart=/usr/sbin/leapd
[Install]
WantedBy=multi-user.target
以下を実行
$ sudo ln -s /lib/systemd/system/leapd.service /etc/syst...
$ sudo systemctl daemon-reload
$ sudo dpkg --install Leap-2.3.1+31549-x64.deb
参考 https://askubuntu.com/questions/1008964/problems-in...
---● leapd.service - LeapMotion Daemon
Loaded: loaded (/lib/systemd/system/leapd.service; linked...
Active: failed (Result: timeout) since Sun 2018-12-23 20:...
と出たら以下
$ sudo systemctl start leapd.service
--leapdのdaemonが動いていないと、PCにLeap motionを刺して...
*ubuntuで動かすサンプル(12.04 LTS以降)(2018/12/23現在) [#...
-SDK&ref(Leap_Motion_SDK_Linux_2.3.1.tgz);
--これを適当なところに置いて展開
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/samples$
にサンプルコードがある
**pythonの場合 [#c7b6b75f]
-Leap motionの画面に赤外線が点いている状態で
$ cd LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/lib
$ cp Leap.py ../samples/
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/samplesで
$ python Sample.py
-プログラムが走り始める(文字が出続けたら成功)Leap motio...
--Leap.pyはSample.pyに必要なライブラリ 一緒のとこに置か...
→パス設定 以下を.bashrc等に
export PYTHONPATH="/path/to/LeapDeveloperKit_2.3.1+31549_...
export PYTHONPATH="/path/to/LeapDeveloperKit_2.3.1+31549_...
**ブラウザで見る場合 [#j1903c83]
-Leap motionの画面に赤外線が点いている状態で
LeapDeveloperKit_2.3.1+31549_linux/LeapSDK/samplesで
$ firefox JSONViewer.html
firefoxのところは使ってるブラウザに
ブラウザが立ち上がって、Leap motionに手をかざしてブラウザ...
--Leapmitionは、デフォルトでWebsocketサーバを立てているの...
---https://gist.github.com/uupaa/6102441
*以下は2018/12/23より前の情報 [#u201afa5]
*サンプルプログラム及びSDK [#l64ce49f]
-https://developer.leapmotion.com/downloads
--ユーザ登録(無料)が必要
--Linux用はこれ->&ref(yQoLQUx8QTmkih6fA5C0_DeveloperSdk_L...
*パッケージのインストール(ubuntu) [#xd74e29f]
-*_Linuz.gzを解凍したディレクトリに.debがいるので
$ sudo dpkg --install Leap-0.8.0-x86.deb (64bitの場合はx...
*サンプルプログラムを試す(Linux) [#sd02d2f0]
-LeapMotionパイプライン?をスタート
$ leapd
--色々な設定(最大フレームレート等変えられるぽい)
$ LeapControlPanel
-解凍したディレクトリ内のExampleディレクトリ内にサンプル...
--FingerVisualizer
---3次元ビュワーに指先位置を表示
--MotionVisualizer
---手の動きに応じて3次元ビュワーの格子?が動く
Page: