Remove deprecated mjv_makeConnector function.

PiperOrigin-RevId: 690563333
Change-Id: Ice9c6b6cf41de8a55fa361477f9aee9181d50184
This commit is contained in:
Yuval Tassa
2024-10-28 04:50:41 -07:00
committed by Copybara-Service
parent 3c21abc0e5
commit d8494fef3b
11 changed files with 17 additions and 103 deletions
+4 -5
View File
@@ -1872,14 +1872,13 @@
" if scene.ngeom >= 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",