pub struct TestFixtures {
pub metadata: DatasetMetadata,
/* private fields */
}Expand description
Pre-rendered test fixtures loaded from disk
Fields§
§metadata: DatasetMetadataDataset metadata
Implementations§
Source§impl TestFixtures
impl TestFixtures
Sourcepub fn viewpoints_per_rotation(&self) -> usize
pub fn viewpoints_per_rotation(&self) -> usize
Get number of viewpoints per rotation
Sourcepub fn rotations_per_object(&self) -> usize
pub fn rotations_per_object(&self) -> usize
Get number of rotations per object
Sourcepub fn renders_for_object(&self, object_id: &str) -> usize
pub fn renders_for_object(&self, object_id: &str) -> usize
Get total renders available for an object
Sourcepub fn intrinsics(&self) -> CameraIntrinsics
pub fn intrinsics(&self) -> CameraIntrinsics
Get camera intrinsics
Sourcepub fn get_render(
&self,
object_id: &str,
rotation_idx: usize,
viewpoint_idx: usize,
) -> Result<RenderOutput, FixtureError>
pub fn get_render( &self, object_id: &str, rotation_idx: usize, viewpoint_idx: usize, ) -> Result<RenderOutput, FixtureError>
Load a specific render by object, rotation index, and viewpoint index
§Arguments
object_id- YCB object ID (e.g., “003_cracker_box”)rotation_idx- Rotation index (0-2 for benchmark rotations)viewpoint_idx- Viewpoint index (0-23 for default config)
Sourcepub fn get_all_renders(
&self,
object_id: &str,
) -> Result<Vec<RenderOutput>, FixtureError>
pub fn get_all_renders( &self, object_id: &str, ) -> Result<Vec<RenderOutput>, FixtureError>
Load all renders for an object
Sourcepub fn iter_renders<'a>(
&'a self,
object_id: &'a str,
) -> impl Iterator<Item = Result<(usize, usize, RenderOutput), FixtureError>> + 'a
pub fn iter_renders<'a>( &'a self, object_id: &'a str, ) -> impl Iterator<Item = Result<(usize, usize, RenderOutput), FixtureError>> + 'a
Iterate over all renders for an object
Auto Trait Implementations§
impl Freeze for TestFixtures
impl RefUnwindSafe for TestFixtures
impl Send for TestFixtures
impl Sync for TestFixtures
impl Unpin for TestFixtures
impl UnwindSafe for TestFixtures
Blanket Implementations§
Source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
Source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
Return the
T ShaderType for self. When used in AsBindGroup
derives, it is safe to assume that all images in self exist.§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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