removed string fields from proto, replace repeated waypoints, switched double types to int32
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "Connect";
|
||||
|
||||
message ConnectionRequest {
|
||||
string ip = 1;
|
||||
repeated int32 ipValues
|
||||
int32 port = 2;
|
||||
}
|
||||
|
||||
message ConnectionResponse {
|
||||
int32 uid = 1;
|
||||
int32 code = 2;
|
||||
string errorMsg = 3;
|
||||
|
||||
int32 code = 2;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "Direction";
|
||||
|
||||
message DirectionRequest {
|
||||
enum Command {
|
||||
stop = 0;
|
||||
@@ -18,5 +15,4 @@ message DirectionRequest {
|
||||
|
||||
message DirectionResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "Location";
|
||||
|
||||
message LocationResponse {
|
||||
|
||||
LocationData locationResponseData = 1;
|
||||
int32 code = 2;
|
||||
string errorMsg = 3;
|
||||
|
||||
message LocationData {
|
||||
double x = 1;
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "RcSession";
|
||||
|
||||
//session up request is empty. only URL
|
||||
message SessionUpResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
int32 sid = 3;
|
||||
}
|
||||
|
||||
message SessionDownResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
}
|
||||
|
||||
message SessionDownRequest {
|
||||
@@ -26,5 +21,4 @@ message HeartBeatRequest {
|
||||
|
||||
message HeartBeatResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
}
|
||||
|
||||
@@ -1,19 +1,11 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "Route";
|
||||
|
||||
message RouteRequest {
|
||||
repeated WayPoint way_points = 1;
|
||||
|
||||
message WayPoint {
|
||||
double distance = 2;
|
||||
double angle_delta = 3;
|
||||
}
|
||||
repeated int32 distances = 1;
|
||||
repeated int32 angles = 2;
|
||||
}
|
||||
|
||||
message RouteResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "RouteDone";
|
||||
|
||||
message RouteDoneRequest {
|
||||
int32 uid = 1;
|
||||
}
|
||||
|
||||
message RouteDoneResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user