Refactor python module structure

This commit is contained in:
Piv
2020-03-05 21:43:22 +10:30
parent 043c8783a4
commit 82a214c209
24 changed files with 20 additions and 120 deletions

View File

@@ -0,0 +1,24 @@
syntax = "proto3";
package MotorControl;
message ThrottleRequest{
float throttle = 1;
}
message ThrottleResponse{
bool throttleSet = 1;
}
message SteeringRequest{
float steering = 1;
}
message SteeringResponse{
bool steeringSet = 1;
}
service CarControl{
rpc SetThrottle(ThrottleRequest) returns (ThrottleResponse){}
rpc SetSteering(SteeringRequest) returns (SteeringResponse){}
}

View File

@@ -0,0 +1,32 @@
syntax = "proto3";
message SlamDetails {
int32 map_size_pixels = 1;
int32 map_size_meters = 2;
int32 port = 3;
}
message SlamRow{
repeated int32 points = 1;
}
message SlamLocation{
float x = 1;
float y = 2;
float theta = 3;
}
message SlamScan{
bytes map = 1;
SlamLocation location = 2;
}
message Empty{
}
service SlamControl {
rpc start_map_streaming(SlamDetails) returns (Empty) {}
rpc stop_streaming(Empty) returns (Empty) {}
}

View File

@@ -0,0 +1,33 @@
syntax = "proto3";
package persontracking;
option java_multiple_files = true;
option java_package = "com.example.carcontroller";
option java_outer_classname = "MotorServiceProto";
message Int32Value{
int32 value = 1;
}
message Empty{
}
message Point{
double angle = 1;
int32 distance = 2;
int32 group_number = 3;
}
message PointScan{
repeated Point points = 1;
}
service PersonTracking{
rpc set_tracking_group(Int32Value) returns (Empty) {}
rpc stop_tracking(Empty) returns (Empty) {}
rpc start_tracking(Int32Value) returns (Empty) {}
}