SyncedObservation.
What goes the other way is an Action.
Observation
What the follower saw and where it was at one instant: one camera frame per label, plus the joints read on the same tick.Identifies this instant. Counts up and never repeats, and a command carries it
back so you can tell which observation the leader was acting on.
One entry per camera label, each carrying that frame’s id and capture time.
Identity only, no pixels: the images travel on the video track.
Camera skew is recorded rather than smoothed away, so you can tell whether two
cameras really described the same instant.
on_observation gives you this type on both machines.
SyncedObservation
What the leader receives: images and joints describing the same instant, with the joints worked out for the video frame’s own capture time.One decoded image per camera label.
{} until video is up, which is how you
know it is not ready yet.The gap between the frame and the nearest joint reading, in milliseconds.
0
means one landed on it, and anything larger is how far the joints had to be
worked out.True when the frame sat between two joint readings, so the joints were
worked out from both sides of it. False means the nearest reading was
carried forward.RobotState
The follower’s condition on one tick, delivered with every observation."disconnected", "holding", "active", "estopped" or "torque_off".
A plain string, so compare it against the
SafeState value rather than
the enum member.Why it is in that state, when there is one:
"starvation", "estop",
"lease_lost", "transport_lost", "robot_fault", "manual" or
"stalled". None while nothing has tripped.load and temp_c are read once a second by default, so the same value
repeats until the next read. They are there to spot a motor straining or
overheating, not to track it tick by tick.Related
Action
What the leader asked for, and what the follower actually wrote.
Sync
How joints and frames are matched to the same instant.