Minor refactoring and more support for recording data.

This commit is contained in:
Piv
2020-04-25 15:06:40 +09:30
parent f7bb8cd774
commit 1d2253dd18
6 changed files with 72 additions and 21 deletions

View File

@@ -34,8 +34,8 @@ message SaveRequest{
}
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) {}
rpc set_throttle(ThrottleRequest) returns (ThrottleResponse){}
rpc set_steering(SteeringRequest) returns (SteeringResponse){}
rpc record(RecordingReqeust) returns (google.protobuf.Empty) {}
rpc save_recorded_data(SaveRequest) returns (google.protobuf.Empty) {}
}

View File

@@ -7,6 +7,7 @@ option java_package = "org.vato.carcontroller";
option java_outer_classname = "PersonTrackingProto";
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
message Int32Value{
int32 value = 1;
@@ -22,10 +23,15 @@ message PointScan{
repeated Point points = 1;
}
service PersonTracking{
rpc set_tracking_group(Int32Value) returns (google.protobuf.Empty) {}
rpc stop_tracking(google.protobuf.Empty) returns (google.protobuf.Empty) {}
rpc start_tracking(google.protobuf.Empty) returns (google.protobuf.Empty) {}
rpc record(google.protobuf.BoolValue) returns (google.protobuf.Empty) {}
}