You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.2 kB

11 months ago
11 months ago
11 months ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. # 01. Basic Simulation
  2. This example demonstrates the simplest possible setup: loading and running a robot simulation using the `dora-mujoco` node.
  3. - Understand how the `dora-mujoco` node works
  4. - See how robot models are loaded from `robot-descriptions`
  5. - Learn the basic dataflow for physics simulation
  6. The simulation runs at 500Hz and outputs:
  7. - Joint positions for all robot joints
  8. - Joint velocities
  9. - Sensor data (if available)
  10. - Current simulation time
  11. ### Running the Example
  12. ```bash
  13. cd basic_simulation
  14. dora build basic.yml
  15. dora run basic.yml
  16. ```
  17. You should see:
  18. 1. MuJoCo viewer window opens with GO2 robot
  19. 2. Robot is effected by gravity (enabled by default)
  20. ### What's Happening
  21. 1. **Model Loading**: The `dora-mujoco` node loads the RoboDog (go2) model using `load_robot_description("go2_mj_description")`
  22. 2. **Physics Loop**: Timer triggers simulation steps at 500Hz (This is default step time for Mujoco)
  23. 3. **Data Output**: Joint states are published
  24. 4. **Visualization**: MuJoCo viewer shows real-time simulation
  25. ### Configuration Details
  26. The `basic.yml` configures:
  27. - Model name: `"go2"` you change this to other robots name
  28. - Update rate: 2ms (500Hz)
  29. - Outputs: Joint positions, velocities, and sensor data