|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Joint
A Joint represents the values and properties of a DoF (degree of freedom) of a Robot. A Joint provides the goal position, and various JointProperties. Joints are intended to provide read-only access to properties, however some JointProperties can support writing the property as well. Joints can not be moved directly, move commands must go through the Robot.
| Nested Class Summary | |
|---|---|
static class |
Joint.Id
Joint.Id is an immutable identifier for a Joint within a Robot or ServoController. |
| Field Summary | |
|---|---|
static String |
PROP_ENABLED
Property string for Enabled. |
static String |
PROP_GOAL_POSITION
Property string for GoalPostion. |
| 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. |
|
Joint.Id |
getId()
Returns the Joint's logical id. |
|
String |
getName()
Returns the name of the Joint. |
|
JointProperty |
getProperty(String name)
Returns the JointProperty with the given name. |
|
|
getProperty(String name,
Class<T> propertyType)
Returns the JointProperty with the given name, ensuring the value is assignable to propertyType. |
|
void |
setEnabled(Boolean enabled)
If enabled, this Joint will accept move commands. |
|
| Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
static final String PROP_GOAL_POSITION
static final String PROP_ENABLED
| Method Detail |
|---|
Joint.Id getId()
String getName()
NormalizedDouble getDefaultPosition()
NormalizedDouble getGoalPosition()
void setEnabled(Boolean enabled)
enabled - Boolean getEnabled()
<T> JointProperty<T> getProperty(String name,
Class<T> propertyType)
T - Value Type returned by the JointPropertyname - name of the JointPropertypropertyType - Class for T
JointProperty getProperty(String name)
name - name of the JointProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||