ros2_interfaces_rolling/graph_msgs/msg/
edges.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Edges {
    pub node_ids: Vec<u32>,
    pub weights: Vec<f64>,
}

impl Default for Edges {
    fn default() -> Self {
        Edges {
            node_ids: Vec::new(),
            weights: Vec::new(),
        }
    }
}

impl ros2_client::Message for Edges {}