pub struct SimulationService { /* private fields */ }Implementations§
Source§impl SimulationService
impl SimulationService
Sourcepub fn with_base_path(base_path: impl Into<PathBuf>) -> Self
pub fn with_base_path(base_path: impl Into<PathBuf>) -> Self
Create a simulation service with custom base path
§Arguments
base_path- Base directory for simulation output
Sourcepub fn generate(
&self,
config_path: &Path,
output_path: &Path,
robot_tasks_dir: &Path,
max_envs: usize,
min_score: i32,
) -> Result<GenerationResult>
pub fn generate( &self, config_path: &Path, output_path: &Path, robot_tasks_dir: &Path, max_envs: usize, min_score: i32, ) -> Result<GenerationResult>
Generate simulation scenes from project configuration
§Arguments
config_path- Path to mecha10.jsonoutput_path- Output directory for simulation filesrobot_tasks_dir-configs/simulation/environments/robot-tasksunder a freshly-fetchedmecha10-assetsextraction (seeEnvironmentSelector::new)max_envs- Maximum number of environments to generatemin_score- Minimum compatibility score (0-100)
Sourcepub fn generate_robot(
&self,
config_path: &Path,
output_path: &Path,
) -> Result<()>
pub fn generate_robot( &self, config_path: &Path, output_path: &Path, ) -> Result<()>
Generate only the robot scene
§Arguments
config_path- Path to mecha10.jsonoutput_path- Output path for robot.tscn
Sourcepub fn list_environments(
&self,
config_path: &Path,
robot_tasks_dir: &Path,
verbose: bool,
) -> Result<Vec<EnvironmentInfo>>
pub fn list_environments( &self, config_path: &Path, robot_tasks_dir: &Path, verbose: bool, ) -> Result<Vec<EnvironmentInfo>>
List available environments
§Arguments
config_path- Path to mecha10.jsonrobot_tasks_dir-configs/simulation/environments/robot-tasksunder a freshly-fetchedmecha10-assetsextraction (seeEnvironmentSelector::new)verbose- Show detailed information
Sourcepub fn validate_config(&self, config_path: &Path) -> Result<ValidationResult>
pub fn validate_config(&self, config_path: &Path) -> Result<ValidationResult>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimulationService
impl RefUnwindSafe for SimulationService
impl Send for SimulationService
impl Sync for SimulationService
impl Unpin for SimulationService
impl UnsafeUnpin for SimulationService
impl UnwindSafe for SimulationService
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more