|
||||||||||
| 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.AbstractServoController<Id,ServoConf,S,ControllerConf>
org.robokind.impl.motion.serial.SerialServoController<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelServo,DynamixelControllerConfig>
org.robokind.impl.motion.dynamixel.DynamixelController
public class DynamixelController
ServoController for a chain of DynamixelServos.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.robokind.api.motion.servos.ServoController |
|---|
org.robokind.api.motion.servos.ServoController.Id, org.robokind.api.motion.servos.ServoController.ServoId<ServoIdType> |
| Field Summary | |
|---|---|
static DynamixelServo.Id |
BROADCAST_ID
DynamixelController broadcast id. |
static org.robokind.api.common.config.VersionProperty |
VERSION
Controller type VersionProperty. |
static String |
VERSION_NAME
Controller type version name. |
static String |
VERSION_NUMBER
Controller type version number. |
| Fields inherited from class org.robokind.impl.motion.serial.SerialServoController |
|---|
myPort, myTimeoutLength |
| Fields inherited from class org.robokind.api.motion.servos.AbstractServoController |
|---|
myChangeMonitor, myConfig, myConnectionStatus, myServoMap, myServos |
| Fields inherited from interface org.robokind.api.motion.servos.ServoController |
|---|
PROP_CONNECTION_STATUS, PROP_ENABLED, PROP_ERROR_MESSAGES, PROP_SERVO_ADD, PROP_SERVO_REMOVE, PROP_SERVOS, PROP_VERSION |
| Constructor Summary | |
|---|---|
DynamixelController(DynamixelControllerConfig config)
Creates a new DynamixelController from the given SerialServoControllerConfig. |
|
| Method Summary | |
|---|---|
boolean |
connect()
|
protected DynamixelServo |
connectServo(org.robokind.api.motion.servos.config.ServoConfig config)
|
boolean |
disconnect()
|
protected boolean |
disconnectServo(org.robokind.api.motion.servos.ServoController.ServoId<DynamixelServo.Id> id)
|
DynamixelControlLoop |
getControlLoop()
|
Boolean |
getEnabled()
|
org.robokind.impl.motion.serial.RXTXSerialPort |
getPort()
|
Class<DynamixelServo.Id> |
getServoIdClass()
|
boolean |
moveAllServos(long lenMillisec)
|
boolean |
moveServo(org.robokind.api.motion.servos.ServoController.ServoId<DynamixelServo.Id> id,
long lenMillisec)
|
boolean |
moveServos(org.robokind.api.motion.servos.ServoController.ServoId<DynamixelServo.Id>[] ids,
int len,
int offset,
long lenMillisec)
|
boolean |
ping(DynamixelServo.Id id)
Pings the DynamixelServo at the given physical id. |
int |
readRegister(DynamixelServo.Id id,
Register reg)
Reads the Register value from the DynamixelServo with the given physical id. |
int[] |
readRegisters(DynamixelServo.Id id,
Register regFirst,
Register regLast)
Reads the values from the Register range specified by regFirst and regLast for the DynamixelServo with the given physical id. |
void |
setEnabled(Boolean enabled)
|
protected boolean |
setServos()
Attempts to ping each Servo in the ServoControllerConfig. |
protected boolean |
writeRegister(DynamixelServo.Id id,
Register reg,
Integer value,
Boolean deferred)
Write a value to the given register for the given DynamixelServo. |
| Methods inherited from class org.robokind.impl.motion.serial.SerialServoController |
|---|
getErrorMessages, setTimeoutLength |
| Methods inherited from class org.robokind.api.motion.servos.AbstractServoController |
|---|
addingServo, addServo, changeServoId, containsId, containsIds, getConfig, getConnectionStatus, getId, getServo, getServos, removeServo, removingServo, servoId, setConnectStatus |
| 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 |
| Field Detail |
|---|
public static final String VERSION_NAME
public static final String VERSION_NUMBER
public static final org.robokind.api.common.config.VersionProperty VERSION
public static final DynamixelServo.Id BROADCAST_ID
| Constructor Detail |
|---|
public DynamixelController(DynamixelControllerConfig config)
config - SerialServoControllerConfig for the new controller| Method Detail |
|---|
protected boolean setServos()
setServos in class org.robokind.impl.motion.serial.SerialServoController<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelServo,DynamixelControllerConfig>
public boolean moveServo(org.robokind.api.motion.servos.ServoController.ServoId<DynamixelServo.Id> id,
long lenMillisec)
public boolean moveServos(org.robokind.api.motion.servos.ServoController.ServoId<DynamixelServo.Id>[] ids,
int len,
int offset,
long lenMillisec)
public boolean moveAllServos(long lenMillisec)
public boolean ping(DynamixelServo.Id id)
id - physical id of the DynamixelServo to ping
public int readRegister(DynamixelServo.Id id,
Register reg)
id - physical id of the DynamixelServo to readreg - Register to read
public int[] readRegisters(DynamixelServo.Id id,
Register regFirst,
Register regLast)
id - physical id of the DynamixelServo to readregFirst - first Register in the rangeregLast - last Register in the range
protected boolean writeRegister(DynamixelServo.Id id,
Register reg,
Integer value,
Boolean deferred)
id - physical id of the DynamixelServoreg - Register to writevalue - value to writedeferred - if true, data is written but the DynamixelServo state
will not change until it receives an ACTION instruction.
protected DynamixelServo connectServo(org.robokind.api.motion.servos.config.ServoConfig config)
connectServo in class org.robokind.api.motion.servos.AbstractServoController<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelServo,DynamixelControllerConfig>protected boolean disconnectServo(org.robokind.api.motion.servos.ServoController.ServoId<DynamixelServo.Id> id)
disconnectServo in class org.robokind.api.motion.servos.AbstractServoController<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelServo,DynamixelControllerConfig>public void setEnabled(Boolean enabled)
public Boolean getEnabled()
public boolean connect()
connect in interface org.robokind.api.motion.servos.ServoController<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelServo,DynamixelControllerConfig>connect in class org.robokind.impl.motion.serial.SerialServoController<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelServo,DynamixelControllerConfig>public boolean disconnect()
disconnect in interface org.robokind.api.motion.servos.ServoController<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelServo,DynamixelControllerConfig>disconnect in class org.robokind.impl.motion.serial.SerialServoController<DynamixelServo.Id,org.robokind.api.motion.servos.config.ServoConfig<DynamixelServo.Id>,DynamixelServo,DynamixelControllerConfig>public Class<DynamixelServo.Id> getServoIdClass()
public org.robokind.impl.motion.serial.RXTXSerialPort getPort()
public DynamixelControlLoop getControlLoop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||