37 MissionControlProtocol(SingleClientWSServer& server);
38 ~MissionControlProtocol();
39 MissionControlProtocol(
const MissionControlProtocol& other) =
delete;
40 MissionControlProtocol& operator=(
const MissionControlProtocol& other) =
delete;
43 SingleClientWSServer& _server;
50 void handleEmergencyStopRequest(
const json& j);
51 void handleOperationModeRequest(
const json& j);
52 void handleTankDriveRequest(
const json& j);
53 void handleCameraStreamOpenRequest(
const json& j);
54 void handleCameraStreamCloseRequest(
const json& j);
55 void handleCameraFrameRequest(
const json& j);
56 void handleJointPowerRequest(
const json& j);
57 void handleJointPositionRequest([[maybe_unused]]
const json& j);
58 void handleWaypointNavRequest(
const json& j);
59 void handleDriveRequest(
const json& j);
60 void handleRequestArmIKEnabled(
const json& j);
61 void handleServoPositionRequest(
const json& j);
62 void handleStepperTurnAngleRequest(
const json& j);
63 void sendArmIKEnabledReport(
bool enabled);
64 void handleConnection();
65 void handleHeartbeatTimedOut();
66 void stopAndShutdownPowerRepeat(
bool sendDisableIK);
68 void setArmIKEnabled(
bool enabled,
bool sendReport =
true);
69 void setRequestedJointPower(jointid_t joint,
double power);
70 void setRequestedCmdVel(
double dtheta,
double dx);
71 void setRequestedTankCmdVel(
double left,
double right);