Skip to content

Commit a0ffd17

Browse files
kevinzakkacopybara-github
authored andcommitted
Fix typo in locomotion notebook.
PiperOrigin-RevId: 716261752 Change-Id: I7b0774d8dfcfcae260881d5864753881f1e630b1
1 parent 724ed64 commit a0ffd17

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

learning/notebooks/locomotion.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"id": "_UbO9uhtBSX5"
3030
},
3131
"source": [
32-
"> <p><small><small>Copyright 2025 DeepMind Technologies Limited.</small></p>\n",
33-
"> <p><small><small>Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at <a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a>.</small></small></p>\n",
34-
"> <p><small><small>Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</small></small></p>"
32+
"\u003e \u003cp\u003e\u003csmall\u003e\u003csmall\u003eCopyright 2025 DeepMind Technologies Limited.\u003c/small\u003e\u003c/p\u003e\n",
33+
"\u003e \u003cp\u003e\u003csmall\u003e\u003csmall\u003eLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at \u003ca href=\"http://www.apache.org/licenses/LICENSE-2.0\"\u003ehttp://www.apache.org/licenses/LICENSE-2.0\u003c/a\u003e.\u003c/small\u003e\u003c/small\u003e\u003c/p\u003e\n",
34+
"\u003e \u003cp\u003e\u003csmall\u003e\u003csmall\u003eUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\u003c/small\u003e\u003c/small\u003e\u003c/p\u003e"
3535
]
3636
},
3737
{
@@ -40,11 +40,11 @@
4040
"id": "dNIJkb_FM2Ux"
4141
},
4242
"source": [
43-
"# Locomotion in The Playground! <a href=\"https://colab.research.google.com/github/google-deepmind/mujoco_playground/blob/main/learning/notebooks/locomotion.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" width=\"140\" align=\"center\"/></a>\n",
43+
"# Locomotion in The Playground! \u003ca href=\"https://colab.research.google.com/github/google-deepmind/mujoco_playground/blob/main/learning/notebooks/locomotion.ipynb\"\u003e\u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" width=\"140\" align=\"center\"/\u003e\u003c/a\u003e\n",
4444
"\n",
4545
"In this notebook, we'll walk through a few locomotion environments available in MuJoCo Playground.\n",
4646
"\n",
47-
"**A Colab runtime with GPU acceleration is required.** If you're using a CPU-only runtime, you can switch using the menu \"Runtime > Change runtime type\".\n"
47+
"**A Colab runtime with GPU acceleration is required.** If you're using a CPU-only runtime, you can switch using the menu \"Runtime \u003e Change runtime type\".\n"
4848
]
4949
},
5050
{
@@ -107,7 +107,7 @@
107107
" print('Checking that the installation succeeded:')\n",
108108
" import mujoco\n",
109109
"\n",
110-
" mujoco.MjModel.from_xml_string('<mujoco/>')\n",
110+
" mujoco.MjModel.from_xml_string('\u003cmujoco/\u003e')\n",
111111
"except Exception as e:\n",
112112
" raise e from RuntimeError(\n",
113113
" 'Something went wrong during installation. Check the shell output above '\n",
@@ -142,7 +142,7 @@
142142
"\n",
143143
"# Graphics and plotting.\n",
144144
"print(\"Installing mediapy:\")\n",
145-
"!command -v ffmpeg >/dev/null || (apt update && apt install -y ffmpeg)\n",
145+
"!command -v ffmpeg \u003e/dev/null || (apt update \u0026\u0026 apt install -y ffmpeg)\n",
146146
"!pip install -q mediapy\n",
147147
"import mediapy as media\n",
148148
"import matplotlib.pyplot as plt\n",
@@ -476,11 +476,11 @@
476476
"command = jp.array([x_vel, y_vel, yaw_vel])\n",
477477
"\n",
478478
"state = jit_reset(rng)\n",
479-
"if state.info[\"steps_since_last_pert\"] < state.info[\"steps_until_next_pert\"]:\n",
479+
"if state.info[\"steps_since_last_pert\"] \u003c state.info[\"steps_until_next_pert\"]:\n",
480480
" rng = sample_pert(rng)\n",
481481
"state.info[\"command\"] = command\n",
482482
"for i in range(env_cfg.episode_length):\n",
483-
" if state.info[\"steps_since_last_pert\"] < state.info[\"steps_until_next_pert\"]:\n",
483+
" if state.info[\"steps_since_last_pert\"] \u003c state.info[\"steps_until_next_pert\"]:\n",
484484
" rng = sample_pert(rng)\n",
485485
" act_rng, rng = jax.random.split(rng)\n",
486486
" ctrl, _ = jit_inference_fn(state.obs, act_rng)\n",
@@ -645,13 +645,13 @@
645645
"command = jp.array([x, 0, 0])\n",
646646
"state = jit_reset(rng)\n",
647647
"for i in range(1_400):\n",
648-
" # Increase the forward velocity by 0.2 m/s every 200 steps.\n",
648+
" # Increase the forward velocity by 0.25 m/s every 200 steps.\n",
649649
" if i % 200 == 0:\n",
650650
" x += 0.25\n",
651651
" print(f\"Setting x to {x}\")\n",
652652
" command = jp.array([x, 0, 0])\n",
653653
" state.info[\"command\"] = command\n",
654-
" if state.info[\"steps_since_last_pert\"] < state.info[\"steps_until_next_pert\"]:\n",
654+
" if state.info[\"steps_since_last_pert\"] \u003c state.info[\"steps_until_next_pert\"]:\n",
655655
" rng = sample_pert(rng)\n",
656656
" act_rng, rng = jax.random.split(rng)\n",
657657
" ctrl, _ = jit_inference_fn(state.obs, act_rng)\n",

0 commit comments

Comments
 (0)