Package com.rcll.robot
Class RobotClient
- java.lang.Object
-
- com.rcll.robot.RobotClient
-
public class RobotClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected RobotConnectionsrobotConnectionsprotected booleanrobotsStoppedprotected RobotTaskCreatorrobotTaskCreator
-
Constructor Summary
Constructors Constructor Description RobotClient(int robotConnectionTimeout)RobotClient(RobotTaskCreator robotTaskCreator, int robotConnectionTimeout)RobotClient(RobotTaskCreator robotTaskCreator, RobotConnections robotConnections)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelOnAll()voidcancelTask(long robotId)RobotBeacongetBeaconForRobot(java.lang.Long robotId)java.lang.IntegergetRobotCount()booleanisRobotsStopped()voidsendBufferCap(java.lang.Long robotId, java.lang.Long taskId, MachineName machine, java.lang.Integer shelf)voidsendDeliverTaskToRobot(@NonNull java.lang.Long robotId, @NonNull java.lang.Long taskId, @NonNull java.lang.String machine, @NonNull MachineSide side, java.lang.Integer machineCount)voidsendDummyTaskToRobot(@NonNull java.lang.Long robotId, @NonNull java.lang.String machine, MachineSide side)voidsendGetTaskToRobot(@NonNull java.lang.Long robotId, @NonNull java.lang.Long taskId, @NonNull java.lang.String machine, MachineSide side, java.lang.Integer machineCount)voidsendMoveTask(java.lang.Long robotId, java.lang.Long taskId, MachineName machineName, MachineSide side)voidsendMoveToZoneTask(java.lang.Long robotId, java.lang.Long taskId, java.lang.String zone)voidsendPrsTaskToRobot(org.robocup_logistics.llsf_msgs.AgentTasksProtos.AgentTask task)<T extends com.google.protobuf.GeneratedMessageV3>
voidsendToRobot(long robot_id, T msg)voidsendWaitingTaskToRobot(@NonNull java.lang.Long robotId, @NonNull java.lang.String zone)voidstartAllRobots()voidstopAllRobots()
-
-
-
Field Detail
-
robotsStopped
protected boolean robotsStopped
-
robotTaskCreator
protected final RobotTaskCreator robotTaskCreator
-
robotConnections
protected final RobotConnections robotConnections
-
-
Constructor Detail
-
RobotClient
public RobotClient(RobotTaskCreator robotTaskCreator, RobotConnections robotConnections)
-
RobotClient
public RobotClient(RobotTaskCreator robotTaskCreator, int robotConnectionTimeout)
-
RobotClient
public RobotClient(int robotConnectionTimeout)
-
-
Method Detail
-
isRobotsStopped
public boolean isRobotsStopped()
-
cancelOnAll
public void cancelOnAll()
-
cancelTask
public void cancelTask(long robotId)
-
sendDummyTaskToRobot
public void sendDummyTaskToRobot(@NonNull @NonNull java.lang.Long robotId, @NonNull @NonNull java.lang.String machine, MachineSide side)
-
sendDeliverTaskToRobot
public void sendDeliverTaskToRobot(@NonNull @NonNull java.lang.Long robotId, @NonNull @NonNull java.lang.Long taskId, @NonNull @NonNull java.lang.String machine, @NonNull @NonNull MachineSide side, java.lang.Integer machineCount)
-
sendWaitingTaskToRobot
public void sendWaitingTaskToRobot(@NonNull @NonNull java.lang.Long robotId, @NonNull @NonNull java.lang.String zone)
-
sendGetTaskToRobot
public void sendGetTaskToRobot(@NonNull @NonNull java.lang.Long robotId, @NonNull @NonNull java.lang.Long taskId, @NonNull @NonNull java.lang.String machine, MachineSide side, java.lang.Integer machineCount)
-
stopAllRobots
public void stopAllRobots()
-
startAllRobots
public void startAllRobots()
-
sendToRobot
public <T extends com.google.protobuf.GeneratedMessageV3> void sendToRobot(long robot_id, @NonNull T msg)
-
sendPrsTaskToRobot
public void sendPrsTaskToRobot(org.robocup_logistics.llsf_msgs.AgentTasksProtos.AgentTask task)
-
sendBufferCap
public void sendBufferCap(java.lang.Long robotId, java.lang.Long taskId, MachineName machine, java.lang.Integer shelf)
-
sendMoveTask
public void sendMoveTask(java.lang.Long robotId, java.lang.Long taskId, MachineName machineName, MachineSide side)
-
sendMoveToZoneTask
public void sendMoveToZoneTask(java.lang.Long robotId, java.lang.Long taskId, java.lang.String zone)
-
getRobotCount
public java.lang.Integer getRobotCount()
-
getBeaconForRobot
public RobotBeacon getBeaconForRobot(java.lang.Long robotId)
-
-