Repository navigation
30. NN Input Specification
This is a Draft document not yet implemented in software.
Define a clean production-ready input interface that converts robot world-state data into structured tensors suitable for neural network consumption.
This specification defines inputs only (no fusion, no downstream modeling).
At each timestep t, the system provides three raw modalities:
A dense spatial representation of the environment:
- occupancy probability
- free-space confidence
- contact signal (optional channel)
O(t) ∈ ℝ^{H × W × C_o}
A sparse semantic graph of detected QR markers:
G(t) = (V, E)
Where:
- V = QR marker nodes
- E = spatial / visibility edges (optional)
Each node:
v_i = (id, position_2d, orientation, confidence)
Robot state in 2D space:
x(t) = (x, y, θ)
Each modality is transformed into a neural-ready latent representation.
Encoders are considered part of the perception-to-tensor interface and not part of downstream neural architecture.
Encoders are deterministic preprocessing modules that do not perform temporal reasoning or policy computation.
O'(t) = f_occ(O(t))
O'(t) ∈ ℝ^{H × W × d_o}
G'(t) = f_graph(G(t))
G'(t) ∈ ℝ^{N × d_g}
Graphs are padded or masked to a maximum size N_max for batching.
P'(t) = f_pose(x(t))
Recommended encoding:
f_pose(x, y, θ) = MLP([x, y, sinθ, cosθ])
P'(t) ∈ ℝ^{d_p}
The final input at time t is a keyed tensor map:
X(t) = {
"occupancy": O'(t),
"graph": G'(t),
"pose": P'(t)
}
X ∈ {
"occupancy": ℝ^{B × T × H × W × d_o},
"graph": ℝ^{B × T × N × d_g},
"pose": ℝ^{B × T × d_p}
}
Where:
- B = batch size
- T = temporal window length
This input specification ensures:
- Modularity: each modality is independently encodable
- Consistency: shared temporal indexing across modalities
- Scalability: supports variable graph size (N nodes)
- Compatibility: suitable for CNNs, GNNs, Transformers
- No fusion or joint embedding is defined here
- No temporal modeling is assumed inside encoders
- All modalities must be independently encodable
- Output tensors must remain numerically stable and fixed-dimension per modality (except graph nodes)
This document defines a production-ready neural input interface for robotics systems based on:
- dense occupancy grids
- sparse landmark graphs
- ego-pose state vectors
It serves as a strict contract between robot perception systems and neural network architectures.
Release: Draft