agentic-robotics-embedded 0.1.2

High-performance agentic robotics framework with ROS2 compatibility
Documentation
//! ROS3 Embedded Systems Support
//!
//! Provides support for embedded systems using Embassy and RTIC

use anyhow::Result;

/// Embedded task priority
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EmbeddedPriority {
    Low = 0,
    Normal = 1,
    High = 2,
    Critical = 3,
}

/// Embedded system configuration
#[derive(Debug, Clone)]
pub struct EmbeddedConfig {
    pub tick_rate_hz: u32,
    pub stack_size: usize,
}

impl Default for EmbeddedConfig {
    fn default() -> Self {
        Self {
            tick_rate_hz: 1000,
            stack_size: 4096,
        }
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_embedded_config() {
        let config = EmbeddedConfig::default();
        assert_eq!(config.tick_rate_hz, 1000);
        assert_eq!(config.stack_size, 4096);
    }
}