Skip to content

Commit

Permalink
Remove deprecated mjv_makeConnector function.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 690563333
Change-Id: I203b2742d3e12d30e968516ecd2c9a4784dd1caf
  • Loading branch information
yuvaltassa authored and copybara-github committed Oct 28, 2024
1 parent 1bcdb82 commit e3f93b0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dm_control/mujoco/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -517,14 +517,13 @@
" if scene.ngeom \u003e= scene.maxgeom:\n",
" return\n",
" scene.ngeom += 1 # increment ngeom\n",
" # initialise a new capsule, add it to the scene using mjv_makeConnector\n",
" # initialise a new capsule, add it to the scene using mjv_connector\n",
" mujoco.mjv_initGeom(scene.geoms[scene.ngeom-1],\n",
" mujoco.mjtGeom.mjGEOM_CAPSULE, np.zeros(3),\n",
" np.zeros(3), np.zeros(9), rgba.astype(np.float32))\n",
" mujoco.mjv_makeConnector(scene.geoms[scene.ngeom-1],\n",
" mujoco.mjtGeom.mjGEOM_CAPSULE, radius,\n",
" point1[0], point1[1], point1[2],\n",
" point2[0], point2[1], point2[2])\n",
" mujoco.mjv_connector(scene.geoms[scene.ngeom-1],\n",
" mujoco.mjtGeom.mjGEOM_CAPSULE, radius,\n",
" point1, point2)\n",
"\n",
" # traces of time, position and speed\n",
"times = []\n",
Expand Down

0 comments on commit e3f93b0

Please sign in to comment.