Skip to main content

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 = 1

Source§

const NAME: &'static str = "base"

Source§

impl FrameId for CameraFrame

Source§

const ID: u32 = 3

Source§

const NAME: &'static str = "camera"

Source§

impl FrameId for ImuFrame

Source§

const ID: u32 = 5

Source§

const NAME: &'static str = "imu"

Source§

impl FrameId for LidarFrame

Source§

const ID: u32 = 4

Source§

const NAME: &'static str = "lidar"

Source§

impl FrameId for RobotFrame

Source§

const ID: u32 = 2

Source§

const NAME: &'static str = "robot"

Source§

impl FrameId for WorldFrame

Source§

const ID: u32 = 0

Source§

const NAME: &'static str = "world"