This reference describes unreleased code on main; no release documents it yet.

rlmesh::adapters::ImageTag

structPreviewuse rlmesh::adapters::ImageTag;[source]

A camera image entry in an environment observation.

struct ImageTag

role

field[source]
role: String

Semantic role used for matching, e.g. image/primary.

layout

field[source]
layout: ImageLayout

Axis layout of the stored image.

upside_down

field[source]
upside_down: bool

Whether the image is rendered rotated 180 degrees (a true rotation, not a vertical flip) relative to the canonical upright orientation. Declared on both ends; the adapter flips only when the env and the model disagree. (If a second orientation is ever needed, this should become a constrained string like dtype, not a wider bool.)

part

field[source]
part: Option<String>

The body part this camera sits on, when the role repeats across a body ("head", "left_arm", …). An identity key the resolver matches on, never a value it checks. Omitted from the wire when unset.

new

associated function[source]
fn new(role: impl Into<String>) -> Self

Construct a camera tag with HWC layout and upright orientation.

Trait implementations

  • impl Clone for ImageTag
  • impl Debug for ImageTag
  • impl StructuralPartialEq for ImageTag
  • impl PartialEq for ImageTag
  • impl Serialize for ImageTag
  • impl<'de> Deserialize<'de> for ImageTag
  • impl Eq for ImageTag
  • impl Hash for ImageTag
  • impl Display for ImageTag
  • impl From<ImageTag> for ObsNode