ros2_interfaces_jazzy/rtabmap_msgs/msg/
node.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Node {
5 pub id: i32,
6 pub map_id: i32,
7 pub weight: i32,
8 pub stamp: f64,
9 pub label: ::std::string::String,
10 pub pose: crate::geometry_msgs::msg::Pose,
11 pub word_id_keys: Vec<i32>,
12 pub word_id_values: Vec<i32>,
13 pub word_kpts: Vec<crate::rtabmap_msgs::msg::KeyPoint>,
14 pub word_pts: Vec<crate::rtabmap_msgs::msg::Point3f>,
15 pub word_descriptors: Vec<u8>,
16 pub data: crate::rtabmap_msgs::msg::SensorData,
17}
18
19impl Default for Node {
20 fn default() -> Self {
21 Node {
22 id: 0,
23 map_id: 0,
24 weight: 0,
25 stamp: 0.0,
26 label: ::std::string::String::new(),
27 pose: crate::geometry_msgs::msg::Pose::default(),
28 word_id_keys: Vec::new(),
29 word_id_values: Vec::new(),
30 word_kpts: Vec::new(),
31 word_pts: Vec::new(),
32 word_descriptors: Vec::new(),
33 data: crate::rtabmap_msgs::msg::SensorData::default(),
34 }
35 }
36}
37
38impl ros2_client::Message for Node {}