From 13f11d4c45528f1f71e809f3a314c475776266a9 Mon Sep 17 00:00:00 2001 From: Alessio Quaglino Date: Mon, 28 Oct 2024 10:59:13 -0700 Subject: [PATCH] Fit typo in mjSpec tutorial link. PiperOrigin-RevId: 690676376 Change-Id: I5f082f5703488403aa65be76d208def68ccc3eb9 --- python/mjspec.ipynb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/python/mjspec.ipynb b/python/mjspec.ipynb index f59cac69..6f9455fd 100644 --- a/python/mjspec.ipynb +++ b/python/mjspec.ipynb @@ -8,7 +8,7 @@ "source": [ "![MuJoCo banner](https://raw.githubusercontent.com/google-deepmind/mujoco/main/banner.png)\n", "\n", - "#

Model Editing

\n", + "#

Model Editing

\n", "\n", "This notebook provides an introductory tutorial for model editing in MuJoCo using the `mjSpec` API. This notebook assumes that the reader is already familiar with MuJoCo basic concepts, as demostrated in the [introductory tutorial](https://github.com/google-deepmind/mujoco?tab=readme-ov-file#getting-started). Documentation for this API can be found in the [Model Editing](https://mujoco.readthedocs.io/en/latest/programming/modeledit.html) chapter in the documentation (C API) and in the [Python chapter](https://mujoco.readthedocs.io/en/latest/python.html#model-editing). Here we use the Python API.\n", "\n", @@ -83,8 +83,8 @@ "# Check if installation was succesful.\n", "try:\n", " print('Checking that the installation succeeded:')\n", - " import mujoco\n", - " mujoco.MjModel.from_xml_string('')\n", + " import mujoco as mj\n", + " mj.MjModel.from_xml_string('')\n", "except Exception as e:\n", " raise e from RuntimeError(\n", " 'Something went wrong during installation. Check the shell output above '\n", @@ -806,9 +806,6 @@ ], "metadata": { "colab": { - "collapsed_sections": [ - "sJFuNetilv4m" - ], "private_outputs": true }, "kernelspec": {