|
||||||||||
| 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.messaging.RemoteJoint
public class RemoteJoint
RemoteJoint represents a Joint on a RemoteRobot.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.robokind.api.motion.Joint |
|---|
Joint.Id |
| Field Summary |
|---|
| Fields inherited from interface org.robokind.api.motion.Joint |
|---|
PROP_ENABLED, PROP_GOAL_POSITION |
| Constructor Summary | |
|---|---|
RemoteJoint(RemoteRobot robot,
RobotDefinitionResponse.JointDefinition def)
Creates a RemoteJoint with the given values. |
|
| 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. |
|
protected void |
setGoalPosition(NormalizedDouble goal)
|
|
Boolean |
updateEnabledStatus()
Makes a request to the remote joint for the actual enabled status, and updates this joint, firing a property change event. |
|
| 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 |
| Constructor Detail |
|---|
public RemoteJoint(RemoteRobot robot,
RobotDefinitionResponse.JointDefinition def)
robot - RemoteRobot this RemoteJoint belongs todef - JointDefinition for initializing this Joint| Method Detail |
|---|
public Joint.Id getId()
Joint
getId in interface Jointpublic String getName()
Joint
getName in interface Jointpublic NormalizedDouble getDefaultPosition()
Joint
getDefaultPosition in interface Jointprotected void setGoalPosition(NormalizedDouble goal)
goal - public NormalizedDouble getGoalPosition()
Joint
getGoalPosition in interface Jointpublic void setEnabled(Boolean enabled)
Joint
setEnabled in interface Jointpublic Boolean getEnabled()
Joint
getEnabled in interface Jointpublic Boolean updateEnabledStatus()
public <T> JointProperty<T> getProperty(String name,
Class<T> propertyType)
Joint
getProperty in interface JointT - Value Type returned by the JointPropertyname - name of the JointPropertypropertyType - Class for T
public JointProperty getProperty(String name)
Joint
getProperty in interface Jointname - name of the JointProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||