EVA-Client
On this page

Action spaces

Configure joint-space or end-effector observations and actions.

Robots and action spaces

Robot registry names are agilex_piper, arx_r5, arx_x5, dual_franka, dual_yam, r1_lite, ur5e, and agibot_g2. Hardware presets define joint groups, grippers, cameras, and EEF links. Joint vector order follows the robot’s state_composition.

inference_cfg.obs_space and action_space independently select JointState or EEFPose. EEF layout is per arm xyz + rotation [+ gripper], concatenated across n_arms. Supported rotations are quat, euler, rotvec, and rot6d; quaternions default to wxyz, Euler angles to xyz in radians. The default quaternion layout with a gripper is 8 values per arm. Other representations or include_gripper=False change that width.

EEF policy outputs are normalized to canonical quaternion poses and converted through PyRoki IK. robot.eef_links selects the target link, so a TCP preset and a flange preset can use different physical targets despite equal vector widths. Use the matching preset for the model’s training convention.

Policy and image inputs

policy.type selects openpi, openpi_rtc, starvla, xpolicylab, gr00t, mock, or replay. host and port select the server; backend_options holds protocol-specific fields. See core concepts.

Deploy presets also accept policy as a non-empty list[dict]. Each entry needs a unique name; the first entry is selected at startup. The DEBUG input toolbar lists these names and lets you switch models while idle:

policy = [
    dict(name="Model A", type="openpi", host="127.0.0.1", port=5555),
    dict(name="Model B", type="openpi", host="127.0.0.1", port=5556,
         backend_options=dict()),
]

Each entry can override its backend type, endpoint, and backend_options. Robot, image preprocessing, and inference strategy settings are shared by the listed models. Switching clears the old policy connection, preview chunks, and setup state; the next send prepares the selected model. Switching is blocked while running or preparing. The existing single policy = dict(...) format continues to work. Restart after changing the configured model list.

Preset Model contract
dual_agilex_piper/xpolicylab.py XPolicyLab, port 19000, two 6D joint arms and 1D grippers, ZMQ images on demand
dual_yam_eva_sim_eval.py XPolicyLab EEF/TCP evaluation, two 7D pose arms and 1D grippers, ZMQ images on demand, control channel enabled
dual_agilex_piper_xpolicylab.py Offline XPolicyLab example with dataset column mappings and an official XPolicyLab server command; customize local paths

For XPolicyLab, set action_type="joint" or "ee", plus arm_dims and gripper_dims for one or two arms. EEF arms require arm_dims entries of 7 (xyz + wxyz). The observation and action spaces must agree with these widths. Optional evaluation_id sets the protocol evaluation identity; otherwise it is generated. Timeouts are seconds: request_timeout_s defaults to 120, connect_timeout_s to 30, and handshake_timeout_s to 60. Presets may override these values.

Image preprocessing is configured under transport:

Field Shared default Meaning
convert_bgr_to_rgb False Preserve channels by default; True swaps red and blue
image_height, image_width 224, 224 Target dimensions when resize=True; ignored otherwise
resize False Preserve source resolution; True enables resizing
resize_pad True When resizing is enabled, preserve aspect ratio with padding; False resizes directly
image_layout "hwc" Preserve channel-last layout; "chw" explicitly transposes to channel-first
image_mode "stream" ZMQ policy frames use streaming images or "on_demand" image requests
image_request_timeout_s 2.0 Maximum wait for a new image revision in on-demand mode

Check the complete preset chain because a robot or workflow preset may override these defaults. Match channel conversion to the transport’s decoded image order; the simulator XPolicyLab eval preset preserves the incoming channels and resolution.

Dataset transport also needs dataset_dir, episode_id, and dataset_keys. Set state_key, action_key, and, for EEF observations, eef_key to the dataset’s actual columns. video_keys maps EVA camera names to dataset video columns. An empty map uses observation.images.<camera>; a nonempty map selects only its mapped cameras.