Skip to content

Commit

Permalink
Add streaming twist state w/o commanding (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerman342 authored Mar 16, 2023
1 parent bd92c6a commit 5eb7779
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion protos/farm_ng/canbus/canbus.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ service CanbusService {
rpc streamMotorStates(StreamMotorStatesRequest)
returns (stream StreamMotorStatesReply) {}

// Streams twist vehicle commands on the CAN bus
// Streams vehicle twist states received on the CAN bus
rpc streamVehicleTwistState(StreamVehicleTwistStateRequest)
returns (stream StreamVehicleTwistStateReply) {}

// Sends twist vehicle commands on the CAN bus
// and responds with the most recent received twist state.
rpc sendVehicleTwistCommand(stream SendVehicleTwistCommandRequest)
returns (stream SendVehicleTwistCommandReply) {}
}
Expand Down Expand Up @@ -59,6 +64,18 @@ message Twist2d {
float angular_velocity = 3;
}

// Message to send a twist command to the vehicle
message StreamVehicleTwistStateRequest {
}

// Message to send a twist command to the vehicle
message StreamVehicleTwistStateReply {
// The time the message is "received" / "sent" on the canbus
double stamp = 1;
// The state of the vehicle
Twist2d state = 2;
}

// Message to send a twist command to the vehicle
message SendVehicleTwistCommandRequest {
// The commanded twist to the vehicle
Expand Down

0 comments on commit 5eb7779

Please sign in to comment.