Skip to content

Commit

Permalink
Modify GoToVector message
Browse files Browse the repository at this point in the history
  • Loading branch information
glannuzel committed Oct 14, 2024
1 parent cff4b8c commit 1f482c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion protos/mobile_base_mobility.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@ message TargetDirectionCommand {

message GoToVector {
reachy.part.PartId id = 1;

google.protobuf.FloatValue x_goal = 2;
google.protobuf.FloatValue y_goal = 3;
google.protobuf.FloatValue theta_goal = 4;

google.protobuf.FloatValue distance_tolerance = 5;
google.protobuf.FloatValue angle_tolerance = 6;

google.protobuf.FloatValue timeout = 10;
}

message SetSpeedVector {
reachy.part.PartId id = 1;

google.protobuf.FloatValue x_vel = 2;
google.protobuf.FloatValue y_vel = 3;
google.protobuf.FloatValue rot_vel = 4;
Expand All @@ -46,10 +53,10 @@ message MobilityServiceAck {
}

service MobileBaseMobilityService {
// Mobility commands
rpc SendDirection(TargetDirectionCommand) returns (MobilityServiceAck);
rpc SendSetSpeed(SetSpeedVector) returns (MobilityServiceAck);
rpc SendGoTo(GoToVector) returns (MobilityServiceAck);

rpc GetLastDirection(reachy.part.PartId) returns (DirectionVector);
rpc DistanceToGoal(reachy.part.PartId) returns (DistanceToGoalVector);
}

0 comments on commit 1f482c2

Please sign in to comment.