|
||||||||||
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 | |
---|---|
org.robokind.api.common.position.NormalizedDouble |
getDefaultPosition()
Returns the Joint's default position. |
Boolean |
getEnabled()
If enabled, this Joint will accept move commands. |
org.robokind.api.common.position.NormalizedDouble |
getGoalPosition()
Returns the goal position. |
String |
getName()
Returns the name of the Joint. |
org.robokind.api.common.position.NormalizableRange<Double> |
getPositionRange()
Returns the NormalizableRange describing the range of motion. |
Servo |
getServo()
Returns the Servo backing this ServoJoint. |
void |
setEnabled(Boolean enabled)
If enabled, this Joint will accept move commands. |
protected void |
setGoalPosition(org.robokind.api.common.position.NormalizedDouble pos)
Allows the ServoRobot to set the goal position. |
Methods inherited from class org.robokind.api.motion.AbstractJoint |
---|
addProperty, getId, getProperties, 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 JointMethod Detail |
---|
public String getName()
Joint
public org.robokind.api.common.position.NormalizedDouble getDefaultPosition()
Joint
public org.robokind.api.common.position.NormalizableRange<Double> getPositionRange()
Joint
public void setEnabled(Boolean enabled)
Joint
public Boolean getEnabled()
Joint
public org.robokind.api.common.position.NormalizedDouble getGoalPosition()
Joint
public Servo getServo()
protected void setGoalPosition(org.robokind.api.common.position.NormalizedDouble pos)
pos
- new goal position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |