|
||||||||||
| 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.AbstractRobot<ServoJoint>
org.robokind.api.motion.servos.ServoRobot
public class ServoRobot
Robot implementation using Servos.
| Nested Class Summary | |
|---|---|
static class |
ServoRobot.ServoControllerContext<T extends Servo<?,?>>
Contains the objects used for loading and creating a ServoController. |
| Nested classes/interfaces inherited from interface org.robokind.api.motion.Robot |
|---|
Robot.Id, Robot.JointId, Robot.RobotPositionHashMap, Robot.RobotPositionMap |
| Field Summary | |
|---|---|
static 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.api.motion.AbstractRobot |
|---|
myJointList, myJointMap |
| Fields inherited from interface org.robokind.api.motion.Robot |
|---|
PROP_CONNECTED, PROP_ENABLED, PROP_ID |
| Constructor Summary | |
|---|---|
ServoRobot(ServoRobotConfig config)
Creates a new ServoRobot with the given BundleContext and RobotConfig. |
|
| Method Summary | |
|---|---|
boolean |
connect()
The Robot will accept commands only after it is successfully connected. |
void |
disconnect()
Disconnect the Robot. |
List<ServoController> |
getControllerList()
Returns a List of ServoControllers. |
Map<ServoController.Id,ServoController> |
getControllers()
Returns an unmodifiable Map of ServoController.Ids and ServoControllers. |
boolean |
isConnected()
Returns true if the Robot is connected. |
void |
move(Robot.RobotPositionMap positions,
long lenMillisec)
Move the Joints with the given ids to the corresponding positions. |
void |
setEnabled(boolean val)
Sets the enabled status of the Robot. |
| Methods inherited from class org.robokind.api.motion.AbstractRobot |
|---|
addJoint, clearJoints, getCurrentPositions, getDefaultPositions, getGoalPositions, getJoint, getJointIds, getJointList, getJointName, getJointNames, getJoints, getRobotId, isEnabled, removeJoint |
| 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 VersionProperty VERSION
| Constructor Detail |
|---|
public ServoRobot(ServoRobotConfig config)
config - Robot's configuration parameters| Method Detail |
|---|
public void setEnabled(boolean val)
AbstractRobot
setEnabled in interface Robot<ServoJoint>setEnabled in class AbstractRobot<ServoJoint>val - enabled valuepublic boolean connect()
Robot
public void disconnect()
Robot
public boolean isConnected()
Robot
public void move(Robot.RobotPositionMap positions,
long lenMillisec)
Robot
positions - map of Joint logical ids and positionslenMillisec - duration of the movement in millisecondspublic Map<ServoController.Id,ServoController> getControllers()
public List<ServoController> getControllerList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||