public Hashtable createActuators() {
final LinearRobotSimulated me = this;
Hashtable res = new Hashtable();
res.put(LrNames.OUTPUT_FORCE, new Actuator(Double.class) {
protected Object retriveValue() {
return new Double(me.outputNormalized);
}
protected void assignValue(Object val) {
me.outputNormalized = ((Double) val).doubleValue();
if (me.outputNormalized > 1.0) {
me.outputNormalized = 1.0;
} else if (me.outputNormalized < -1.0) {
me.outputNormalized = -1.0;
}
}
});
res.put(LrNames.DESIRED_POSITION, new Actuator(Double.class) {
protected Object retriveValue() {
return new Double(me.destPos);
}
protected void assignValue(Object val) {
me.destPos = ((Double)val).doubleValue();
}
});
res.put(LrNames.DESIRED_SPEED, new Actuator(Double.class) {
protected Object retriveValue() {
return new Double(me.destSpeed);
}
protected void assignValue(Object val) {
me.destSpeed = ((Double)val).doubleValue();
}
});
res.put(LrNames.DESIRED_ACCEL, new Actuator(Double.class) {
protected Object retriveValue() {
return new Double(me.destAccel);
}
protected void assignValue(Object val) {