Client Inference Configuration Parameters
Client Inference Configuration Parameters
These fields are passed to the inference task to choose the client, connect to the service, and set interpolation. They are not per-step observations. Only the following are written into the WebSocket request: instruction, embodiment, normalization, return_body, use_history, session_id, plus values the RTC runtime computes such as use_rtc / inference_delay / num_flow_steps.
model_name and check_point are for logging only. They are not sent in the request and do not decide which service to connect to. The weights live in the process at model_address.
Inference Parameters
(1) Task-level fields
| Parameter | Allowed values | Default | Description |
|---|---|---|---|
model_address | ip:port, or an http:// / https:// / ws:// / wss:// URL | None; required | Model service address. http becomes ws and https becomes wss. An empty string cannot INIT |
instruction | Any non-empty string | Script default: model testing | Becomes the top-level instruction of the request |
robot_type | desktop, slave_arms, ex001. Case-insensitive | None | Chooses the client. desktop and slave_arms both use Desktop. On an EX001 Orin machine, RTC / classic_async force robot_type to EX001 and actually use EX001OrinClientRTC |
robot_mode | end_pose, joints, joints_pos | end_pose | public_v2 accepts only end_pose. joints / joints_pos fail at INIT |
infer_type | sync, async | sync | Coarse category. Changed to async when algorithm is pc_async, rtc, or classic_async |
model_name | Any string | Empty | Logs only |
(2) infer_params: timing
Defaults apply when a field is omitted (defaults below are for public_v2, which is enabled automatically when the command includes --embodiment). The camelCase form inferParams also works. If the whole block is a string, the client runs json.loads on it first.
| Parameter | Allowed values | Default | Description |
|---|---|---|---|
action_horizon | Positive integer | 32 | How many model steps the client expects per model output. The form-2 server actually returns 32 frames, and the client uses the real length of the response |
control_dt | Positive number, seconds | 0.005 | Duration of one controller tick. With the C++ dispatcher this is 200 Hz |
interpolate_multiplier | Positive number | sync 7 / RTC 8 | How many control steps each model step is interpolated into. Model step length = control_dt × interpolate_multiplier. For example, 0.005 × 7 = 0.035 s, close to the 33.7 ms training frame interval. Participants can raise it as needed; execution becomes slower |
ar_stream | true, false | FALSE | Synchronous Desktop only. INIT fails if it is true and algorithm is not synchronous, or infer_type is not sync. Do not enable on EX001 |
cb_history | off, shadow, auto, on | off | Meaningful only for synchronous Desktop end_pose. on requires the server metadata to declare support, otherwise INIT fails. shadow only records on the side and does not change the request |
(3) async_params: protocol and pipeline
| Parameter | Allowed values | Default | Description |
|---|---|---|---|
api_schema | internal, public_v2 | internal | Only public_v2 produces the messages described in this tutorial. embodiment must also be given |
embodiment | A string exactly matching the server's list; case-sensitive | None. Required for public_v2 | Desktop: teletwin_desktop/gripper-g, teletwin_desktop/gripper-h. EX001: quanta_x1_pro, quanta_x1_pro/gripper-g, quanta_x1_pro/gripper-h. The training name ex_normal/gripper-G uses the same statistics as quanta_x1_pro/gripper-g. For names not in the list, the server returns unknown_embodiment |
normalization | Omitted, or provided. catalog is rewritten to provided | Omitted; the key is then absent from the request | The client rejects uploaded and prenormalized. provided means the state is in physical units, and the statistics are that embodiment's min/delta in the checkpoint |
algorithm | See the table below | Omitted = synchronous | Chooses synchronous, PC async, or RTC |
rtc_mode | training_time, inference_time | Under public_v2, training_time when algorithm is rtc | training_time_rtc is written as training_time automatically; inference_time_rtc as inference_time. Any other string makes client construction fail |
image_wire_format | base64, jpeg. Legacy base64_jpeg is still treated as base64; jpeg_bytes / raw as jpeg | jpeg | jpeg = JPEG bytes (MessagePack bin, the public_v2 default); base64 = Base64 string. The server supports both. For Orin RTC, image_pipeline.wire is written as raw or base64 accordingly |
execute_horizon | Integer with 0 < execute_horizon < action_horizon | 6 | RTC: how many model steps of a chunk are executed before switching to the next one. Written into the request |
delay_queue_size | Positive integer | 10 | How many recent inference durations are used to estimate inference_delay. Not sent in the request |
initial_delay_estimate | Non-negative integer | 4 | Initial delay before any measured duration exists, in model steps |
max_inference_delay | Positive integer | 4 | The client caps inference_delay at this value. The server's training-time RTC accepts only 1, 2, 3, or 4, and larger values return rtc_delay_exceeds_training. Set it to 4 when working with this service |
num_flow_steps | Positive integer | 10 | Sent in the request unchanged; overrides the flow step count for that request. Can be added on its own without RTC |
rtc_cap_enable | true, false. rtc-cap-enable is also accepted | FALSE | When true, truncates the not-yet-executed chunk at the delay cap |
max_guidance_weight | Number | 1 | Written into the request only when rtc_mode = inference_time |
prefix_attention_schedule | String. The client sends "exp" by default | "exp" | Written into the request only for inference_time |
predict_action_offset | Non-negative integer | 1 | Index offset used when taking current_master_action from the previous chunk. Not sent as its own field |
return_body | Object with string keys and boolean values. Common keys: car_pose, head_pose, lift | Omitted | false means the response leaves out that part. If a desktop embodiment sets a part to true, the server returns body_not_available |
api_key | String, or omitted | Empty | When non-empty, the handshake header is Authorization: Bearer <api_key>. Not part of the observation; shown as *** in logs |
interpolation_mode | linear, polynomial | linear | polynomial supports only Desktop training_time + end_pose, and action_dt must also be given |
consumer_rt_enable | true, false | TRUE | Whether the RTC consumer thread uses real-time scheduling |
consumer_rt_priority | Integer 1 to 99 | 50 | Values outside the range are clamped to it |
hil_min_interpolate_multiplier | Number | RTC: equal to interpolate_multiplier | Lower bound the interpolation multiplier may be adjusted to at runtime |
hil_max_interpolate_multiplier | Number, not less than the lower bound | RTC: 16 | Upper bound. Adjusted through /x2robot_client/interpolate_multiplier_delta |
camera_resize_width | Positive integer | Implementation default: resize to width 480 | EX001 Orin only. Width the on-board pipeline resizes NV12 to |
camera_jpeg_quality | Integer 1 to 100 | 85 | Camera encoding quality only. Desktop RTC also reads this key |
camera_max_skew_ms | Non-negative integer, milliseconds | Implementation default | EX001 Orin only. Maximum allowed time difference among the three images |
camera_snapshot_timeout_s | Positive number, seconds | Implementation default | EX001 Orin only. Timeout for collecting all three images of one frame |
Values of algorithm:
| Value written | Actual pipeline |
|---|---|
| Omitted, sync | Synchronous. Desktop → DesktopClient, EX001 → EX001Client. Orin synchronous is still EX001Client; only the camera source changes |
| training_time_rtc | RTC, with rtc_mode fixed to training_time |
| classic_async | The same kind of client as RTC, but not scheduled by the RTC guidance fields. On EX001 Orin it is still EX001OrinClientRTC |
Examples
All three examples use public_v2. Change the gripper suffix to gripper-g or gripper-h to match the robot.
(1) Example 1: TeleTwin Desktop, synchronous mode
Matches the request and response in section 1 (1) of the Client WebSocket Protocol chapter. observation.state contains only the left and right arms.
{
"model_address": "wss://maas-api.x2robot.com/v1/vla/wallx",
"model_name": "desktop_pick",
"robot_type": "desktop",
"robot_mode": "end_pose",
"instruction": "pick up the cup",
"infer_type": "sync",
"infer_params": {
"action_horizon": 32,
"control_dt": 0.005,
"interpolate_multiplier": 7,
"async_params": {
"api_schema": "public_v2",
"api_key": "<API_KEY>",
"embodiment": "teletwin_desktop/gripper-g",
"normalization": "provided",
"algorithm": "sync"
}
}
}(2) Example 2: Quanta_X1_Pro (x86), RTC mode
Matches section 2 (2) of the Client WebSocket Protocol chapter. max_inference_delay is set to 4 to match the server's trained_max_delay. Steady-state requests carry use_rtc and prev_action_chunk.
{
"model_address": "wss://maas-api.x2robot.com/v1/vla/wallx",
"model_name": "ex001_fold",
"robot_type": "ex001",
"robot_mode": "end_pose",
"instruction": "fold the towel",
"infer_type": "async",
"infer_params": {
"action_horizon": 32,
"control_dt": 0.005,
"interpolate_multiplier": 8,
"async_params": {
"api_schema": "public_v2",
"api_key": "<API_KEY>",
"embodiment": "quanta_x1_pro/gripper-g",
"normalization": "provided",
"algorithm": "training_time_rtc",
"execute_horizon": 6,
"delay_queue_size": 10,
"initial_delay_estimate": 4,
"max_inference_delay": 4,
"num_flow_steps": 10,
"rtc_cap_enable": false
}
}
}(3) Example 3: Quanta_X1_Pro (Orin), RTC mode
The messages match section 3 (2) of the Client WebSocket Protocol chapter. On an Orin machine, the same robot_type: "ex001" selects EX001OrinClientRTC. This example also turns off head, lift, and chassis in the response, and sets the Orin camera parameters. These three parts are still present in the request's observation.state.
{
"model_address": "wss://maas-api.x2robot.com/v1/vla/wallx",
"model_name": "ex001_orin_fold",
"robot_type": "ex001",
"robot_mode": "end_pose",
"instruction": "fold the towel",
"infer_type": "async",
"infer_params": {
"action_horizon": 32,
"control_dt": 0.005,
"interpolate_multiplier": 8,
"async_params": {
"api_schema": "public_v2",
"api_key": "<API_KEY>",
"embodiment": "quanta_x1_pro/gripper-g",
"normalization": "provided",
"algorithm": "training_time_rtc",
"execute_horizon": 6,
"delay_queue_size": 10,
"initial_delay_estimate": 4,
"max_inference_delay": 4,
"num_flow_steps": 10,
"camera_resize_width": 480,
"camera_jpeg_quality": 85,
"camera_max_skew_ms": 30,
"camera_snapshot_timeout_s": 0.2,
"return_body": {
"car_pose": false,
"head_pose": false,
"lift": false
}
}
}
}