Healthcare-Robotics / assistive-gym

Assistive Gym, a physics-based simulation framework for physical human-robot interaction and robotic assistance.
MIT License
306 stars 73 forks source link

About p.setGravity #18

Closed Li-zhuoran closed 2 years ago

Li-zhuoran commented 2 years ago
 File "/home/dell/RL/assistive-gym/assistive_gym/envs/agents/agent.py", line 228, in set_gravity
    p.setGravity(ax, ay, az, body=self.body, physicsClientId=self.id)
TypeError: function takes at most 4 arguments (5 given)

Everything was normal before . After I modified the version of pybullet, the above error occurred .

《PyBullet Quickstart Guide》shows that setGravity only needs 4 arguments.But I do need to set different gravity for different agents . So .... how to solve this problem

Zackory commented 2 years ago

You will want to install the custom version of PyBullet required for Assistive Gym. https://github.com/Healthcare-Robotics/assistive-gym/blob/main/setup.py#L21 https://github.com/Zackory/bullet3