ros2_interfaces_rolling/autoware_perception_msgs/msg/
object_classification.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct ObjectClassification {
5 pub label: u8,
6 pub probability: f32,
7}
8
9impl ObjectClassification {
10 pub const UNKNOWN: u8 = 0;
11 pub const CAR: u8 = 1;
12 pub const TRUCK: u8 = 2;
13 pub const BUS: u8 = 3;
14 pub const TRAILER: u8 = 4;
15 pub const MOTORCYCLE: u8 = 5;
16 pub const BICYCLE: u8 = 6;
17 pub const PEDESTRIAN: u8 = 7;
18}
19
20impl Default for ObjectClassification {
21 fn default() -> Self {
22 ObjectClassification {
23 label: 0,
24 probability: 0.0,
25 }
26 }
27}
28
29impl ros2_client::Message for ObjectClassification {}