|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.animationengine.mixed.MixedPlayer
public class MixedPlayer
| Field Summary | |
|---|---|
static float |
DEFAULTH
|
private float |
h
|
private VJoint[] |
hCurrS
|
private VJoint[] |
hNextS
|
private VJoint[] |
hPrevS
|
private int |
kinJoints
|
private org.slf4j.Logger |
logger
|
private float[] |
q
|
private float[] |
q1
|
private float[] |
q2
|
private float[] |
qCurr
|
private float[] |
qDiff
|
private float[] |
qDiff2
|
private float[] |
qNext
|
private float[] |
qPrev
|
private MixedSystem |
system
|
private float[] |
v
|
private float[] |
v1
|
private float[] |
v2
|
private float[] |
w
|
private float[] |
wDiff
|
| Constructor Summary | |
|---|---|
MixedPlayer(MixedSystem sys,
VJoint hPrev,
VJoint hCurr,
VJoint hNext)
|
|
| Method Summary | |
|---|---|
private void |
calculateKinematics()
Calculates joint rotations, joint angular velocity and joint angular accelration from the prev, current, next joint configuration |
float |
getH()
Get the simulation rate |
MixedSystem |
getSystem()
|
void |
play(float timeDiff)
|
void |
reset(VJoint vj)
|
void |
setH(float hNew)
Set the simulation rate |
void |
setMassOffset()
Sets the massoffset of the physical humanoid to the one defined by its current joints |
private void |
setPrevCurrNextFromPhysicalHuman(PhysicalHumanoid ph,
VJoint vPrev,
VJoint vCurr,
VJoint vNext)
|
void |
setSystem(MixedSystem sys,
VJoint hPrev,
VJoint hCurr,
VJoint hNext)
Sets up the system, based on a new system |
void |
switchSystem(MixedSystem sys,
float timeDiff,
VJoint prev,
VJoint curr,
VJoint next,
boolean switchPrevCurrNext)
Switches the current mixed system to sys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.slf4j.Logger logger
private VJoint[] hPrevS
private VJoint[] hCurrS
private VJoint[] hNextS
private float[] qPrev
private float[] qCurr
private float[] qNext
private float[] qDiff
private float[] qDiff2
private float[] w
private float[] wDiff
private float[] q
private float[] q1
private float[] q2
private float[] v
private float[] v1
private float[] v2
private MixedSystem system
private int kinJoints
private float h
public static final float DEFAULTH
| Constructor Detail |
|---|
public MixedPlayer(MixedSystem sys,
VJoint hPrev,
VJoint hCurr,
VJoint hNext)
| Method Detail |
|---|
private void setPrevCurrNextFromPhysicalHuman(PhysicalHumanoid ph,
VJoint vPrev,
VJoint vCurr,
VJoint vNext)
public void setSystem(MixedSystem sys,
VJoint hPrev,
VJoint hCurr,
VJoint hNext)
sys - new systemhPrev - joint trees to find kinematically steered joints inhCurr - hNext - public float getH()
public void setH(float hNew)
public void setMassOffset()
public void reset(VJoint vj)
private void calculateKinematics()
public void switchSystem(MixedSystem sys,
float timeDiff,
VJoint prev,
VJoint curr,
VJoint next,
boolean switchPrevCurrNext)
sys - system to switch totimeDiff - time delta since last updatepublic void play(float timeDiff)
public MixedSystem getSystem()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||