Top/Devel/OculusRift/DroidGlove_en

DroidGlove_en の変更点はてなブックマーク


#ref(../DroidGlove/droidglove_xxhdpi.png,right,around,nolink,nothumb)
#ref(../BobbingBots/bobbingbots.jpg,right,around,33.33%)
日本語ページは[[こちら>../DroidGlove]]。~
~

DroidGlove is an Android app for manipulation of hand or gun in a virtual reality world which is provided by game engines such as Unity3D.  

That is like the legendary NES controller.

~
I made [[hacked Power Glove>Devel/電子工作/Arduino/PaxPowerGlove]] into this app.

~

#youtube(RQmPODtp9Fw)

#clear

*Binary
Get DroidGlove at [[Google Play>https://play.google.com/store/apps/details?id=com.cubic9.android.droidglove]].

*How to use app
#ref(../DroidGlove/preference.png,right,around,15%)
#ref(../DroidGlove/main.png,right,around,15%)

**Initialization
First, to install DroidGlove, follow the steps below.

~

+Install [[DroidGlove>https://play.google.com/store/apps/details?id=com.cubic9.android.droidglove]] to your smartphone.
+Turn on Wi-Fi on your phone.
+Launch DroidGlove.
+Input the IP address of your PC to DroidGlove.
+To calibrate direction, aim for the top of your phone at the screen of your PC, and push the reset button.
#clear

~

Next, you are required to configure Windows so that PC software can pass through the firewall.
Follow these steps.
(These steps are for Windows7)

~

#ref(firewall01.png,right,around,50%)
+Open [Control Panel] > [Windows Firewall].
#clear
#ref(firewall02.png,right,around,50%)
+Click [Allow a program or feature through Windows Firewall].
#clear
#ref(firewall03.png,right,around,50%)
+Click [Change settings] button.
#clear
#ref(firewall04.png,right,around,50%)
+Click [Allow another program] button.
#clear
#ref(firewall05.png,right,around,50%)
+Click [Browse] button.
#clear
#ref(firewall06.png,right,around,50%)
+Click PC software which supports DroidGlove such as [[BobbingBots>../BobbingBots_en]] or [[Mikujalus>../Mikujalus_en]], and click [Open] button.
#clear
#ref(firewall07.png,right,around,50%)
+Click [Add] button.
#clear

**How To Play
+Launch DroidGlove on your smartphone.
+Launch PC software which support DroidGlove such as [[BobbingBots>../BobbingBots_en]] or [[Mikujalus>../Mikujalus_en]], [[Tag with Unity-chan (in Japanese "Unity-Chan-To-Oikakekko")>http://akihiro0105.web.fc2.com/Downloads-Oculus.html]].
+Then, turn your phone. If you want to grip, swipe down on DroidGlove.

*Sample Project for Unity [#sample]
This project includes DroidGlove receiver script and [[Bobbing-Walking>../Bobbing-Walking_en]] script.

-Sample project for PC and Oculus Rift
#ref(../DroidGlove/droidglove_unity_sample_20160601.zip)

-Sample project for Android and Google Cardboard (or Alternatives)
#ref(../DroidGlove/droidglove_cardboard_unity_sample_20151129.zip)

*Warning
When you use Bobbing-Walking, follow these instruction to prevent falling to the floor.
-Looking around at first.You must be at least 7 feet away from other objects.
-Make a circle on the floor around you with a roll of tape. And do not step outside of that.~
If you don't have a roll of tape, place the [[PowerPad>http://en.wikipedia.org/wiki/Power_Pad]] on the floor.
( Don’t tell me you don't have it. :) )
-Do not move fast.

*Contact
If you have any question, contact me on [[Twitter>https://twitter.com/cubic9com]].


*Source code
You can get sources at GitHub.

But the latest version is not public yet.

And you have to pay attention that the data format was changed at DroidGlove Ver.1.0.0. (from eular angles to quaternion)

[[https://github.com/cubic9com/DroidGlove/>https://github.com/cubic9com/DroidGlove/]]

**Folder structure

|folder|detail|h
|src/|Java sources|
|res/|resources such as images|


**How to use sources

DroidGlove requires [[JavaOSC>http://www.illposed.com/software/javaosc.html]], a library for Open Sound Control,
which was developed by C. Ramakrishnan, [[Illposed Software>http://www.illposed.com/]].

+Get JavaOSC at following URL. ~
[[https://github.com/hoijui/JavaOSC/tree/e2a1667cb198675958012d91a374f9e9705195be>https://github.com/hoijui/JavaOSC/tree/e2a1667cb198675958012d91a374f9e9705195be]]
+Copy "modules/core/src/main/java/com" in JavaOSC to "src/" in DroidGlove.
+Import that to a development environment such as the [[Eclipse IDE with built-in ADT>http://developer.android.com/sdk/index.html]].
+Export app (.apk) .

**License
Copyright (C) 2014, cubic9com All rights reserved.

This code is licensed under the BSD 3-Clause license.

See file LICENSE at DroidGlove repository for more information.


*The specification of the OSC protocol and packet of DroidGlove
+The port number of a phone is 57100.
+The port number of a PC is also 57100.
+The specification of the packet from a phone to a PC.
++The address is "/droidglove_to_pc".
++Data are float x, float y, float z, float w, int grip.
++x, y, z, and w mean Quaternion of a phone.
++Grip means grip value of the hand. (0 <= grip <= 100)
+The specification of the packet from a PC to a phone.
++The address is "/droidglove_to_phone".
++The data is int vibrationTime.
++VibrationTime means the duration time[ms] of vibration.~
If you set it to 0, the duration time will be the time of the preferences of a phone.

*Thanks

Thanks to C. Ramakrishnan, [[Illposed Software>http://www.illposed.com/]], who developed JavaOSC.

Thanks to [[Alexander Pacha>http://my-it.at]] at the [[Human Interface Technology Laboratory New Zealand>http://www.hitlabnz.org]], who developed Sensor fusion demo for Android.

DroidGlove is inspired by [[Little Witch Pie Delivery>http://littlewitchpiedelivery.com/]]. Thanks to [[Haramakoto>https://twitter.com/xxxxMakoto]].

*Amazon
#amazon(B0199DNJHO,left)
#amazon(B01LXP26V0,left)
#amazon(B00WMCTJW4,left)
#amazon(4798137464,left)
#amazon(B012VRQX4G,left)
#amazon(B0058QFZYC,left)
#amazon(4091848184,left)
差分 一覧