Add motor control with grpc
This commit is contained in:
33
MotorControl/protos/motorService.proto
Normal file
33
MotorControl/protos/motorService.proto
Normal file
@@ -0,0 +1,33 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package MotorControl;
|
||||
|
||||
message ThrottleRequest{
|
||||
float throttle = 1;
|
||||
}
|
||||
|
||||
message ThrottleResponse{
|
||||
bool throttleSet = 1;
|
||||
}
|
||||
|
||||
message SteeringRequest{
|
||||
float steering = 1;
|
||||
}
|
||||
|
||||
message SteeringResponse{
|
||||
bool steeringSet = 1;
|
||||
}
|
||||
|
||||
message HeartbeatCheck{
|
||||
bool continue = 1;
|
||||
}
|
||||
|
||||
message HeartbeatCheckResponse{
|
||||
string errorMessage = 1;
|
||||
}
|
||||
|
||||
service CarControl{
|
||||
rpc SetThrottle(ThrottleRequest) returns (ThrottleResponse){}
|
||||
rpc SetSteering(SteeringRequest) returns (SteeringResponse){}
|
||||
rpc Heartbeat(stream HeartbeatCheck) returns (HeartbeatCheckResponse){}
|
||||
}
|
||||
Reference in New Issue
Block a user