ros2_interfaces_rolling/game_controller_spl_interfaces/msg/
rcgcrd4.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct RCGCRD4 {
5    pub player_num: u8, // default: 0
6    pub team_num: u8, // default: 0
7    pub fallen: u8, // default: 0
8    pub pose: [f32; 3], // default: [0.0, 0.0, 0.0]
9    pub ball_age: f32, // default: -1.0
10    pub ball: [f32; 2], // default: [0.0, 0.0]
11}
12
13impl Default for RCGCRD4 {
14    fn default() -> Self {
15        RCGCRD4 {
16            player_num: 0,
17            team_num: 0,
18            fallen: 0,
19            pose: [0.0, 0.0, 0.0],
20            ball_age: -1.0,
21            ball: [0.0, 0.0],
22        }
23    }
24}
25
26impl ros2_client::Message for RCGCRD4 {}