Add recording functionality, did some other minor tweaks as well to protos
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_multiple_files = true;
|
||||
option java_package = "org.vato.carcontroller";
|
||||
option java_outer_classname = "EmptyProto";
|
||||
|
||||
message Empty{
|
||||
|
||||
}
|
||||
@@ -4,7 +4,7 @@ option java_multiple_files = true;
|
||||
option java_package = "org.vato.carcontroller";
|
||||
option java_outer_classname = "SlamControllerProto";
|
||||
|
||||
import "car/empty.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
message SlamDetails {
|
||||
int32 map_size_pixels = 1;
|
||||
@@ -27,7 +27,7 @@ message SlamScan{
|
||||
}
|
||||
|
||||
service SlamControl {
|
||||
rpc start_map_streaming(SlamDetails) returns (Empty) {}
|
||||
rpc start_map_streaming(SlamDetails) returns (google.protobuf.Empty) {}
|
||||
|
||||
rpc stop_streaming(Empty) returns (Empty) {}
|
||||
rpc stop_streaming(google.protobuf.Empty) returns (google.protobuf.Empty) {}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ option java_multiple_files = true;
|
||||
option java_package = "org.vato.carcontroller";
|
||||
option java_outer_classname = "PersonTrackingProto";
|
||||
|
||||
import "car/empty.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
message Int32Value{
|
||||
int32 value = 1;
|
||||
@@ -23,9 +23,9 @@ message PointScan{
|
||||
}
|
||||
|
||||
service PersonTracking{
|
||||
rpc set_tracking_group(Int32Value) returns (Empty) {}
|
||||
rpc set_tracking_group(Int32Value) returns (google.protobuf.Empty) {}
|
||||
|
||||
rpc stop_tracking(Empty) returns (Empty) {}
|
||||
rpc stop_tracking(google.protobuf.Empty) returns (google.protobuf.Empty) {}
|
||||
|
||||
rpc start_tracking(Empty) returns (Empty) {}
|
||||
rpc start_tracking(google.protobuf.Empty) returns (google.protobuf.Empty) {}
|
||||
}
|
||||
Reference in New Issue
Block a user