org.robokind.api.motion.messaging
Class RemoteRobotClient
java.lang.Object
org.robokind.api.motion.messaging.RemoteRobotClient
public class RemoteRobotClient
- extends Object
- Author:
- Matthew Stevenson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TIMEOUT_LENGTH
public static final int DEFAULT_TIMEOUT_LENGTH
- See Also:
- Constant Field Values
RemoteRobotClient
public RemoteRobotClient(Robot.Id robotId,
String sourceId,
String destId,
RobotRequestFactory reqFact)
setRequestSender
public void setRequestSender(MessageSender<RobotRequest,?,Listener<RobotRequest>> reqSender)
setResponseReceiver
public void setResponseReceiver(MessageBlockingReceiver<RobotResponse,?,Listener<RobotResponse>> respRec)
setMotionFrameSender
public void setMotionFrameSender(MotionFrameSender frameSender)
getRobotId
public Robot.Id getRobotId()
getSourceId
public String getSourceId()
getDestinationId
public String getDestinationId()
requestRobotDefinition
public RobotDefinitionResponse requestRobotDefinition()
sendConnect
public boolean sendConnect()
sendDisconnect
public boolean sendDisconnect()
getConnected
public boolean getConnected()
sendEnable
public boolean sendEnable()
sendDisable
public boolean sendDisable()
getEnabled
public boolean getEnabled()
sendJointEnable
public boolean sendJointEnable(Robot.JointId jointId)
sendJointDisable
public boolean sendJointDisable(Robot.JointId jointId)
getJointEnabled
public boolean getJointEnabled(Robot.JointId jointId)
requestDefaultPositions
public Robot.RobotPositionMap requestDefaultPositions()
requestGoalPositions
public Robot.RobotPositionMap requestGoalPositions()
requestCurrentPositions
public Robot.RobotPositionMap requestCurrentPositions()
sendMovement
public void sendMovement(MotionFrame frame)
Copyright © 2011-2012. All Rights Reserved.