ros2_interfaces_rolling/rcss3d_agent_msgs/msg/
vision.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
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Vision {
    pub ball: Vec<crate::rcss3d_agent_msgs::msg::Ball>,
    pub field_lines: Vec<crate::rcss3d_agent_msgs::msg::FieldLine>,
    pub flags: Vec<crate::rcss3d_agent_msgs::msg::Flag>,
    pub goalposts: Vec<crate::rcss3d_agent_msgs::msg::Goalpost>,
    pub players: Vec<crate::rcss3d_agent_msgs::msg::Player>,
}

impl Default for Vision {
    fn default() -> Self {
        Vision {
            ball: Vec::new(),
            field_lines: Vec::new(),
            flags: Vec::new(),
            goalposts: Vec::new(),
            players: Vec::new(),
        }
    }
}

impl ros2_client::Message for Vision {}