Skip to content

Commit

Permalink
Merge pull request #288 from ami-iit/fix_rtd_build
Browse files Browse the repository at this point in the history
Fix timeout in ReadTheDocs build
  • Loading branch information
flferretti authored Nov 15, 2024
2 parents 4ed9510 + 0574569 commit 8fa9adc
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions examples/jaxsim_for_robot_controllers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@
"[sdformat_github]: https://github.com/gazebosim/sdformat"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"\n",
"os.path.abspath(\"\")"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -98,18 +109,12 @@
},
"outputs": [],
"source": [
"# @title Download the URDF model\n",
"\n",
"import requests\n",
"\n",
"url = \"https://raw.githubusercontent.com/ami-iit/jaxsim/main/examples/assets/cartpole.urdf\"\n",
"\n",
"response = requests.get(url)\n",
"# @title Load the URDF model\n",
"import pathlib\n",
"\n",
"if response.status_code == 200:\n",
" model_urdf_string = response.text\n",
"else:\n",
" raise RuntimeError(\"Failed to fetch data.\")"
"model_urdf_string = pathlib.Path(\n",
" os.path.abspath(\"\") + \"/assets/cartpole.urdf\"\n",
").read_text()"
]
},
{
Expand Down

0 comments on commit 8fa9adc

Please sign in to comment.