|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.robokind.api.common.property.PropertyChangeNotifier
org.robokind.api.motion.servos.AbstractServo<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelController>
org.robokind.impl.motion.dynamixel.DynamixelServo
public class DynamixelServo
Represents a Dynamixel servo in a Dynamixel chain.
Nested Class Summary | |
---|---|
static class |
DynamixelServo.Id
|
Field Summary |
---|
Fields inherited from class org.robokind.api.motion.servos.AbstractServo |
---|
myConfig, myController, myGoalPosition, myServoId |
Fields inherited from interface org.robokind.api.motion.servos.Servo |
---|
PROP_ENABLED, PROP_GOAL_POSITION |
Constructor Summary | |
---|---|
DynamixelServo(org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id> params,
DynamixelController controller)
Creates a new DynamixelServo from the given JointConfig and DynamixelController. |
Method Summary | |
---|---|
void |
cacheValues()
Reads all Registers for the DynamixelServo and updates the cache. |
boolean |
changed()
Returns true if Register values have been changed. |
Integer |
get(Register reg)
Returns the value at the given register. |
ErrorStatus |
getAlarmLed()
Returns the ErrorStatus which triggers the Alarm LED. |
ErrorStatus |
getAlarmShutdown()
Returns the ErrorStatus which triggers a servo shutdown. |
DynamixelBaudRate |
getBaudRate()
Returns the BaudRate expected by the DynamixelServo. |
Integer |
getCcwAngleLimit()
|
Integer |
getCcwComplianceMargin()
|
Integer |
getCcwComplianceSlope()
|
Integer |
getCurrentLoad()
|
org.robokind.api.common.position.NormalizedDouble |
getCurrentPosition()
|
Integer |
getCurrentPositionAbs()
Returns the absolute position of the Dynamixel between 0-1023 |
Integer |
getCurrentSpeed()
|
Integer |
getCurrentTemperature()
|
Integer |
getCurrentVoltage()
|
Integer |
getCwAngleLimit()
|
Integer |
getCwComplianceMargin()
|
Integer |
getCwComplianceSlope()
|
org.robokind.api.common.position.NormalizedDouble |
getDefaultPosition()
|
Boolean |
getEnabled()
|
Integer |
getFirmwareVersion()
|
float |
getHighVoltageLimit()
|
Boolean |
getLed()
|
Boolean |
getLock()
|
float |
getLowVoltageLimit()
|
int |
getMaxPosition()
|
Integer |
getMaxTorque()
|
int |
getMinPosition()
|
Integer |
getModelNumber()
|
Boolean |
getMoving()
|
Integer |
getMovingSpeed()
Returns the moving speed as a value 1(slow) - 1023(fast), with 0 being full speed. |
String |
getName()
|
DynamixelServo.Id |
getPhysicalId()
|
protected int |
getPreviousPosition()
|
Integer |
getPunch()
|
Boolean |
getRegisteredInstruction()
|
protected Integer |
GetRegisterValue(Register reg)
|
Integer |
getReturnDelay()
|
Integer |
getStatusReturnLevel()
|
Integer |
getTemperatureLimit()
|
Boolean |
getTorqueEnable()
|
Integer |
getTorqueLimit()
|
protected void |
put(Register reg,
Integer value)
Sets the value of a given register. |
protected boolean |
reset()
Resets the DynamixelServo to the default factory settings. |
void |
setAlarmLed(ErrorStatus value)
Sets the ErrorStatus which triggers the Alarm LED. |
void |
setAlarmShutdown(ErrorStatus value)
Sets the ErrorStatus which triggers a servo shutdown. |
void |
setBaudRate(DynamixelBaudRate value)
Sets the BaudRate expected by the DynamixelServo |
void |
setCcwAngleLimit(Integer value)
|
void |
setCcwComplianceMargin(Integer value)
|
void |
setCcwComplianceSlope(Integer value)
|
void |
setCwAngleLimit(Integer value)
|
void |
setCwComplianceMargin(Integer value)
|
void |
setCwComplianceSlope(Integer value)
|
void |
setEnabled(Boolean enabled)
|
void |
setFeedbackVals(FeedbackUpdateValues vals)
|
void |
setGoalPosition(org.robokind.api.common.position.NormalizedDouble value)
|
void |
setHighVoltageLimit(float value)
|
void |
setLed(Boolean value)
|
void |
setLowVoltageLimit(float value)
|
void |
setMaxTorque(Integer value)
|
void |
setMovingSpeed(Integer value)
Sets the moving speed with a value 1(slow) - 1023(fast), and 0 being full speed. |
protected void |
setPreviousPosition(int pos)
|
void |
setPunch(Integer value)
|
void |
setRegisteredInstruction(Boolean value)
|
protected void |
SetRegisterValue(Register reg,
Integer value)
Sets the value for the given Register. |
void |
setReturnDelay(Integer value)
|
void |
setStatusReturnLevel(Integer value)
|
void |
setTemperatureLimit(Integer value)
|
void |
setTorqueEnabled(Boolean value)
|
void |
setTorqueLimit(Integer value)
|
Methods inherited from class org.robokind.api.motion.servos.AbstractServo |
---|
getAbsoluteGoalPosition, getConfig, getController, getGoalPosition, getId, getPositionRange, propertyChange |
Methods inherited from class org.robokind.api.common.property.PropertyChangeNotifier |
---|
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public DynamixelServo(org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id> params, DynamixelController controller)
params
- JointConfig for the new Jointcontroller
- DynamixelController for the new JointMethod Detail |
---|
public final DynamixelServo.Id getPhysicalId()
public void setEnabled(Boolean enabled)
public Boolean getEnabled()
public String getName()
public int getMinPosition()
public int getMaxPosition()
protected int getPreviousPosition()
protected void setPreviousPosition(int pos)
public org.robokind.api.common.position.NormalizedDouble getDefaultPosition()
public Integer get(Register reg)
reg
- register to read
protected void put(Register reg, Integer value)
reg
- register to setvalue
- value to setpublic void setGoalPosition(org.robokind.api.common.position.NormalizedDouble value)
setGoalPosition
in interface org.robokind.api.motion.servos.Servo<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>>
setGoalPosition
in class org.robokind.api.motion.servos.AbstractServo<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelController>
public Integer getMovingSpeed()
public void setMovingSpeed(Integer value)
value
- moving speed value; 1(slow) - 1023(fast), and 0 being
full speedpublic ErrorStatus getAlarmLed()
public void setAlarmLed(ErrorStatus value)
value
- ErrorStatus to triggers the Alarm LEDpublic ErrorStatus getAlarmShutdown()
public void setAlarmShutdown(ErrorStatus value)
value
- ErrorStatus to triggers a servo shutdownpublic DynamixelBaudRate getBaudRate()
public void setBaudRate(DynamixelBaudRate value)
value
- BaudRate to be expected by the DynamixelServopublic Integer getCcwAngleLimit()
public void setCcwAngleLimit(Integer value)
value
- public Integer getCwAngleLimit()
public void setCwAngleLimit(Integer value)
value
- public Integer getCcwComplianceMargin()
public void setCcwComplianceMargin(Integer value)
value
- public Integer getCwComplianceMargin()
public void setCwComplianceMargin(Integer value)
value
- public Integer getCcwComplianceSlope()
public void setCcwComplianceSlope(Integer value)
value
- public Integer getCwComplianceSlope()
public void setCwComplianceSlope(Integer value)
value
- public Integer getCurrentLoad()
public org.robokind.api.common.position.NormalizedDouble getCurrentPosition()
public Integer getCurrentPositionAbs()
public Integer getCurrentSpeed()
public Integer getCurrentTemperature()
public Integer getCurrentVoltage()
public Boolean getTorqueEnable()
public void setTorqueEnabled(Boolean value)
value
- public Integer getFirmwareVersion()
public Boolean getLed()
public void setLed(Boolean value)
value
- public Boolean getLock()
public Integer getTemperatureLimit()
public void setTemperatureLimit(Integer value)
value
- public Integer getMaxTorque()
public void setMaxTorque(Integer value)
value
- public float getHighVoltageLimit()
public void setHighVoltageLimit(float value)
value
- public float getLowVoltageLimit()
public void setLowVoltageLimit(float value)
value
- public Integer getModelNumber()
public Boolean getMoving()
public Integer getPunch()
public void setPunch(Integer value)
value
- public Boolean getRegisteredInstruction()
public void setRegisteredInstruction(Boolean value)
value
- public Integer getReturnDelay()
public void setReturnDelay(Integer value)
value
- public Integer getStatusReturnLevel()
public void setStatusReturnLevel(Integer value)
value
- public Integer getTorqueLimit()
public void setTorqueLimit(Integer value)
value
- protected boolean reset()
protected Integer GetRegisterValue(Register reg)
reg
-
protected void SetRegisterValue(Register reg, Integer value)
reg
- Register to setvalue
- value to setpublic void cacheValues()
public boolean changed()
public void setFeedbackVals(FeedbackUpdateValues vals)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |