Closed Elfits closed 4 years ago
Hi Zhihao,
Here is a requirements.txt file with all of the Python libraries needed for a clean install of Assistive Gym.
Thanks!!
I updated keras to 2.3.1 and solved this problem.
However, after I run the random-actions.py
in the examples
, here are still errors:
Traceback (most recent call last): File "F:/assistive-gym-test/examples/random_actions.py", line 5, in
observation = env.reset() File "E:\anaconda\lib\site-packages\gym\wrappers\time_limit.py", line 25, in reset return self.env.reset(*kwargs) File "F:\assistive-gym-test\assistive_gym\envs\feeding.py", line 104, in reset self.human, self.wheelchair, self.robot, self.robot_lower_limits, self.robot_upper_limits, self.human_lower_limits, self.human_upper_limits, self.robot_right_arm_joint_indices, self.robot_left_arm_joint_indices, self.gender = self.world_creation.create_new_world(furniture_type='wheelchair', static_human_base=True, human_impairment='random', print_joints=False, gender='random') File "F:\assistive-gym-test\assistive_gym\envs\world_creation.py", line 66, in create_new_world human, human_lower_limits, human_upper_limits = self.init_human(static_human_base, self.human_limit_scale, print_joints, gender=gender) File "F:\assistive-gym-test\assistive_gym\envs\world_creation.py", line 89, in init_human human = self.human_creation.create_human(static=static_human_base, limit_scale=limit_scale, specular_color=[0.1, 0.1, 0.1], gender=gender, config=self.config) File "F:\assistive-gym-test\assistive_gym\envs\human_creation.py", line 265, in create_human human = p.createMultiBody(baseMass=0 if static else m0.1, baseCollisionShapeIndex=chest_c, baseVisualShapeIndex=chest_v, basePosition=chest_p, baseOrientation=[0, 0, 0, 1], linkMasses=linkMasses, linkCollisionShapeIndices=linkCollisionShapeIndices, linkVisualShapeIndices=linkVisualShapeIndices, linkPositions=linkPositions, linkOrientations=linkOrientations, linkInertialFramePositions=linkInertialFramePositions, linkInertialFrameOrientations=linkInertialFrameOrientations, linkParentIndices=linkParentIndices, linkJointTypes=linkJointTypes, linkJointAxis=linkJointAxis, linkLowerLimits=linkLowerLimits, linkUpperLimits=linkUpperLimits, useMaximalCoordinates=False, flags=p.URDF_USE_SELF_COLLISION, physicsClientId=self.id) TypeError: 'linkLowerLimits' is an invalid keyword argument for this function
It looks like you may have the original pybullet library installed. You will want to install a customized pybullet here: https://github.com/Zackory/bullet3 Further details can be found here: https://github.com/Healthcare-Robotics/assistive-gym/wiki/1.-Install
This custom pybullet library includes python wrappers for cloth simulation and human joint limits in pybullet.
Thanks!! It works now! I think this issue (question) can be closed now and hope it would also be helpful for other beginners. BTW, you and your team's work are so impressive! It is definitely a valuable project for deploying reinforcement learning with python bullet. I also visited your personal website and your experience and works are so brilliant! I will learn from you. : )
Thank you. =)
Brilliant work!! I am running the
env_viewer.py
but I get one error on the model. I think it is due to the version of keras. Which version of keras and tensorflow did you use? FYI, here is the error log: