enable pybullet_env Ant Gym rendering, tinyRenderer has some issue with the ant.xml file though

This commit is contained in:
Erwin Coumans
2017-09-09 15:27:10 -07:00
parent c895bd244f
commit 666c824b81
2 changed files with 29 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ class WalkerBase(MJCFBasedRobot):
self.camera_x = 0
self.walk_target_x = 1e3 # kilometer away
self.walk_target_y = 0
self.body_xyz=[0,0,0]
def robot_specific_reset(self):
for j in self.ordered_joints:
j.reset_current_position(self.np_random.uniform(low=-0.1, high=0.1), 0)