|
||||||||||
| 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.AbstractJoint
org.robokind.api.motion.servos.ServoJoint<S>
S - Servo Type to usepublic class ServoJoint<S extends Servo>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.robokind.api.motion.Joint |
|---|
Joint.Id |
| Field Summary | |
|---|---|
protected S |
myServo
The ServoJoint's Servo |
| Fields inherited from class org.robokind.api.motion.AbstractJoint |
|---|
myProperties |
| Fields inherited from interface org.robokind.api.motion.Joint |
|---|
PROP_ENABLED, PROP_GOAL_POSITION |
| Constructor Summary | |
|---|---|
ServoJoint(Joint.Id jointId,
S servo,
List<JointProperty> properties)
Creates a new ServoJoint |
|
| Method Summary | |
|---|---|
NormalizedDouble |
getDefaultPosition()
Returns the Joint's default position. |
Boolean |
getEnabled()
If enabled, this Joint will accept move commands. |
NormalizedDouble |
getGoalPosition()
Returns the goal position. |
String |
getName()
Returns the name of the Joint. |
Servo |
getServo()
Returns the Servo backing this ServoJoint. |
void |
setEnabled(Boolean enabled)
If enabled, this Joint will accept move commands. |
protected void |
setGoalPosition(NormalizedDouble pos)
Allows the ServoRobot to set the goal position. |
| Methods inherited from class org.robokind.api.motion.AbstractJoint |
|---|
addProperty, getId, getProperty, getProperty, propertyChange, removeProperty |
| 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 |
|---|
protected S extends Servo myServo
| Constructor Detail |
|---|
public ServoJoint(Joint.Id jointId,
S servo,
List<JointProperty> properties)
jointId - Joint.Id to useservo - Servo to useproperties - JointProperties for this Joint| Method Detail |
|---|
public String getName()
Joint
public NormalizedDouble getDefaultPosition()
Joint
public void setEnabled(Boolean enabled)
Joint
public Boolean getEnabled()
Joint
public NormalizedDouble getGoalPosition()
Joint
public Servo getServo()
protected void setGoalPosition(NormalizedDouble pos)
pos - new goal position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||