diff --git a/ChangeLog.md b/ChangeLog.md index 25cce82c..7ea0c6b3 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,21 @@ # ChangeLog +## [1.0.8] - 2024-10-24 + +### Added +- ServerParams.pitch_margin + +### Fixed +- + +### Changed +- + +### Engineers +- [SoroushMazloum](https://github.com/SoroushMazloum) + +======= + ## [1.0.7] - 2024-10-22 ### Added diff --git a/idl/grpc/service.proto b/idl/grpc/service.proto index ade59358..e5636310 100644 --- a/idl/grpc/service.proto +++ b/idl/grpc/service.proto @@ -1,4 +1,4 @@ -// version 1.7 +// version 1.8 syntax = "proto3"; @@ -1194,6 +1194,7 @@ message ServerParam { float goal_area_length = 224; float center_circle_r = 225; float goal_post_radius = 226; + float pitch_margin = 227; } message PlayerParam { diff --git a/idl/thrift/soccer_service.thrift b/idl/thrift/soccer_service.thrift index c17bccc3..abf13029 100644 --- a/idl/thrift/soccer_service.thrift +++ b/idl/thrift/soccer_service.thrift @@ -1,4 +1,4 @@ -// version 1.7 +// version 1.8 namespace cpp soccer namespace py soccer @@ -1152,7 +1152,8 @@ struct ServerParam { 223: double goal_area_width, 224: double goal_area_length, 225: double center_circle_r, - 226: double goal_post_radius + 226: double goal_post_radius, + 227: double pitch_margin } struct PlayerParam { diff --git a/src/grpc-client/grpc_client.cpp b/src/grpc-client/grpc_client.cpp index 4cb07185..8642ed46 100644 --- a/src/grpc-client/grpc_client.cpp +++ b/src/grpc-client/grpc_client.cpp @@ -281,6 +281,7 @@ void GrpcClient::sendServerParam() const serverParam.set_goal_area_length(SP.goalAreaLength()); serverParam.set_center_circle_r(SP.centerCircleR()); serverParam.set_goal_post_radius(SP.goalPostRadius()); + serverParam.set_pitch_margin(SP.pitchMargin()); ClientContext context; protos::Empty empty; protos::RegisterResponse* response = new protos::RegisterResponse(*M_register_response); diff --git a/src/thrift-client/thrift_client.cpp b/src/thrift-client/thrift_client.cpp index f2e7b0a4..7a92b33e 100644 --- a/src/thrift-client/thrift_client.cpp +++ b/src/thrift-client/thrift_client.cpp @@ -262,6 +262,7 @@ void ThriftAgent::sendServerParam() const serverParam.goal_area_length = SP.goalAreaLength(); serverParam.center_circle_r = SP.centerCircleR(); serverParam.goal_post_radius = SP.goalPostRadius(); + serverParam.pitch_margin = SP.pitchMargin(); try{ soccer::Empty empty; serverParam.register_response = M_register_response;