Source of truth
Each twin keeps a snapshot of its asset’s universal schema. The default pose of every controllable joint lives intwin.universal_schema.joints[].home_position.
The “Manual Control” sliders, the 3D viewer, and the RL task scene
entity composer all read from that same field, so editing a slider in
edit mode and reading the value back in an RL task always agrees.
What edit mode persists
Edit-mode writes are the only path that updates the durable home pose. They opt in by sendingas_home_position: true on
PUT /api/v1/twins/{uuid}/joint_states (or the per-joint endpoint).
With the flag set, Cyberwave updates:
Twin.joint_states[joint_name].position— runtime state.Twin.universal_schema.joints[i].home_position— durable default.
0.0s) when the operator saves an edit-mode pose.
Every controllable joint gets an explicit home_position after the
save — no joint is left as null — so the RL task composer never
labels a joint as default (0.0) while manual control shows the same
0.0.
Velocity and effort updates still only touch Twin.joint_states.
Unknown joint names are rejected
PUT /api/v1/twins/{uuid}/joint_states writes only the joints named in
the twin’s schema. If none of the supplied names exist in that
schema, the request fails with 400 and lists the unknown and the
expected names. Usually the cause is URDF joint names sent
where schema names are expected. This applies to every caller, with or
without as_home_position. Earlier the request returned success and
wrote nothing, which hid the naming bug. Retrying will not help, so the
frontend stops and shows “Pose not saved”.
A payload where at least one name matches still applies partially.
A payload that names only joints the schema declares as fixed is a
no-op, not a 400: those names are real, just not controllable. A twin
with no controllable joints (a rigid asset) still accepts any payload as
a no-op.
What live/teleop writes do not persist
PUT /api/v1/twins/{uuid}/joint_states without as_home_position
(the default) only writes Twin.joint_states. SDK callers, edge
drivers streaming joint positions, MQTT-driven teleop, and the legacy
joint-state syncs from physical hardware therefore never overwrite the
schema home. The durable home stays whatever the operator last saved
from edit mode.
Frontend reads twin schema first
The 3D viewer and the manual control sliders readtwin.universal_schema.joints[].home_position from the
GET /api/v1/twins/{uuid} response before falling back to the
asset-level Asset.universal_schema. That guarantees per-twin edit-mode
homes win over workspace-shared defaults, and that two twins of the same
asset can carry different durable poses.
Reads fall back to the schema home
GET /api/v1/twins/{uuid}/joint_states returns home_position for any
controllable joint without an explicit runtime entry. The same fallback
is used by Twin._derive_joint_states() so MJCF composition, RL task
hints, and the manual control bar all agree on the same default pose.
The response carries a position_source array parallel to name, so a
client can tell a real reading from a fallback:
Only
state and simulation are measured positions. Treating a home or
default row as a live reading shows a never-moved joint as a measured
pose. velocity and effort keep ROS all-or-nothing semantics — they are
empty unless every reported joint carries the value — so index them
defensively rather than assuming they parallel name.
Returning to the edit/home pose
In Simulate and Live, the Poses panel lists the twin’s authored edit/home pose (the durablehome_position) as an Authored home row, with a Preview so
you can see it before triggering. Use it to recover a robot that has ended up in
a bad configuration.
- Edit — there is no row to return to, because in Edit the twin’s current pose is its authored home: applying any pose (or moving a joint slider) updates the durable home directly. That is also why there is no save-home button. Use Save Pose to capture the current pose under a name.
- Simulate / Playground — the Authored home row offers Snap (teleport the simulated robot there), Move (send it as one joint target), and Trajectory (drive there along an interpolated path). A running controller can override a snap; pause it first. Snap is behind a feature flag during rollout; Move and Trajectory are always available.
- Live — Trajectory is how you get a real robot home: it drives there along an interpolated path. Move sends the home pose as a single target, which on real hardware nudges toward it rather than arriving. Hardware is never teleported, so there is no Snap in Live.