Add recording functionality, did some other minor tweaks as well to protos

This commit is contained in:
Piv
2020-04-22 20:57:41 +09:30
parent f44877397c
commit 54770d7675
15 changed files with 184 additions and 29 deletions

View File

@@ -7,6 +7,8 @@ option java_multiple_files = true;
option java_package = "org.vato.carcontroller";
option java_outer_classname = "MotorServiceProto";
import "google/protobuf/empty.proto";
message ThrottleRequest{
float throttle = 1;
}
@@ -23,7 +25,17 @@ message SteeringResponse{
bool steeringSet = 1;
}
message RecordingReqeust{
bool record = 1;
}
message SaveRequest{
string file = 1;
}
service CarControl{
rpc SetThrottle(ThrottleRequest) returns (ThrottleResponse){}
rpc SetSteering(SteeringRequest) returns (SteeringResponse){}
}
rpc Record(RecordingReqeust) returns (google.protobuf.Empty) {}
rpc SaveRecordedData(SaveRequest) returns (google.protobuf.Empty) {}
}