diff --git a/proto/protofiles_sources/server_car/connect.proto b/proto/protofiles_sources/server_car/connect.proto index 49df5b9aaa9..3d8efc51af8 100644 --- a/proto/protofiles_sources/server_car/connect.proto +++ b/proto/protofiles_sources/server_car/connect.proto @@ -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; } diff --git a/proto/protofiles_sources/server_car/direction.proto b/proto/protofiles_sources/server_car/direction.proto index 8a95b0053be..eb312e6ebad 100644 --- a/proto/protofiles_sources/server_car/direction.proto +++ b/proto/protofiles_sources/server_car/direction.proto @@ -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; } diff --git a/proto/protofiles_sources/server_car/location.proto b/proto/protofiles_sources/server_car/location.proto index 0d477c8217e..20397312b10 100644 --- a/proto/protofiles_sources/server_car/location.proto +++ b/proto/protofiles_sources/server_car/location.proto @@ -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; diff --git a/proto/protofiles_sources/server_car/rc_session.proto b/proto/protofiles_sources/server_car/rc_session.proto index d3b6a456172..e10bdca4575 100644 --- a/proto/protofiles_sources/server_car/rc_session.proto +++ b/proto/protofiles_sources/server_car/rc_session.proto @@ -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; } diff --git a/proto/protofiles_sources/server_car/route.proto b/proto/protofiles_sources/server_car/route.proto index 864845be2f0..4b1437cae32 100644 --- a/proto/protofiles_sources/server_car/route.proto +++ b/proto/protofiles_sources/server_car/route.proto @@ -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; } diff --git a/proto/protofiles_sources/server_car/route_done.proto b/proto/protofiles_sources/server_car/route_done.proto index c9b9ab9fdd6..efad77bb7be 100644 --- a/proto/protofiles_sources/server_car/route_done.proto +++ b/proto/protofiles_sources/server_car/route_done.proto @@ -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; }