JointHandle returned by hand.joint(k) / hand.joints() — see Joint Traversal.
joint_states (SUB)
Joint state stream: subscribe to the real-time state frames of the 20 joints, at a native output rate of 1000 Hz. Lower the push rate through the subscription handle:sub.set_rate(hz) returns the rate in effect, and 0 restores the native rate — see Adjusting the Stream Output Rate for full usage. This stream and joint_diagnostics ride the same device stream, so lowering the rate of one lowers both.
Push-rate tuning applies to the
joint_states, joint_diagnostics, and imu streams. Upgrade the firmware and the WUJI SDK together to versions that support it — see the release notes for the version requirements.- Python
- C
position is the joint-side angle (rad) and velocity the joint-side angular velocity (rad/s)—this is the only recommended path for joint angle and speed. Frames are variable-length and contain only online joints — identify each entry by its nid. The joint_diagnostics stream doesn’t carry joint angles.control_mode
Set or read one control mode for all 20 joints. MIT_V2, deprecated MIT, and Position control mode (Beta) are supported. See Migrate to MIT_V2 for version requirements, setup steps, and removed control modes. Position mode and its N·m limits require firmwarev3.0.0 or later. The Position mode Python/C interfaces are available from SDK v2026.11.9. WUJI Hand 2.1 (Beta) doesn’t support Position mode.
set() doesn’t modify the device’s persistent control mode. Read the current mode after a restart and set it again if needed.
While an asynchronous MIT gain write is pending, the SDK rejects mode changes and synchronous gain writes. Wait for the write to finish before retrying. In Python, await the returned Future. In C, use synchronous gain writes when subsequent operations require confirmed completion.
- Python
- C
set() accepts "mit_v2", "mit", "position", ControlMode.MitV2, ControlMode.Mit, or ControlMode.Position, not lists.get() returns one ControlMode. If some joints are offline or the joint modes differ, the SDK may return the last confirmed whole-hand mode from the current connection. If no confirmed mode is available, it raises an exception. Reading an internal or unknown mode raises an exception and prevents the SDK from returning the last confirmed mode as a substitute until all joints report the same supported mode, or a whole-hand mode change succeeds and passes readback verification.get() may still return the previous mode, so don’t use that value to determine every joint’s current mode or select output-limit units. Keep the joints disabled until setting the mode for all joints succeeds, then configure parameters for the target mode before enabling them.
position_command_low_pass_cutoff_frequency
Set one value for the whole hand, in Hz. It takes effect only in Position mode.set() configures all 20 joints together and requires all joints to be online and compatible. A write changes only the runtime cutoff and preserves other motion parameters.
- Python
- C
Negative values, NaN, and infinity fail before writing. If joint readbacks differ or are unreadable, the getter follows the same connection-history fallback rule as
control_mode.
joint_command (PUB)
Joint command: MIT_V2, deprecated MIT, and Position mode share this publisher. Each send takes exactly 20JointCommand entries with position, velocity, and effort. MIT_V2 and MIT use all fields. Position mode uses only position to control the joints. Set velocity and effort to 0. All three fields must be finite. If any field is NaN or infinity, the SDK rejects the entire command frame. Positions are joint-side angles in rad, and negative angles are valid.
- Python
- C
send() confirms host publication only. Check joint feedback for execution. An all-zero command drives all joints to zero, not an empty command.
To turn human hand keypoints into these 20-joint commands, use WUJI SDK Hand Retargeting.
online_joints_count (GET)
The SDK generates diagnostics after connecting. No subscription todiagnostics is required. While the device is connected and diagnostics are valid, the count uses component states. Before the first frame arrives, after diagnostics expire, or on firmware without diagnostics, it counts joints that responded within the last 300 ms. The call returns an error if the device is disconnected.
Get the online joint count (0–20).
Joint Traversal
JointHandle provides label / index (for indexing into 20-element return arrays such as effort_limit() / mit_params()), plus single-joint resources and actions. FingerHandle traverses joints by finger.
JointHandle
Joint handle: provideslabel / index, single-joint resources, and single-joint actions.
FingerHandle
Finger handle: traverse the 4 joints of this finger.Joint Numbering
Label format:
{finger}_S{1..4} (e.g. thumb_S1, pinky_S4). For the full table with motion ranges and model naming, see the Control Guide.
nid in JointStateEntry and JointDiagnosticsEntry is the firmware stream numbering, not the flat 0–19 joint index used by per-joint arrays and joint_label. Two functions convert between the two without a device connection.
- Python
- C
Data Types
JointStateFrame
Joint state frame: return value ofhand.joint_states().subscribe().recv(). Variable-length, online joints only.
JointStateEntry
Single-joint state.
In MIT_V2 and Position mode,
effort estimates the net joint output torque from motor current, in N·m. The deviation between the estimate and the actual output torque varies with the joint and load conditions and may be about 20% under some operating conditions.
In Position mode, effort is NaN when the net torque can’t be calculated. This differs from an invalid slot in the limit getter. For unit differences, see Units and Feedback.
When replaying recorded effort, use the control mode to determine its unit. See Control Modes and Units in Recordings.
JointCommand
Joint command: element of thejoint_command().publish().send() argument.