Skip to content

Commit

Permalink
Merge fix-setup changes into final
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoPivotto committed Sep 17, 2023
1 parent 65098f2 commit 7d56143
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assistive_gym/envs/agents/human.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ def enforce_realistic_joint_limits(self):
tx2 = (tx + 2*np.pi) % (2*np.pi)
ty2 = (-1 if right else 1)*ty
qe2 = (-qe + 2*np.pi) % (2*np.pi)
result = self.limits_model.predict_classes(np.array([[tz2, tx2, ty2, qe2]]))
predict_class = self.limits_model.predict(np.array([[tz2, tx2, ty2, qe2]]))
result = np.argmax(predict_class, axis=1)
if result == 1:
# This is a valid pose for the person
self.arm_previous_valid_pose[right] = [tz, tx, ty, qe]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
packages=find_packages(),
python_requires='>=3',
# install_requires=['gym>=0.2.3', 'pybullet', 'numpy', 'keras==2.3.0', 'tensorflow==1.14.0', 'h5py==2.10.0', 'smplx', 'trimesh'] + ['screeninfo==0.6.1' if sys.version_info >= (3, 6) else 'screeninfo==0.2'],
install_requires=['gym>=0.2.3', 'pybullet @ git+https://github.com/Zackory/bullet3.git#egg=pybullet', 'numpy', 'keras==2.3.0', 'tensorflow==1.14.0', 'h5py==2.10.0', 'smplx', 'trimesh', 'ray[rllib]', 'numpngw', 'tensorflow-probability==0.7.0'] + ['screeninfo==0.6.1' if sys.version_info >= (3, 6) else 'screeninfo==0.2'],
install_requires=['gym>=0.2.3', 'pybullet @ git+https://github.com/Zackory/bullet3.git#egg=pybullet', 'numpy', 'keras==2.6.0', 'tensorflow==2.6.2', 'h5py==3.1.0', 'smplx', 'trimesh', 'ray[rllib]==1.3.0', 'numpngw', 'tensorflow-probability==0.7.0'] + ['screeninfo==0.6.1' if sys.version_info >= (3, 6) else 'screeninfo==0.2'] + ['lz4==3.1.3'], # NOTE: Python 3.6 requires at most 'lz4==3.1.3' because future feature annotations is not defined
# description='Physics simulation for assistive robotics and human-robot interaction.',
# long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 7d56143

Please sign in to comment.