Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion idl/grpc/service.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// version 1.7
// version 1.8

syntax = "proto3";

Expand Down Expand Up @@ -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 {
Expand Down
5 changes: 3 additions & 2 deletions idl/thrift/soccer_service.thrift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// version 1.7
// version 1.8

namespace cpp soccer
namespace py soccer
Expand Down Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/grpc-client/grpc_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/thrift-client/thrift_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down