From ce64aff7af98780eb528d17bcf2445fd026e7fdc Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Sat, 9 Sep 2017 16:00:03 -0700 Subject: [PATCH] ant env, fix feet_collision reward issue --- examples/pybullet/gym/pybullet_envs/gym_locomotion_envs.py | 3 +-- setup.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/pybullet/gym/pybullet_envs/gym_locomotion_envs.py b/examples/pybullet/gym/pybullet_envs/gym_locomotion_envs.py index 102a39cf4..afa592a50 100644 --- a/examples/pybullet/gym/pybullet_envs/gym_locomotion_envs.py +++ b/examples/pybullet/gym/pybullet_envs/gym_locomotion_envs.py @@ -65,9 +65,8 @@ class WalkerBaseBulletEnv(MJCFBaseBulletEnv): contact_ids = set((x[2], x[4]) for x in f.contact_list()) #print("CONTACT OF '%d' WITH %d" % (contact_ids, ",".join(contact_names)) ) if (self.ground_ids & contact_ids): - #disable feet_collision_cost update, for compatibility with Roboschool #see Issue 63: https://github.com/openai/roboschool/issues/63 - #feet_collision_cost += self.foot_collision_cost + feet_collision_cost += self.foot_collision_cost self.robot.feet_contact[i] = 1.0 else: self.robot.feet_contact[i] = 0.0 diff --git a/setup.py b/setup.py index b67974942..2ef9bd97d 100644 --- a/setup.py +++ b/setup.py @@ -440,7 +440,7 @@ print("-----") setup( name = 'pybullet', - version='1.3.3', + version='1.3.5', description='Official Python Interface for the Bullet Physics SDK specialized for Robotics Simulation and Reinforcement Learning', long_description='pybullet is an easy to use Python module for physics simulation, robotics and deep reinforcement learning based on the Bullet Physics SDK. With pybullet you can load articulated bodies from URDF, SDF and other file formats. pybullet provides forward dynamics simulation, inverse dynamics computation, forward and inverse kinematics and collision detection and ray intersection queries. Aside from physics simulation, pybullet supports to rendering, with a CPU renderer and OpenGL visualization and support for virtual reality headsets.', url='https://github.com/bulletphysics/bullet3',