alinarus's picture
Upload folder using huggingface_hub (part 18)
9ff4bea verified
Raw History Blame Contribute Delete
1.41 kB
# DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/python/mod.rs
# Based on "crates/build/re_type_definitions/rerun/components/keypoint_id.def.rs".
# You can extend this class by creating a "KeypointIdExt" class in "keypoint_id_ext.py".
from __future__ import annotations
from .. import encodings
from .._baseclasses import (
ComponentBatchMixin,
ComponentMixin,
)
__all__ = ["KeypointId", "KeypointIdBatch"]
class KeypointId(encodings.KeypointId, ComponentMixin):
"""
**Component**: A 16-bit ID representing a type of semantic keypoint within a class.
`KeypointId`s are only meaningful within the context of a [`encodings.ClassDescription`][rerun.encodings.ClassDescription].
Used to look up an [`encodings.AnnotationInfo`][rerun.encodings.AnnotationInfo] for a Keypoint within the
[`components.AnnotationContext`][rerun.components.AnnotationContext].
"""
_BATCH_TYPE = None
# You can define your own __init__ function as a member of KeypointIdExt in keypoint_id_ext.py
# Note: there are no fields here because KeypointId delegates to encodings.KeypointId
class KeypointIdBatch(encodings.KeypointIdBatch, ComponentBatchMixin):
_COMPONENT_TYPE: str = "rerun.components.KeypointId"
# This is patched in late to avoid circular dependencies.
KeypointId._BATCH_TYPE = KeypointIdBatch # type: ignore[assignment]