*.components.py
Every top-level class is a component. A class whose name starts with _ is a shape the
components use.
# types/body/body.components.py
class _Vec3:
x: float
y: float
z: float
class Pose:
"""Where the body is, and when that was sensed."""
position: _Vec3
rotation: tuple[float, float, float, float]
sensed: float
class Cloud:
"""The last depth look, as points."""
points: Array[f32]
sensed: float
| Write | Means |
|---|---|
float int | f64, i32 |
f32 u32 | the narrower numbers, from cognet |
str bool | text, a flag |
tuple[float, float, float] | exactly that many, of one type |
list[T] | a list |
dict[str, T] | a map |
Array[f32] | a large array, held as memory — a NumPy array in a system |
T | None | may be absent |
Only annotated fields, no defaults, no base classes, no decorators. The file is read, never
imported — systems use the generated classes from schema.….