rlmesh::adapters::ImageTag
A camera image entry in an environment observation.
struct ImageTagFields
- roleSemantic role used for matching, e.g.
- layoutAxis layout of the stored image.
- upside_downWhether the image is rendered rotated 180 degrees (a true rotation, not a vertical flip) relative to the canonical upright orientation.
- partThe body part this camera sits on, when the role repeats across a body (
"head","left_arm", ...).
Associated functions
role
field[source]role: StringSemantic role used for matching, e.g. image/primary.
layout
field[source]layout: ImageLayoutAxis layout of the stored image.
upside_down
field[source]upside_down: boolWhether 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>) -> SelfConstruct 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