public class InMoovHand extends Service implements LeapDataListener
Modifier and Type | Field and Description |
---|---|
Arduino |
arduino |
Servo |
index |
LeapMotion |
leap
peer services
|
static org.slf4j.Logger |
log |
Servo |
majeure |
Servo |
pinky |
Servo |
ringFinger |
Servo |
thumb |
Servo |
wrist |
cfgDir, dnaPool, MESSAGE_RECORDING_FORMAT_BINARY, MESSAGE_RECORDING_FORMAT_XML
Constructor and Description |
---|
InMoovHand(java.lang.String n) |
Modifier and Type | Method and Description |
---|---|
boolean |
attach()
Deprecated.
|
void |
bird() |
void |
broadcastState() |
void |
close() |
void |
closePinch() |
boolean |
connect(java.lang.String port)
connect - user data needed
|
void |
count() |
void |
detach()
Deprecated.
|
void |
devilHorns() |
void |
disable() |
boolean |
enable() |
void |
enableAutoDisable(java.lang.Boolean param)
Deprecated.
|
void |
enableAutoEnable(java.lang.Boolean param)
Deprecated.
|
void |
five() |
void |
four() |
long |
getLastActivityTime() |
static ServiceType |
getMetaData()
This static method returns all the details of the class without it having
to be constructed.
|
java.lang.String |
getScript(java.lang.String inMoovServiceName) |
java.lang.String |
getSide() |
void |
hangTen() |
boolean |
isAttached() |
static void |
main(java.lang.String[] args) |
void |
map(int minX,
int maxX,
int minY,
int maxY) |
void |
moveTo(double thumb,
double index,
double majeure,
double ringFinger,
double pinky) |
void |
moveTo(java.lang.Double thumb,
java.lang.Double index,
java.lang.Double majeure,
java.lang.Double ringFinger,
java.lang.Double pinky,
java.lang.Double wrist) |
void |
moveToBlocking(double thumb,
double index,
double majeure,
double ringFinger,
double pinky) |
void |
moveToBlocking(double thumb,
double index,
double majeure,
double ringFinger,
double pinky,
java.lang.Double wrist) |
void |
ok() |
void |
one() |
LeapData |
onLeapData(LeapData data) |
void |
open() |
void |
openPinch() |
void |
release() |
void |
rest() |
boolean |
save()
method of serializing default will be simple xml to name file
|
void |
setAutoDisable(java.lang.Boolean param) |
void |
setOverrideAutoDisable(java.lang.Boolean param) |
void |
setPins(int thumbPin,
int indexPin,
int majeurePin,
int ringFingerPin,
int pinkyPin,
int wristPin) |
void |
setRest(double thumb,
double index,
double majeure,
double ringFinger,
double pinky) |
void |
setRest(double thumb,
double index,
double majeure,
double ringFinger,
double pinky,
java.lang.Double wrist) |
void |
setSide(java.lang.String side) |
void |
setSpeed(java.lang.Double thumb,
java.lang.Double index,
java.lang.Double majeure,
java.lang.Double ringFinger,
java.lang.Double pinky,
java.lang.Double wrist)
Deprecated.
|
void |
setVelocity(java.lang.Double thumb,
java.lang.Double index,
java.lang.Double majeure,
java.lang.Double ringFinger,
java.lang.Double pinky,
java.lang.Double wrist) |
void |
startLeapTracking() |
void |
startService() |
void |
stopLeapTracking() |
void |
test() |
void |
three() |
void |
thumbsUp() |
void |
two() |
void |
victory() |
void |
waitTargetPos() |
addListener, addListener, addTask, addTask, addTask, addTaskOneShot, allowDisplay, allowDisplay, attach, attach, buildDna, buildDna, buildDnaKeys, buildDnaNames, clearLastError, close, containsTask, copyShallowFrom, createPeer, createPeer, createRootReserved, detach, detach, echoHeartbeat, error, error, error, getAttached, getCfgDir, getComm, getDeclaredMethodNames, getDeclaredMethods, getDescription, getDna, getDnaString, getHostName, getInbox, getInstanceId, getIntanceName, getInterfaceSet, getLastError, getMessageSet, getMetaData, getMethodMap, getMethodNames, getMethods, getMethodToolTip, getMsg, getName, getNotifyList, getNotifyListKeySet, getOutbox, getPeerKey, getPeerName, getServiceResourceFile, getSimpleName, getTasks, getThisThread, getType, hasError, hasPeers, help, help, in, info, info, invoke, invoke, invoke, invokeOn, isAttached, isAttached, isLocal, isReady, isRunning, isRuntime, isVirtual, load, load, logTimeEnable, mergeDna, mergeDna, mergePeerDna, movePeerDna, out, out, preProcessHook, preRoutingHook, publishError, publishQueueStats, publishState, publishStats, publishStatus, purgeTask, purgeTasks, releasePeers, releaseService, removeAllListeners, removeListener, requiresSecurity, reserve, reserve, reserveRoot, reserveRoot, reserveRootAs, run, save, save, send, send, send, send, sendBlocking, sendBlocking, sendBlocking, sendBlocking, sendPeer, setInstanceId, setName, setPeer, setSecurityProvider, setState, setThisThread, setVirtual, sleep, stackToString, startHeartbeat, startPeer, startPeer, startRecording, stopHeartbeat, stopMsgRecording, stopService, subscribe, subscribe, subscribe, toString, unsubscribe, unsubscribe, unsubscribe, updateStats, warn, warn
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
public static final org.slf4j.Logger log
public transient LeapMotion leap
public transient Servo thumb
public transient Servo index
public transient Servo majeure
public transient Servo ringFinger
public transient Servo pinky
public transient Servo wrist
public transient Arduino arduino
public static void main(java.lang.String[] args)
@Deprecated public boolean attach()
public boolean enable()
public void bird()
public void broadcastState()
broadcastState
in interface ServiceInterface
broadcastState
in class Service
public void close()
public void closePinch()
public boolean connect(java.lang.String port) throws java.lang.Exception
port
- com portjava.lang.Exception
- epublic void count()
@Deprecated public void detach()
Service
detach
in interface Attachable
detach
in class Service
public void disable()
@Deprecated public void enableAutoEnable(java.lang.Boolean param)
@Deprecated public void enableAutoDisable(java.lang.Boolean param)
public void setAutoDisable(java.lang.Boolean param)
public void setOverrideAutoDisable(java.lang.Boolean param)
public void devilHorns()
public void five()
public void four()
public long getLastActivityTime()
public java.lang.String getScript(java.lang.String inMoovServiceName)
public java.lang.String getSide()
public void hangTen()
public boolean isAttached()
public void map(int minX, int maxX, int minY, int maxY)
public void moveTo(double thumb, double index, double majeure, double ringFinger, double pinky)
public void moveTo(java.lang.Double thumb, java.lang.Double index, java.lang.Double majeure, java.lang.Double ringFinger, java.lang.Double pinky, java.lang.Double wrist)
public void moveToBlocking(double thumb, double index, double majeure, double ringFinger, double pinky)
public void moveToBlocking(double thumb, double index, double majeure, double ringFinger, double pinky, java.lang.Double wrist)
public void waitTargetPos()
public void ok()
public void one()
public LeapData onLeapData(LeapData data)
onLeapData
in interface LeapDataListener
public void open()
public void openPinch()
public void release()
public void rest()
public boolean save()
Service
save
in interface StateSaver
save
in class Service
public void setPins(int thumbPin, int indexPin, int majeurePin, int ringFingerPin, int pinkyPin, int wristPin)
public void setRest(double thumb, double index, double majeure, double ringFinger, double pinky)
public void setRest(double thumb, double index, double majeure, double ringFinger, double pinky, java.lang.Double wrist)
public void setSide(java.lang.String side)
@Deprecated public void setSpeed(java.lang.Double thumb, java.lang.Double index, java.lang.Double majeure, java.lang.Double ringFinger, java.lang.Double pinky, java.lang.Double wrist)
public void startLeapTracking() throws java.lang.Exception
java.lang.Exception
public void startService()
startService
in interface ServiceInterface
startService
in class Service
public void stopLeapTracking()
public void test()
public void three()
public void thumbsUp()
public void two()
public void victory()
public static ServiceType getMetaData()
public void setVelocity(java.lang.Double thumb, java.lang.Double index, java.lang.Double majeure, java.lang.Double ringFinger, java.lang.Double pinky, java.lang.Double wrist)