Lecțiile acestui traseu sunt publicate deocamdată doar în engleză, așa că lecția de mai jos apare în engleză. Restul — module, quiz și materiale — funcționează la fel.
Simulation and Data: MuJoCo, Gymnasium and Robot Datasets
Vei putea să:
You can load a MuJoCo model, explain what a physics time step, a control step and a contact solver are, record an episode into a dataset with the fields a policy-training pipeline actually needs, and compare the big open robot datasets on what they contain and what they leave out.
The simulator is your laboratory, the dataset is your product
Most of a robot learning engineer's time is spent in simulation and in dataset tooling, not on the robot. This module is about knowing what those tools actually do, so you can tell a simulation artefact from a real result and build a dataset that someone else can train from.
Anatomy of a physics simulator
A simulator has a model (the robot's links, joints, masses, actuators and the scene geometry, written in MuJoCo's MJCF or the ROS-world URDF format), an integrator that steps the equations of motion forward by a fixed timestep, and a contact solver that resolves what happens when bodies touch.
Two time scales matter and people confuse them. The physics timestep is small, typically 1–5 ms, because contact and stiff joints need it for numerical stability. The control step is larger: a Gymnasium environment usually runs several physics substeps per env.step() (the frame skip), so a 2 ms physics step with a frame skip of 5 gives a 10 ms control step, i.e. 100 Hz. When you record a dataset, the timestamp you want is the control step; when a simulation explodes, the knob you reach for is the physics step.
Contact is where simulators differ. MuJoCo uses a soft, smooth contact model that is fast, stable and differentiable in a useful sense, at the price of allowing slight interpenetration; its documentation's Overview explains the design choices clearly and is worth reading in full. Things that are still hard in every free simulator: deformable objects, cables, liquids, and friction that matches a specific real surface.
Choosing among the free simulators
- MuJoCo (Google DeepMind, open source): fast, accurate rigid-body contact, the default for RL research and the engine under Gymnasium's robot environments and the MuJoCo Menagerie of robot models.
- Isaac Lab / Isaac Sim (NVIDIA): thousands of environments in parallel on a GPU and photorealistic rendering, which is what makes large-scale RL and visual sim-to-real practical; heavier to install, and needs an NVIDIA GPU.
- Gazebo: the ROS-native simulator with rich sensor models (lidar, cameras, IMUs) and the natural choice when the real robot runs ROS.
- PyBullet: older and simpler, still a fine teaching tool.
The Gymnasium contract
Gymnasium standardises the loop: obs, info = env.reset(seed=...), then obs, reward, terminated, truncated, info = env.step(action). Two details trip people up. Terminated means the task ended (success or failure); truncated means the time limit was hit. A policy-learning algorithm treats them differently, because a truncated state still has future value. And observation_space and action_space are the schema: read their shapes, bounds and dtypes before you record anything, because an action outside the bounds is silently clipped by many environments.
A procedure for recording a dataset
- Fix the seed and record it; reproducibility starts here.
- Per step, store: observation (every modality separately), action as commanded, reward, terminated/truncated flags, a wall-clock or sim timestamp, and the episode index.
- Per episode, store metadata: the controller that produced it, the scene parameters, whether it succeeded.
- Compute summary statistics (per-dimension action mean, std, min, max, and 1st/99th percentiles) and store them with the data. Policies normalise actions, and VLAs discretise them, using these numbers (OpenVLA bins between the 1st and 99th percentiles).
- Write a ten-line schema a colleague can read without opening the file.
Real-robot datasets add cameras (usually several, at 10–30 Hz), proprioception, and a language instruction per episode. Hugging Face's LeRobot dataset format is a good reference for how to lay this out as Parquet plus video files with explicit timestamps, and its tooling can convert from the Open X-Embodiment format.
The open robot datasets
Open X-Embodiment (2023) pooled 60 existing datasets into one format: more than a million real-robot trajectories across 22 robot embodiments, and trained RT-X models on it to show that training across robots improves each one. DROID (2024) is a single, deliberately diverse dataset: around 76k teleoperated trajectories on the same Franka arm setup across hundreds of scenes, built to stress generalisation to new environments. BridgeData V2 is a mid-sized, low-cost-arm dataset that has become the standard fine-tuning testbed for generalist policies.
What they leave out matters as much as what they contain. Most are teleoperated demonstrations, so they show successes and almost no recoveries from failure. Camera placements, control frequencies and action conventions differ between the datasets pooled in OXE, and that heterogeneity is a real obstacle to training on all of them. Quality is uneven and rarely audited. Whether scale of this kind, or careful curation, or synthetic data from simulation, is the bottleneck for generalist robot policies is an open argument, and the field's honest position is that nobody has a scaling law for robot data yet.
What to remember
- Physics step and control step are different numbers; record the control step, tune the physics step.
- Contact is the approximation; deformables, cables and surface-specific friction are still weak everywhere.
- Terminated and truncated mean different things to a learner.
- A dataset without seeds, timestamps, action statistics and a schema is not a dataset.
- The big open datasets are teleoperated successes with heterogeneous conventions; they are a starting point, not ground truth.
Materiale selectate
1.5hMunca de profunzime se întâmplă aici — lecția este briefingul tău.
În direct pe aiqbench
Subiectul acestei lecții în restul site-ului, astăzi.
În știri, ultimele 30 de zile
- Cenotian raises $48M to underwrite robotics deployments and cut factory riskDealroom.co ·
- DeepSeek Officially Posts Job for Talent in Embodied Intelligence36Kr ·
- NVIDIA Expands US Technology Initiatives Across Energy, Robotics and Quantum ComputingThe Quantum Insider ·
Testează-ți cunoștințele
5 întrebări în 100 de secunde, pe o pagină separată. Citește mai întâi tot ce este mai sus.
Testează-ți cunoștințele →Misiunea modulului
30–45 minInstall gymnasium[mujoco] and open Reacher-v5 (or InvertedPendulum-v5 if the install is slow). Print the observation and action spaces and the simulator timestep versus the control frequency. Record 10 episodes of a simple scripted controller into a NumPy or Parquet file with per-step observation, action, reward, timestamp and episode index. Compute and print the dataset's action mean, std and per-dimension min/max. Deliver the file plus a 10-line schema description a teammate could train from.
Se încarcă lucrarea ta…