-
Notifications
You must be signed in to change notification settings - Fork 0
/
control.proto
79 lines (62 loc) · 2.14 KB
/
control.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
syntax = "proto3";
import "boat_state.proto";
package boat_control;
enum ControlExecutionStatus {
CONTROL_EXECUTION_UNDEFINED = 0;
CONTROL_EXECUTION_SUCCESS = 1;
CONTROL_EXECUTION_ERROR = 2;
}
message ControlResponse {
ControlExecutionStatus execution_status = 1;
}
message RudderCommand {
float rudder_control_value = 1;
}
message TrimTabCommand {
float trimtab_control_value = 1;
}
message BallastCommand {
float ballast_control_value = 1;
}
message AutonomousModeCommand {
boat_state.AutonomousMode autonomous_mode = 5;
}
message SetWaypointsCommand {
boat_state.WaypointPath new_waypoints = 1;
}
message AddWaypointCommand {
boat_state.Waypoint new_waypoint = 1;
}
message MarkBuoyCommand {
boat_state.Point position = 1;
}
message SetVFForwardMagnitudeCommand {
float magnitude = 1;
}
message SetRudderAdjustmentScaleCommand {
float scale = 1;
}
message SetRudderOvershootBiasCommand {
float bias = 1;
}
message SetCVParametersCommand {
boat_state.CVParameters parameters = 1;
}
message RequestTackCommand {
}
service ControlCommandService {
rpc ExecuteRudderCommand (RudderCommand) returns (ControlResponse);
rpc ExecuteTrimTabCommand (TrimTabCommand) returns (ControlResponse);
rpc ExecuteBallastCommand (BallastCommand) returns (ControlResponse);
rpc ExecuteAutonomousModeCommand (AutonomousModeCommand) returns (ControlResponse);
rpc ExecuteSetWaypointsCommand (SetWaypointsCommand) returns (ControlResponse);
rpc ExecuteAddWaypointCommand (AddWaypointCommand) returns (ControlResponse);
rpc ExecuteMarkBuoyCommand (MarkBuoyCommand) returns (ControlResponse);
rpc ExecuteRequestTackCommand (RequestTackCommand) returns (ControlResponse);
}
service SetParameterService {
rpc ExecuteSetVFForwardMagnitudeCommand (SetVFForwardMagnitudeCommand) returns (ControlResponse);
rpc ExecuteSetRudderAdjustmentScaleCommand (SetRudderAdjustmentScaleCommand) returns (ControlResponse);
rpc ExecuteSetRudderOvershootBiasCommand (SetRudderOvershootBiasCommand) returns (ControlResponse);
rpc ExecuteSetCVParametersCommand (SetCVParametersCommand) returns (ControlResponse);
}