public class RemoteRobot extends AbstractRobot<RemoteJoint>
Robot.Id, Robot.JointId, Robot.RobotPositionHashMap, Robot.RobotPositionMapmyJointList, myJointMapPROP_CONNECTED, PROP_ENABLED, PROP_ID| Constructor and Description |
|---|
RemoteRobot(RemoteRobotClient client)
Creates a RemoteRobot which uses the given RemoteRobotClient.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
connect()
Sends a command for the remote robot to connect.
|
void |
disconnect()
Sends a command for the remote robot to disconnect.
|
boolean |
isConnected()
Returns the remote robot's connection status.
|
boolean |
isEnabled()
Returns true if the Robot is enabled and accepting commands.
|
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.
|
boolean |
updateRobot()
Updates all cached values.
|
addJoint, clearJoints, getCurrentPositions, getDefaultPositions, getGoalPositions, getJoint, getJointIds, getJointList, getJointName, getRobotId, removeJointaddPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic RemoteRobot(RemoteRobotClient client)
client - client for the remote Robotpublic boolean updateRobot()
public boolean connect()
public void disconnect()
public boolean isConnected()
public void setEnabled(boolean val)
AbstractRobotsetEnabled in interface Robot<RemoteJoint>setEnabled in class AbstractRobot<RemoteJoint>val - enabled valuepublic boolean isEnabled()
AbstractRobotisEnabled in interface Robot<RemoteJoint>isEnabled in class AbstractRobot<RemoteJoint>public void move(Robot.RobotPositionMap positions, long lenMillisec)
Robotpositions - map of Joint logical ids and positionslenMillisec - duration of the movement in millisecondsCopyright © 2011-2014. All Rights Reserved.