|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.physics.controller.ScriptController
hmi.physics.controller.ScriptHumanoidController
public class ScriptHumanoidController
The ScriptJointController controls a PhysicalHumanoid, using a Rhino (javascript syntax) script. The update(timediff) function in the script is called every frame. PhysicalHumanoid ph can be used in the script to set up it physical properties
| Field Summary | |
|---|---|
private String[] |
desJointIDs
|
private String[] |
jointIDs
|
private PhysicalHumanoid |
ph
|
| Fields inherited from class hmi.physics.controller.ScriptController |
|---|
jsEngine |
| Constructor Summary | |
|---|---|
ScriptHumanoidController(PhysicalHumanoid p)
Constructor |
|
| 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 |
setParameterValue(String name,
float value)
|
void |
setParameterValue(String name,
String value)
|
void |
setPhysicalHumanoid(PhysicalHumanoid p)
Links the controller to a new set of physical joints |
| Methods inherited from class hmi.physics.controller.ScriptController |
|---|
getScript, reset, setScript, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private PhysicalHumanoid ph
private String[] jointIDs
private String[] desJointIDs
| Constructor Detail |
|---|
public ScriptHumanoidController(PhysicalHumanoid p)
p - the controlled joint| Method Detail |
|---|
public String[] getRequiredJointIDs()
PhysicalController
public void setPhysicalHumanoid(PhysicalHumanoid p)
PhysicalController
p - physical humanoid to link topublic PhysicalController copy(PhysicalHumanoid ph)
PhysicalController
public String getParameterValue(String name)
PhysicalController
public void setParameterValue(String name,
String value)
public void setParameterValue(String name,
float value)
public String[] getDesiredJointIDs()
PhysicalController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||