|
91 | 91 | "\"\"\")\n", |
92 | 92 | "\n", |
93 | 93 | "print('Installing dm_control...')\n", |
94 | | - "!pip install -q dm_control\u003e=1.0.34\n", |
| 94 | + "!pip install -q dm_control\u003e=1.0.35\n", |
95 | 95 | "\n", |
96 | 96 | "# Configure dm_control to use the EGL rendering backend (requires GPU)\n", |
97 | 97 | "%env MUJOCO_GL=egl\n", |
|
317 | 317 | "\u003cmujoco\u003e\n", |
318 | 318 | " \u003cworldbody\u003e\n", |
319 | 319 | " \u003clight name=\"top\" pos=\"0 0 1\"/\u003e\n", |
320 | | - " \u003cbody name=\"box_and_sphere\" euler=\"0 0 -30\"\u003e \n", |
| 320 | + " \u003cbody name=\"box_and_sphere\" euler=\"0 0 -30\"\u003e\n", |
321 | 321 | " \u003cjoint name=\"swing\" type=\"hinge\" axis=\"1 -1 0\" pos=\"-.2 -.2 -.2\"/\u003e\n", |
322 | 322 | " \u003cgeom name=\"red_box\" type=\"box\" size=\".2 .2 .2\" rgba=\"1 0 0 1\"/\u003e\n", |
323 | 323 | " \u003cgeom name=\"green_sphere\" pos=\".2 .2 .2\" size=\".1\" rgba=\"0 1 0 1\"/\u003e\n", |
|
758 | 758 | "\u003cmujoco model=\"tippe top\"\u003e\n", |
759 | 759 | " \u003coption integrator=\"RK4\"/\u003e\n", |
760 | 760 | " \u003casset\u003e\n", |
761 | | - " \u003ctexture name=\"grid\" type=\"2d\" builtin=\"checker\" rgb1=\".1 .2 .3\" \n", |
| 761 | + " \u003ctexture name=\"grid\" type=\"2d\" builtin=\"checker\" rgb1=\".1 .2 .3\"\n", |
762 | 762 | " rgb2=\".2 .3 .4\" width=\"300\" height=\"300\"/\u003e\n", |
763 | 763 | " \u003cmaterial name=\"grid\" texture=\"grid\" texrepeat=\"8 8\" reflectance=\".2\"/\u003e\n", |
764 | 764 | " \u003c/asset\u003e\n", |
|
770 | 770 | " \u003cfreejoint/\u003e\n", |
771 | 771 | " \u003cgeom name=\"ball\" type=\"sphere\" size=\".02\" /\u003e\n", |
772 | 772 | " \u003cgeom name=\"stem\" type=\"cylinder\" pos=\"0 0 .02\" size=\"0.004 .008\"/\u003e\n", |
773 | | - " \u003cgeom name=\"ballast\" type=\"box\" size=\".023 .023 0.005\" pos=\"0 0 -.015\" \n", |
| 773 | + " \u003cgeom name=\"ballast\" type=\"box\" size=\".023 .023 0.005\" pos=\"0 0 -.015\"\n", |
774 | 774 | " contype=\"0\" conaffinity=\"0\" group=\"3\"/\u003e\n", |
775 | 775 | " \u003c/body\u003e\n", |
776 | 776 | " \u003c/worldbody\u003e\n", |
|
1374 | 1374 | " self._button.set_pose(physics, position=button_pose)\n", |
1375 | 1375 | "\n", |
1376 | 1376 | " def get_reward(self, physics):\n", |
1377 | | - " return self._button.num_activated_steps / NUM_SUBSTEPS " |
| 1377 | + " return self._button.num_activated_steps / NUM_SUBSTEPS" |
1378 | 1378 | ], |
1379 | 1379 | "outputs": [], |
1380 | 1380 | "execution_count": null |
|
0 commit comments