Skip to content

Commit df8123a

Browse files
authored
Merge pull request #40 from SoroushMazloum/develop_issues
Serverparams.pitch_margin
2 parents 48f0930 + c1471c5 commit df8123a

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

ChangeLog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# ChangeLog
22

3+
## [1.0.8] - 2024-10-24
4+
5+
### Added
6+
- ServerParams.pitch_margin
7+
8+
### Fixed
9+
-
10+
11+
### Changed
12+
-
13+
14+
### Engineers
15+
- [SoroushMazloum](https://github.com/SoroushMazloum)
16+
17+
=======
18+
319
## [1.0.7] - 2024-10-22
420

521
### Added

idl/grpc/service.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// version 1.7
1+
// version 1.8
22

33
syntax = "proto3";
44

@@ -1194,6 +1194,7 @@ message ServerParam {
11941194
float goal_area_length = 224;
11951195
float center_circle_r = 225;
11961196
float goal_post_radius = 226;
1197+
float pitch_margin = 227;
11971198
}
11981199

11991200
message PlayerParam {

idl/thrift/soccer_service.thrift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// version 1.7
1+
// version 1.8
22

33
namespace cpp soccer
44
namespace py soccer
@@ -1152,7 +1152,8 @@ struct ServerParam {
11521152
223: double goal_area_width,
11531153
224: double goal_area_length,
11541154
225: double center_circle_r,
1155-
226: double goal_post_radius
1155+
226: double goal_post_radius,
1156+
227: double pitch_margin
11561157
}
11571158

11581159
struct PlayerParam {

src/grpc-client/grpc_client.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ void GrpcClient::sendServerParam() const
281281
serverParam.set_goal_area_length(SP.goalAreaLength());
282282
serverParam.set_center_circle_r(SP.centerCircleR());
283283
serverParam.set_goal_post_radius(SP.goalPostRadius());
284+
serverParam.set_pitch_margin(SP.pitchMargin());
284285
ClientContext context;
285286
protos::Empty empty;
286287
protos::RegisterResponse* response = new protos::RegisterResponse(*M_register_response);

src/thrift-client/thrift_client.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ void ThriftAgent::sendServerParam() const
262262
serverParam.goal_area_length = SP.goalAreaLength();
263263
serverParam.center_circle_r = SP.centerCircleR();
264264
serverParam.goal_post_radius = SP.goalPostRadius();
265+
serverParam.pitch_margin = SP.pitchMargin();
265266
try{
266267
soccer::Empty empty;
267268
serverParam.register_response = M_register_response;

0 commit comments

Comments
 (0)