|
||||||||||
| 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.ScriptJointController
public class ScriptJointController
The ScriptJointController controls a single joint, using a Rhino (javascript syntax) script. The update(timediff) function in the script is called every frame. PhysicalJoint joint can be used in the script to set up joint torque, etc.
| Field Summary | |
|---|---|
private String[] |
desJointIDs
|
private PhysicalJoint |
joint
|
private String[] |
jointIDs
|
| Fields inherited from class hmi.physics.controller.ScriptController |
|---|
jsEngine |
| Constructor Summary | |
|---|---|
ScriptJointController(PhysicalJoint pj)
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 ph)
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 PhysicalJoint joint
private String[] jointIDs
private String[] desJointIDs
| Constructor Detail |
|---|
public ScriptJointController(PhysicalJoint pj)
pj - the controlled joint| Method Detail |
|---|
public String[] getRequiredJointIDs()
PhysicalController
public void setPhysicalHumanoid(PhysicalHumanoid ph)
PhysicalController
ph - 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 | |||||||||