From 24e42582640b07bb5733f3dff9111f39c79bd964 Mon Sep 17 00:00:00 2001 From: mbsaloka Date: Sun, 19 May 2024 21:05:01 +0700 Subject: [PATCH] feat: add service to send app status --- proto/aruku.proto | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/proto/aruku.proto b/proto/aruku.proto index 1755c14..261593c 100644 --- a/proto/aruku.proto +++ b/proto/aruku.proto @@ -8,8 +8,10 @@ service Config { rpc SaveConfig (ConfigWalking) returns (Empty) {} rpc PublishConfig (ConfigWalking) returns (Empty){} - + rpc SetMainConfig (SetWalking) returns (Empty) {} + + rpc SetAppStatus (AppStatus) returns (Empty) {} } message Empty {} @@ -25,18 +27,22 @@ message ConfigWalking { } message SetWalking { - bool run = 1; - double x_move = 2; - double y_move = 3; - double a_move = 4; - bool aim_on = 5; + bool run = 1; + double x_move = 2; + double y_move = 3; + double a_move = 4; + bool aim_on = 5; } message Status { - bool is_running = 1; - double x_amplitude = 2; - double y_amplitude = 3; - double a_amplitude = 4; - Point2 odometry = 5; + bool is_running = 1; + double x_amplitude = 2; + double y_amplitude = 3; + double a_amplitude = 4; + Point2 odometry = 5; } +message AppStatus { + bool action_manager_status = 1; + bool walk_setting_status = 2; +}