|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.physics.controller.BalanceController
public class BalanceController
Balance controller Entry condition: both feet are flat on the ground Uses the rotation of both feet to determine the local facing direction of the physical humanoid.
| Field Summary | |
|---|---|
private float[] |
balanceOffset
|
private float[] |
center
|
private String[] |
desjointIDs
|
private boolean |
firstRun
|
private boolean |
groundCheck
|
private String[] |
jointIDs
|
private float |
kpKnee
|
private float |
kpx
|
private float |
kpz
|
private float |
kvKnee
|
private float |
kvx
|
private float |
kvz
|
private float[] |
left
|
private PhysicalJoint |
leftAnkle
|
private PhysicalSegment |
leftFoot
|
private float[] |
leftFw
|
private PhysicalJoint |
leftHip
|
private PhysicalJoint |
leftKnee
|
private float |
lHipC
|
private float |
lHipCZ
|
private float |
lKneeC
|
private float |
ll
|
private float[] |
offset
|
private float |
pelH
|
private PhysicalHumanoid |
ph
|
private float[] |
qBody
|
private float[] |
qLeftFoot
|
private float[] |
qRightFoot
|
private float[] |
relCoM
|
private float[] |
relCoMDiff
|
private float |
rHipC
|
private float |
rHipCZ
|
private float[] |
right
|
private PhysicalJoint |
rightAnkle
|
private PhysicalSegment |
rightFoot
|
private float[] |
rightFw
|
private PhysicalJoint |
rightHip
|
private PhysicalJoint |
rightKnee
|
private float |
rKneeC
|
private float |
rotXLFoot
|
private float |
rotXRFoot
|
private float |
rotZLFoot
|
private float |
rotZRFoot
|
private float |
s
|
private float |
ul
|
private float[] |
v1
|
| Constructor Summary | |
|---|---|
BalanceController()
|
|
BalanceController(PhysicalHumanoid p)
|
|
BalanceController(PhysicalHumanoid p,
boolean gcheck)
|
|
| Method Summary | |
|---|---|
PhysicalController |
copy(PhysicalHumanoid ph)
Creates a copy of the controller |
String[] |
getDesiredJointIDs()
Gets the ids of joints the controller would like to steer if available |
String |
getParameterValue(String name)
Get the parameter value of parameter name, return null if not found |
String[] |
getRequiredJointIDs()
Gets the ids of controlled joints |
void |
reset()
Clears out all previous time dependen variables |
void |
setKMultiplier(float km)
|
void |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
void |
setPelH(float pelH)
|
void |
setPhysicalHumanoid(PhysicalHumanoid p)
Links the controller to a new set of physical joints |
void |
update(double timeDiff)
Updates the controller |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PhysicalHumanoid ph
private PhysicalSegment leftFoot
private PhysicalSegment rightFoot
private PhysicalJoint leftAnkle
private PhysicalJoint rightAnkle
private PhysicalJoint rightHip
private PhysicalJoint leftHip
private PhysicalJoint rightKnee
private PhysicalJoint leftKnee
private float[] qLeftFoot
private float[] qRightFoot
private float[] qBody
private float[] relCoM
private float[] relCoMDiff
private float[] left
private float[] right
private float[] center
private float[] offset
private final float[] balanceOffset
private float[] leftFw
private float[] rightFw
private float kpx
private float kvx
private float kpz
private float kvz
private float kpKnee
private float kvKnee
private float rotXLFoot
private float rotXRFoot
private float rotZLFoot
private float rotZRFoot
private float lKneeC
private float rKneeC
private float lHipC
private float rHipC
private float lHipCZ
private float rHipCZ
private float ul
private float ll
private float pelH
private float[] v1
private boolean groundCheck
private float s
private final String[] jointIDs
private String[] desjointIDs
private boolean firstRun
| Constructor Detail |
|---|
public BalanceController()
public BalanceController(PhysicalHumanoid p)
public BalanceController(PhysicalHumanoid p,
boolean gcheck)
| Method Detail |
|---|
public void reset()
PhysicalController
reset in interface PhysicalControllerpublic void setKMultiplier(float km)
public void setPhysicalHumanoid(PhysicalHumanoid p)
PhysicalController
setPhysicalHumanoid in interface PhysicalControllerp - physical humanoid to link topublic String[] getRequiredJointIDs()
PhysicalController
getRequiredJointIDs in interface PhysicalControllerpublic void update(double timeDiff)
PhysicalController
update in interface PhysicalControllertimeDiff - time since last updatepublic void setPelH(float pelH)
pelH - the pelH to setpublic PhysicalController copy(PhysicalHumanoid ph)
PhysicalController
copy in interface PhysicalControllerpublic String getParameterValue(String name)
PhysicalController
getParameterValue in interface PhysicalController
public void setParameterValue(String name,
String value)
setParameterValue in interface PhysicalController
public void setParameterValue(String name,
float value)
setParameterValue in interface PhysicalControllerpublic String[] getDesiredJointIDs()
PhysicalController
getDesiredJointIDs in interface PhysicalController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||