pub struct ImageObject {
pub source: String,
pub position: [f64; 3],
pub rotation: [f64; 3],
pub scale: [f64; 3],
pub interactive: bool,
pub visible: bool,
pub motion: Option<ObjectMotion>,
}Fields§
§source: String§position: [f64; 3]§rotation: [f64; 3]§scale: [f64; 3]§interactive: bool§visible: bool§motion: Option<ObjectMotion>Optional back-and-forth patrol motion along one world axis (find_target_patrol).
Declares the contract only – mecha10-rl (not this repo) actually advances the
object’s position along the line during an episode. Absent for every other bundled
task’s image objects, which stay stationary.
Implementations§
Source§impl ImageObject
impl ImageObject
Sourcepub fn validate(&self, repo_root: &Path) -> Result<PathBuf>
pub fn validate(&self, repo_root: &Path) -> Result<PathBuf>
Validate this image object, resolving source relative to repo_root and confirming the
asset file actually exists on disk.
This is the extent of “generates valid MuJoCo XML” verification achievable from this repo
(LAB-2025): we cannot invoke the external mecha10_rl.mujoco.mjcf_generator from here, so
this validates the config contract that generator depends on instead.
Trait Implementations§
Source§impl Clone for ImageObject
impl Clone for ImageObject
Source§impl Debug for ImageObject
impl Debug for ImageObject
Source§impl<'de> Deserialize<'de> for ImageObject
impl<'de> Deserialize<'de> for ImageObject
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 ImageObject
impl RefUnwindSafe for ImageObject
impl Send for ImageObject
impl Sync for ImageObject
impl Unpin for ImageObject
impl UnsafeUnpin for ImageObject
impl UnwindSafe for ImageObject
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