如何连接的飞跃运动,直接到Android [英] How to connect leap-motion , directly to android

查看:333
本文介绍了如何连接的飞跃运动,直接到Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android应用程序,需要由LEAP-运动控制。
飞跃SDK目前只支持Windows和Mac。
但有什么办法(任何打开库/教程等),使飞跃运动装置聊到Android手机?

i am working on an android application that requires to be controlled by LEAP-motion. the leap sdk currently only supports windows and mac. but is there a way (any open library/tutorial etc.) to make the leap motion device talk to an android phone?

飞跃运动使用USB连接到手机上,我有一个USB OTG适配器,可以在飞跃直接插入。

leap motion uses a USB connection to the phone , i have a usb OTG adapter and can directly plug in leap.

任何形式的帮助将大大AP preciated。

Any sort of help will be greatly appreciated.

推荐答案

简介

雅,我知道你的问题中包含单词直接。我的解决方案是不是直接的,但它是可以考虑的选择。我想出平稳可接受的解决方案,以在Android(间接)。

Ya, I know your question contains the word "directly". My solution is not direct but it is an alternative you may consider. I have come up to a smooth acceptable solution to make LeapMotion work on Android (indirectly).

pre-必备


  • 一个PC或NPM在Mac作为代理

  • NPM安装binaryjs

  • NPM安装睡眠

  • 与Wi-Fi功能(设备)
  • 的Andr​​oid设备
  • 大跃进运动装置(飞跃的议案),连接到代理

  • Wi-Fi局域网的设备和代理
  • 之间的连接
  • A PC or a Mac with npm as the "PROXY"
  • npm install binaryjs
  • npm install sleep
  • An Android device with Wi-fi capability ("DEVICE")
  • Leap Motion device ("LEAP MOTION") connected to the "PROXY"
  • Wi-fi LAN connection between the "DEVICE" and "PROXY"

该解决方案的基本思想是使用代理以使不可能的(机器人+ LeapMotion)成为可能。代理服务器将读取使用JavaScript SDK和流从LEAP运动数据(雅,它的流媒体,而不是发布)中的数据的Node.js上运行的实例。

The basic idea of this solution is to use the PROXY to make the impossible (Android+LeapMotion) to become possible. The PROXY will read the data from LEAP MOTION using the Javascript SDK and stream (ya, it's streaming rather than posting) the data to node.js instance running on it.

该设备将连接到代理服务器和流(雅,它再次流,而不是轮询)手的位置数据和present它作为屏幕上的一个红色圆圈。

The DEVICE will connect to the PROXY and stream (ya, it's again streaming rather than polling) the hand position data and present it as a red circle on screen.

一步一步的指导


  1. 下载代理项目

提取项目

在你的PC或Mac上的node.js服务器实例在运行(例如节点index.js

Run in on your instance of node.js server on your PC or Mac (e.g. node index.js)

标记下代理服务器的IP

Mark down the IP of the PROXY

打开浏览器(Chrome和Safari已被证明的工作),并浏览的http://本地主机:5000 来验证它是否运行

Open your browser (Chrome and Safari are proven working) and browse http://localhost:5000 to verify it is running

下载Android项目为您的设备这里

Download the Android project for your DEVICE here

导入ADT项目

打开strings.xml中修改IP地址代理服务器的IP地址

Open strings.xml to modify the IP address to the IP address of PROXY

运行在您的设备项目

移动LEAP MOTION上面你的手,看到红圈根据你的手的方向移动

Move your hand above the LEAP MOTION and see the red circle moving according to your hand's direction

直接连接

其实我一直试图让LEAP MOTION直接在Android上运行。有一定的困难。首先,Android设备的USB适配器是USB主机和LEAP运动提供足够的电力。然后,如果你能亚洲开发银行的Andr​​oid设备,你应该能够找到的/ dev /视频?在电缆插入之后。据我所知,LEAP MOTION就像一个摄像机的视频数据流电缆(未知格式)的另一端。但可以肯定,没有官方的SDK,我们无法拿到手,骨,手势,ARM等更高层次的API支持。所以,让我们等待SDK或使用我的间接的解决方案。

In fact I have tried to make the LEAP MOTION work directly on Android. There are certain difficulties. Firstly, the USB adapter of the Android device has to be USB host and providing sufficient power to LEAP MOTION. Then, if you could adb the Android device, you should be able to find /dev/video? after plugging in the cable. AFAIK, LEAP MOTION works like a video camera which streams video data to the other end of the cable (format unknown). But certainly, without an official SDK, we couldn't get the Hand, Bone, Gesture, Arm and other higher level API support. So, let's wait for SDK or use my indirect solution.

这篇关于如何连接的飞跃运动,直接到Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆