| Package | Description |
|---|---|
| org.robokind.api.motion.messaging |
| Modifier and Type | Interface and Description |
|---|---|
interface |
RobotRequestFactory<Req extends RobotRequest>
Factory for creating new RobotRequest Messages.
|
| Modifier and Type | Method and Description |
|---|---|
protected Joint |
RemoteRobotHost.getRequestedJoint(RobotRequest req)
Retrieves the Joint specified in the RobotRequest.
|
protected void |
RemoteRobotHost.handleConnectionStatusRequest(RobotRequest req)
Creates and sends a RobotStatusResponse with the Robot's connection
status
|
protected void |
RemoteRobotHost.handleConnectRequest(RobotRequest req)
Calls
connect() on the hosted Robot. |
protected void |
RemoteRobotHost.handleCurrentPositionRequest(RobotRequest req)
Sends a RobotPositionResponse with the Robot's current positions.
|
protected void |
RemoteRobotHost.handleDefaultPositionRequest(RobotRequest req)
Sends a RobotPositionResponse with the Robot's default positions.
|
protected void |
RemoteRobotHost.handleDefinitionRequest(RobotRequest req)
Creates and sends a RobotDefinitionResponse.
|
protected void |
RemoteRobotHost.handleDisableRequest(RobotRequest req)
Calls
setEnabled(false) on the hosted Robot. |
protected void |
RemoteRobotHost.handleDisableRequestForJoint(RobotRequest req)
Calls
setEnabled(true) on the hosted Robot's Joint. |
protected void |
RemoteRobotHost.handleDisconnectRequest(RobotRequest req)
Calls
disconnect() on the hosted Robot. |
protected void |
RemoteRobotHost.handleEnabledStatusRequest(RobotRequest req)
Creates and sends a RobotStatusResponse with the Robot's enabled status
|
protected void |
RemoteRobotHost.handleEnabledStatusRequestForJoint(RobotRequest req)
Creates and sends a RobotStatusResponse with the Joint's connection
status
|
protected void |
RemoteRobotHost.handleEnableRequest(RobotRequest req)
Calls
setEnabled(true) on the hosted Robot. |
protected void |
RemoteRobotHost.handleEnableRequestForJoint(RobotRequest req)
Calls
setEnabled(true) on the hosted Robot's Joint. |
protected void |
RemoteRobotHost.handleGoalPositionRequest(RobotRequest req)
Sends a RobotPositionResponse with the Robot's goal positions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RemoteRobotHost.setRequestReceiver(org.jflux.api.messaging.rk.MessageAsyncReceiver<RobotRequest> receiver)
Sets the MessageReceiver to receive RobotRequests.
|
void |
RemoteRobotClient.setRequestSender(org.jflux.api.messaging.rk.MessageSender<RobotRequest> reqSender)
Sets the MessageSender to send RobotRequests.
|
| Constructor and Description |
|---|
RemoteRobotHost(Robot robot,
String sourceId,
String destinationId,
org.jflux.api.messaging.rk.MessageSender<RobotResponse> sender,
org.jflux.api.messaging.rk.MessageAsyncReceiver<RobotRequest> receiver,
RobotResponseFactory factory,
org.jflux.api.messaging.rk.MessageAsyncReceiver<MotionFrameEvent> motionFrameReceiver,
org.jflux.api.core.Listener<MotionFrameEvent> moveHandler)
Creates a new RemoteRobotHost to host the given Robot.
|
Copyright © 2011-2014. All Rights Reserved.