ros2_interfaces_rolling/game_controller_spl_interfaces/msg/
rcgcrd4.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct RCGCRD4 {
    pub player_num: u8, // default: 0
    pub team_num: u8, // default: 0
    pub fallen: u8, // default: 0
    pub pose: [f32; 3], // default: [0.0, 0.0, 0.0]
    pub ball_age: f32, // default: -1.0
    pub ball: [f32; 2], // default: [0.0, 0.0]
}

impl Default for RCGCRD4 {
    fn default() -> Self {
        RCGCRD4 {
            player_num: 0,
            team_num: 0,
            fallen: 0,
            pose: [0.0, 0.0, 0.0],
            ball_age: -1.0,
            ball: [0.0, 0.0],
        }
    }
}

impl ros2_client::Message for RCGCRD4 {}