ros2_interfaces_rolling/ros_gz_interfaces/msg/
entity.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Entity {
5    pub id: u64,
6    pub name: ::std::string::String,
7    #[serde(rename = "type")]    pub type_: u8,
8}
9
10impl Entity {
11    pub const NONE: u8 = 0;
12    pub const LIGHT: u8 = 1;
13    pub const MODEL: u8 = 2;
14    pub const LINK: u8 = 3;
15    pub const VISUAL: u8 = 4;
16    pub const COLLISION: u8 = 5;
17    pub const SENSOR: u8 = 6;
18    pub const JOINT: u8 = 7;
19}
20
21impl Default for Entity {
22    fn default() -> Self {
23        Entity {
24            id: 0,
25            name: ::std::string::String::new(),
26            type_: 0,
27        }
28    }
29}
30
31impl ros2_client::Message for Entity {}