Code Monkey home page Code Monkey logo

Comments (5)

Zackory avatar Zackory commented on June 9, 2024

Hi Zhihao,

Here is a requirements.txt file with all of the Python libraries needed for a clean install of Assistive Gym.

requirements.txt

from assistive-gym.

Elfits avatar Elfits commented on June 9, 2024

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 m*0.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

from assistive-gym.

Zackory avatar Zackory commented on June 9, 2024

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.

from assistive-gym.

Elfits avatar Elfits commented on June 9, 2024

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. : )

from assistive-gym.

Zackory avatar Zackory commented on June 9, 2024

Thank you. =)

from assistive-gym.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.