Skip to content

Commit 68c1a75

Browse files
authored
Add Player.body_count
add: Player.body_count
2 parents be22150 + 0396823 commit 68c1a75

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
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.1.4] - 2025-07-05
4+
5+
### Added
6+
- Player.body_count
7+
8+
### Fixed
9+
-
10+
11+
### Changed
12+
-
13+
14+
### Developers
15+
- [SoroushMazloum](https://github.com/SoroushMazloum)
16+
17+
=======
18+
319
## [1.1.3] - 2024-12-15
420

521
### Added

idl/grpc/service.proto

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

33
syntax = "proto3";
44

@@ -173,7 +173,8 @@ message Player {
173173
int32 ball_reach_steps = 28; // How many cycles the player needs to reach the ball.
174174
bool is_tackling = 29; // Whether the player is tackling or not.
175175
int32 type_id = 30; // The type identifier of the player.
176-
RpcVector2D inertia_final_point = 31;
176+
RpcVector2D inertia_final_point = 31; // Estimate final reach point
177+
int32 body_count = 32; // Get global body angle accuracy (count from last observation)
177178
}
178179

179180
/**

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.9
1+
// version 1.10
22

33
namespace cpp soccer
44
namespace py soccer
@@ -147,7 +147,8 @@ struct Player {
147147
28: i32 ball_reach_steps,
148148
29: bool is_tackling,
149149
30: i32 type_id,
150-
31: RpcVector2D inertia_final_point
150+
31: RpcVector2D inertia_final_point,
151+
32: i32 body_count
151152
}
152153

153154
struct Self {

src/grpc-client/state_generator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ void StateGenerator::updatePlayerObject(protos::Player *p, const rcsc::PlayerObj
290290
p->set_is_tackling(player->isTackling());
291291
p->set_type_id(player->playerTypePtr()->id());
292292
p->set_allocated_inertia_final_point(convertVector2D(player->inertiaFinalPoint()));
293+
p->set_body_count(player->bodyCount());
293294
}
294295

295296
/**

src/thrift-client/thrift_state_generator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ void ThriftStateGenerator::updatePlayerObject(soccer::Player & p, const rcsc::Pl
306306
p.type_id = player->playerTypePtr()->id();
307307
}
308308
p.inertia_final_point = convertVector2D(player->inertiaFinalPoint());
309+
p.body_count = player->bodyCount();
309310
}
310311

311312
/**

0 commit comments

Comments
 (0)