Environments
Create an environment with build_env(cfg, robot_config, device); EnvConfig selects the backend.
Unified grasp env: MsEnv (ManiSkill), MjEnv (MuJoCo), IsaacEnv (Isaac), RealEnv (hardware).
evaluateis the batched-rollout, reported-SR path shared by all eval call sites.reset/get_qpos/step_qpos/get_rgb/get_pointcloudare the deploy primitives shared by sim and real.get_object_pose/set_object_pose/observedrive simulated closed-loop policy evaluation.
Initialize the scene (simulators accept a list, one env each), robot, and calibrated camera pose.
Current joint positions, ours order, shape (B, D).
Command target q (ours order) and advance one control step.
Return backend metrics for the current state.
Stream one (T, D) qpos trajectory through the backend; the callback sees measured qpos.
Latest RGB camera image, shape (H, W, 3), uint8.
Object cloud selected by an aligned image mask, in world frame, shape (B, N, 3).
Target object world poses, shape (B, 7) [xyz, quat_wxyz]; simulators only.
Teleport the target objects to world poses (B, 7); simulators only.
Sim-only, robot-free: rgb (B, V, H, W, 3), world xyz/seg (B, N, 3/1), seg_id, camera_poses.
Rollout of batch.full_traj_qpos; infos keyed by metric; record=True fills self.last_rollouts.
Release the backend (sim envs / worker pool / hardware).
The tabletop grasp task; select Isaac or MuJoCo with their optional configuration, otherwise ManiSkill.
ManiSkill-only settings
MuJoCo evaluator config; set this to select the MuJoCo backend.
Isaac backend config; mutually exclusive with mj_env_config.
Closed-loop MuJoCo backend config; at most one of the backend configs may be set.
Whether to load scenes (actors and tables).
Control frequency.
Target lift distance.
Mass of the object.
Whether to use a floating object.
Width of the camera.
Height of the camera.
Intrinsic matrix of the camera.
Near clipping plane of the camera.
Cameras rendered instead of ManiSkill's base_camera (with ms_env_config.robot_uid None); Isaac and MuJoCo render only these.
PhysX contact_offset (m). Larger = compliant/sticky-feeling fingertip pads.
Number of environments to evaluate on
Number of seeds
Whether to enable perturbation
Perturbation step range
Perturbation magnitude
Number of perturbations
Number of consecutive steps to apply each perturbation force (1 = single impulse)
ManiSkill-only settings; the task itself is EnvConfig's.
MuJoCo grasp-evaluation settings.
Object mass (kg).
[tangential, torsional] friction.
Evaluation setting; only "fc" is ported.
Tabletop: max object-vs-palm slip during the lift (tight; trans_thre is too loose).
Tabletop: minimum actual object rise; zero preserves existing evaluator behavior.
Interp frames for pregrasp->grasp and grasp->squeeze.
Interp frames for the squeeze->lift raise.
Multiplies obj_mass for the fc/tabletop external force (lower = gentler test).
MuJoCo step; lower (e.g. 0.001) stabilizes an actuated arm+hand grip.
Rigid-contact solref[0]; smaller = more rigid (less penetration).
None -> build_env picks the default (floating SHADOW_HAND, or fixed-base VEGA_SHARPA).