FrameId

Trait FrameId 

Source
pub trait FrameId:
    Debug
    + Clone
    + Copy
    + PartialEq
    + Eq
    + 'static {
    const ID: u32;
    const NAME: &'static str;
}
Expand description

Trait for compile-time frame identification Each frame type must implement this to provide a unique identifier

Required Associated Constants§

Source

const ID: u32

Unique identifier for this frame

Source

const NAME: &'static str

Human-readable name for debugging

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl FrameId for BaseFrame

Source§

const ID: u32 = 1u32

Source§

const NAME: &'static str = "base"

Source§

impl FrameId for CameraFrame

Source§

const ID: u32 = 3u32

Source§

const NAME: &'static str = "camera"

Source§

impl FrameId for ImuFrame

Source§

const ID: u32 = 5u32

Source§

const NAME: &'static str = "imu"

Source§

impl FrameId for LidarFrame

Source§

const ID: u32 = 4u32

Source§

const NAME: &'static str = "lidar"

Source§

impl FrameId for RobotFrame

Source§

const ID: u32 = 2u32

Source§

const NAME: &'static str = "robot"

Source§

impl FrameId for WorldFrame

Source§

const ID: u32 = 0u32

Source§

const NAME: &'static str = "world"