|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.animationengine.AnimationPlayer
public class AnimationPlayer
| Field Summary | |
|---|---|
private PlanPlayer |
app
|
private PlanPlayer |
appPredict
|
private ArrayList<PhysicalController> |
controllers
|
private org.slf4j.Logger |
logger
|
private MixedPlayer |
mPlayer
|
private ArrayList<MixedSystem> |
mSystems
|
private PhysicalHumanoid |
pHuman
|
private boolean |
prevValid
|
private boolean |
prevValidOld
|
private float |
stepTime
|
private List<PlanUnit> |
tmuRemove
|
private VJoint |
vCurr
|
private SkeletonPose |
vCurrStartPose
|
private VJoint |
vNext
|
private SkeletonPose |
vNextStartPose
|
private VObjectTransformCopier |
votcCurrToPrev
|
private VObjectTransformCopier |
votcNextToCurr
|
private VJoint |
vPredict
|
private VJoint |
vPrev
|
private SkeletonPose |
vPrevStartPose
|
private ExceptionManager |
warningManager
|
protected WorldObjectManager |
woManager
|
| Constructor Summary | |
|---|---|
AnimationPlayer(VJoint vP,
VJoint vC,
VJoint vN,
VJoint vPred,
ArrayList<MixedSystem> m,
float h)
|
|
AnimationPlayer(VJoint vP,
VJoint vC,
VJoint vN,
VJoint vPred,
ArrayList<MixedSystem> m,
float h,
WorldObjectManager wom)
|
|
| Method Summary | |
|---|---|
void |
addExceptionListener(BMLExceptionListener ws)
|
void |
addTimedMotionUnit(TimedMotionUnit tmu)
|
void |
clearAll(double time)
|
void |
copyPhysics()
|
void |
exception(BMLExceptionFeedback e)
|
Set<String> |
getBehaviours(String bmlId)
|
ArrayList<PhysicalController> |
getControllers()
|
double |
getEndTime(String behId,
String bmlId)
|
Set<String> |
getInvalidBehaviors()
|
ArrayList<MixedSystem> |
getMixedSystems()
|
int |
getNumberOfTimedMotionUnits()
|
PhysicalHumanoid |
getPHuman()
|
float |
getStepTime()
|
VJoint |
getVCurr()
Get the current set of joints that is to be animated |
VJoint |
getVNext()
Get the set of joints that is to be animated |
VJoint |
getVPredict()
Get the predicted joint rotation |
VJoint |
getVPrev()
Get the prev set of joints that is to be animated |
WorldObjectManager |
getWoManager()
|
void |
interruptBehaviourBlock(String bmlId,
double time)
Interrupts all behaviors in the block; that is: calls their stop and removes them from the plan |
void |
interruptTimedMotionUnit(String id,
String bmlId,
double globalTime)
|
void |
predict(double time)
|
void |
puException(PlanUnit timedMU,
String message,
double time)
Callback for behaviors |
void |
removeAllExceptionListeners()
|
void |
reset()
Resets all controllers, mixed systems (that is: restores their start physical humanoids and sets connector velocity to 0) and sets vPrev, vNext and vCurr to their pose at initialization |
void |
setBMLBlockState(String bmlId,
PlanUnitState state)
|
void |
setParameterValue(String behId,
String bmlId,
String paramId,
float value)
|
void |
setParameterValue(String behId,
String bmlId,
String paramId,
String value)
|
void |
setResetPose()
Sets the reset pose to the current vNext. |
void |
shutdown()
Clean up resources constructed with the planner (e.g. for native stuff, spawned threads, ...). |
void |
step(float prevTime)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private VJoint vPrev
private VJoint vCurr
private VJoint vNext
private VJoint vPredict
private PhysicalHumanoid pHuman
private VObjectTransformCopier votcCurrToPrev
private VObjectTransformCopier votcNextToCurr
private boolean prevValid
private ArrayList<PhysicalController> controllers
private PlanPlayer app
private PlanPlayer appPredict
private ArrayList<MixedSystem> mSystems
private MixedPlayer mPlayer
private float stepTime
private SkeletonPose vPrevStartPose
private SkeletonPose vCurrStartPose
private SkeletonPose vNextStartPose
private boolean prevValidOld
protected WorldObjectManager woManager
private List<PlanUnit> tmuRemove
private org.slf4j.Logger logger
private final ExceptionManager warningManager
| Constructor Detail |
|---|
public AnimationPlayer(VJoint vP,
VJoint vC,
VJoint vN,
VJoint vPred,
ArrayList<MixedSystem> m,
float h)
public AnimationPlayer(VJoint vP,
VJoint vC,
VJoint vN,
VJoint vPred,
ArrayList<MixedSystem> m,
float h,
WorldObjectManager wom)
| Method Detail |
|---|
public int getNumberOfTimedMotionUnits()
public void interruptTimedMotionUnit(String id,
String bmlId,
double globalTime)
public WorldObjectManager getWoManager()
public void addTimedMotionUnit(TimedMotionUnit tmu)
public void predict(double time)
public void reset()
reset in interface Playerpublic Set<String> getInvalidBehaviors()
public void setResetPose()
public void exception(BMLExceptionFeedback e)
public void addExceptionListener(BMLExceptionListener ws)
addExceptionListener in interface Playerpublic void removeAllExceptionListeners()
removeAllExceptionListeners in interface Player
public void puException(PlanUnit timedMU,
String message,
double time)
puException in interface PUExceptionCallbackpublic void step(float prevTime)
public void copyPhysics()
public ArrayList<PhysicalController> getControllers()
public VJoint getVNext()
public VJoint getVPrev()
public VJoint getVCurr()
public VJoint getVPredict()
public PhysicalHumanoid getPHuman()
public float getStepTime()
public void clearAll(double time)
public ArrayList<MixedSystem> getMixedSystems()
public void setBMLBlockState(String bmlId,
PlanUnitState state)
setBMLBlockState in interface Player
public double getEndTime(String behId,
String bmlId)
getEndTime in interface Playerpublic Set<String> getBehaviours(String bmlId)
getBehaviours in interface Player
public void interruptBehaviourBlock(String bmlId,
double time)
Player
interruptBehaviourBlock in interface Player
public void setParameterValue(String behId,
String bmlId,
String paramId,
float value)
setParameterValue in interface Player
public void setParameterValue(String behId,
String bmlId,
String paramId,
String value)
setParameterValue in interface Playerpublic void shutdown()
Player
shutdown in interface Player
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||