#[repr(C)]pub struct SolidPrimitive {
pub type: u8,
pub dimensions: F64Seq<3>,
pub polygon: Polygon,
}Fields§
§type: u8§dimensions: F64Seq<3>§polygon: PolygonImplementations§
Source§impl SolidPrimitive
impl SolidPrimitive
pub const BOX: u8 = 1
pub const SPHERE: u8 = 2
pub const CYLINDER: u8 = 3
pub const CONE: u8 = 4
pub const PRISM: u8 = 5
pub const BOX_X: u8 = 0
pub const BOX_Y: u8 = 1
pub const BOX_Z: u8 = 2
pub const SPHERE_RADIUS: u8 = 0
pub const CYLINDER_HEIGHT: u8 = 0
pub const CYLINDER_RADIUS: u8 = 1
pub const CONE_HEIGHT: u8 = 0
pub const CONE_RADIUS: u8 = 1
pub const PRISM_HEIGHT: u8 = 0
Trait Implementations§
Source§impl Clone for SolidPrimitive
impl Clone for SolidPrimitive
Source§impl Debug for SolidPrimitive
impl Debug for SolidPrimitive
Source§impl Default for SolidPrimitive
impl Default for SolidPrimitive
Source§impl<'de> Deserialize<'de> for SolidPrimitive
impl<'de> Deserialize<'de> for SolidPrimitive
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SolidPrimitive
impl PartialEq for SolidPrimitive
Source§impl RosFieldType for SolidPrimitive
impl RosFieldType for SolidPrimitive
Source§fn ros_field_type() -> FieldType
fn ros_field_type() -> FieldType
Returns the FieldType for this type when used as a field.
Source§fn referenced_types() -> Vec<IndividualTypeDescription>
fn referenced_types() -> Vec<IndividualTypeDescription>
Returns referenced type descriptions (empty for primitives, populated for nested types).
Source§impl Serialize for SolidPrimitive
impl Serialize for SolidPrimitive
Source§impl TryClone for SolidPrimitive
impl TryClone for SolidPrimitive
Source§impl TypeDescription for SolidPrimitive
impl TypeDescription for SolidPrimitive
Source§fn type_description() -> TypeDescriptionMsg
fn type_description() -> TypeDescriptionMsg
Get the type description for this type Read more
Source§fn message_type_name() -> MessageTypeName
fn message_type_name() -> MessageTypeName
Get the message type name information Read more
Auto Trait Implementations§
impl Freeze for SolidPrimitive
impl RefUnwindSafe for SolidPrimitive
impl Send for SolidPrimitive
impl Sync for SolidPrimitive
impl Unpin for SolidPrimitive
impl UnsafeUnpin for SolidPrimitive
impl UnwindSafe for SolidPrimitive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more