pub struct Environment {Show 15 fields
pub id: String,
pub path: String,
pub name: String,
pub description: String,
pub tags: Vec<String>,
pub required_sensors: Vec<String>,
pub optional_sensors: Vec<String>,
pub robot_platforms: Vec<String>,
pub task_nodes: Vec<String>,
pub difficulty: String,
pub dimensions: Vec<f32>,
pub features: EnvironmentFeatures,
pub curriculum_stage: i32,
pub estimated_duration_s: i32,
pub reward_config: HashMap<String, f32>,
}Fields§
§id: String§path: String§name: String§description: String§required_sensors: Vec<String>§optional_sensors: Vec<String>§robot_platforms: Vec<String>§task_nodes: Vec<String>§difficulty: String§dimensions: Vec<f32>§features: EnvironmentFeatures§curriculum_stage: i32§estimated_duration_s: i32§reward_config: HashMap<String, f32>Implementations§
Source§impl Environment
impl Environment
Sourcepub fn is_compatible_with_sensors(&self, sensors: &[String]) -> bool
pub fn is_compatible_with_sensors(&self, sensors: &[String]) -> bool
Check if environment is compatible with robot (has all required sensors)
Sourcepub fn is_compatible_with_platform(&self, platform: &str) -> bool
pub fn is_compatible_with_platform(&self, platform: &str) -> bool
Check if environment is compatible with platform
Trait Implementations§
Source§impl Clone for Environment
impl Clone for Environment
Source§impl Debug for Environment
impl Debug for Environment
Source§impl<'de> Deserialize<'de> for Environment
impl<'de> Deserialize<'de> for Environment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Environment
impl RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnsafeUnpin for Environment
impl UnwindSafe for Environment
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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