ros2-interfaces-rolling 0.0.1

Structs for Messages and Services listed by ROS Index for ROS2 Rolling. Built around the `ros2-client` crate.
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Shape {
    #[serde(rename = "type")]    pub type_: u8,
    pub footprint: crate::geometry_msgs::msg::Polygon,
    pub dimensions: crate::geometry_msgs::msg::Vector3,
}

impl Shape {
    pub const BOUNDING_BOX: u8 = 0;
    pub const CYLINDER: u8 = 1;
    pub const POLYGON: u8 = 2;
}

impl Default for Shape {
    fn default() -> Self {
        Shape {
            type_: 0,
            footprint: crate::geometry_msgs::msg::Polygon::default(),
            dimensions: crate::geometry_msgs::msg::Vector3::default(),
        }
    }
}

impl ros2_client::Message for Shape {}