rosbag2_image_loader 0.1.1

Data loader for rosbag2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Topic struct
#[derive(Debug)]
pub struct Topic {
    pub id: u16,
    pub name: String,
    pub topic_type: String,
    pub serialization_format: String,
    pub offered_qos_profiles: String,
}

impl Topic {
    pub fn is_image_topic(&self) -> bool {
        matches!(
            self.topic_type.as_str(),
            "sensor_msgs/msg/Image" | "sensor_msgs/msg/CompressedImage"
        )
    }
}