|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.animationengine.motionunit.AbstractMotionUnit
hmi.elckerlyc.animationengine.pointing.PointingMU
public class PointingMU
Timing: ready: gaze target reached relax: start to move back to rest pose (for now 0 rotation of neck joints)
| Field Summary | |
|---|---|
protected String |
elbowId
|
protected String |
fingerTipId
|
protected String |
hand
|
protected AnimationPlayer |
player
|
protected double |
preparationDuration
|
protected float[] |
qElbow
|
protected float[] |
qElbowStart
|
protected float[] |
qShoulder
|
protected float[] |
qShoulderStart
|
protected float[] |
qTemp
|
protected KeyPosition |
ready
|
protected KeyPosition |
relax
|
protected String |
shoulderId
|
protected AnalyticalIKSolver |
solver
|
protected String |
target
|
protected TimeManipulator |
tmp
|
protected float[] |
vecTemp
|
protected float[] |
vecTemp2
|
protected VJoint |
vjElbow
|
protected VJoint |
vjFingerTip
|
protected VJoint |
vjShoulder
|
protected VJoint |
vjWrist
|
protected WorldObjectManager |
woManager
|
protected WorldObject |
woTarget
|
protected String |
wristId
|
| Constructor Summary | |
|---|---|
PointingMU()
|
|
PointingMU(VJoint shoulder,
VJoint elbow,
VJoint wrist,
VJoint fingerTip)
|
|
| Method Summary | |
|---|---|
PointingMU |
copy(AnimationPlayer p)
Create a copy of this motion unit and link it to the animationplayer |
TimedMotionUnit |
createTMU(BMLBlockPeg bbPeg,
String i,
String bmlId)
Creates the TimedMotionUnit corresponding to this motion unit |
String |
getParameterValue(String name)
|
MotionUnit |
getPredictor(VJoint predict)
Creates a gaze predictor. |
double |
getPreferedDuration()
|
String |
getReplacementGroup()
Get the motionunit replacement group (=typically the BML behavior) Used to determine the currently active persistent TMU for this group in the player Only one group is active at a time |
void |
play(double t)
Executes the motion unit, typically by rotating some VJoints |
void |
setEndRotation(float[] vecPos)
|
void |
setHand(String hand)
|
void |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
void |
setStartPose(double prep)
|
void |
setTarget(String target)
|
void |
setTimeManipulator(TimeManipulator tmp)
Set the time manimpulator that describes the velocity profile for attack and decay. |
private void |
setupSolver()
|
| Methods inherited from class hmi.elckerlyc.animationengine.motionunit.AbstractMotionUnit |
|---|
addKeyPosition, getKeyPosition, getKeyPositions, removeKeyPosition, setKeyPositions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float[] qShoulder
protected float[] qElbow
protected float[] qShoulderStart
protected float[] qElbowStart
protected float[] qTemp
protected float[] vecTemp
protected float[] vecTemp2
protected KeyPosition ready
protected KeyPosition relax
protected AnimationPlayer player
protected WorldObjectManager woManager
protected String target
protected TimeManipulator tmp
protected VJoint vjShoulder
protected VJoint vjElbow
protected VJoint vjWrist
protected VJoint vjFingerTip
protected String shoulderId
protected String elbowId
protected String wristId
protected String fingerTipId
protected AnalyticalIKSolver solver
protected String hand
protected WorldObject woTarget
protected double preparationDuration
| Constructor Detail |
|---|
public PointingMU()
public PointingMU(VJoint shoulder,
VJoint elbow,
VJoint wrist,
VJoint fingerTip)
| Method Detail |
|---|
private void setupSolver()
public PointingMU copy(AnimationPlayer p)
MotionUnit
public void setTarget(String target)
throws MUPlayException
MUPlayException
public void setStartPose(double prep)
throws MUPlayException
MUPlayExceptionpublic void setEndRotation(float[] vecPos)
gazeDir - gaze directionpublic MotionUnit getPredictor(VJoint predict)
predict - VJoint to execute the prediction on
public double getPreferedDuration()
public void setHand(String hand)
public void play(double t)
MotionUnit
t - execution time, 0 < t < 1
public TimedMotionUnit createTMU(BMLBlockPeg bbPeg,
String i,
String bmlId)
MotionUnit
i - behaviour idbmlId - BML block id
public void setParameterValue(String name,
String value)
public String getParameterValue(String name)
public void setParameterValue(String name,
float value)
public void setTimeManipulator(TimeManipulator tmp)
public String getReplacementGroup()
MotionUnit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||