mecha10-sim 0.8.2

Mecha10 simulation support — scene generation, asset management
Documentation
//! Simulation generator - main orchestration

use anyhow::Result;
use std::path::Path;

use super::selector::EnvironmentSelector;

pub struct SimulationGenerator {
    selector: EnvironmentSelector,
}

impl SimulationGenerator {
    /// Create a new generator, loading the catalog from `<robot_tasks_dir>/catalog.json` under a
    /// freshly-fetched `mecha10-assets` extraction.
    pub fn new(robot_tasks_dir: &Path) -> Result<Self> {
        let selector = EnvironmentSelector::new(robot_tasks_dir)?;
        Ok(Self { selector })
    }
}