Update simulation params in MJX's tutorial
This commit is contained in:
+3
-3
@@ -440,12 +440,12 @@
|
|||||||
" mj_model = mujoco.MjModel.from_xml_path(\n",
|
" mj_model = mujoco.MjModel.from_xml_path(\n",
|
||||||
" (path / 'humanoid.xml').as_posix())\n",
|
" (path / 'humanoid.xml').as_posix())\n",
|
||||||
" mj_model.opt.solver = mujoco.mjtSolver.mjSOL_CG\n",
|
" mj_model.opt.solver = mujoco.mjtSolver.mjSOL_CG\n",
|
||||||
" mj_model.opt.iterations = 6\n",
|
" mj_model.opt.iterations = 4\n",
|
||||||
" mj_model.opt.ls_iterations = 6\n",
|
" mj_model.opt.ls_iterations = 4\n",
|
||||||
"\n",
|
"\n",
|
||||||
" sys = mjcf.load_model(mj_model)\n",
|
" sys = mjcf.load_model(mj_model)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" physics_steps_per_control_step = 5\n",
|
" physics_steps_per_control_step = 4\n",
|
||||||
" kwargs['n_frames'] = kwargs.get(\n",
|
" kwargs['n_frames'] = kwargs.get(\n",
|
||||||
" 'n_frames', physics_steps_per_control_step)\n",
|
" 'n_frames', physics_steps_per_control_step)\n",
|
||||||
" kwargs['backend'] = 'mjx'\n",
|
" kwargs['backend'] = 'mjx'\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user