Fix PointEnv.set_state

This commit is contained in:
kngwyu 2020-05-26 12:21:52 +09:00
parent f507209fd9
commit 025e774516
2 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,6 @@
<joint name='bally' type='slide' axis='0 1 0' pos='0 0 0' />
<joint name='rot' type='hinge' axis='0 0 1' pos='0 0 0' limited="false" />
</body>
<!-- Goal / target position -->
<geom name="target" type="sphere" size="0.5" pos="0 8 0" rgba="1. 0. 0. 0.6" />
</worldbody>

View File

@ -99,3 +99,4 @@ class PointEnv(mujoco_env.MujocoEnv, utils.EzPickle):
qpos[1] = xy[1]
qvel = self.physics.data.qvel
self.set_state(qpos, qvel)