24 lines
424 B
Protocol Buffer
24 lines
424 B
Protocol Buffer
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(stream ThrottleRequest) returns (ThrottleResponse){}
|
|
rpc SetSteering(stream SteeringRequest) returns (SteeringResponse){}
|
|
} |