We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5abd21a commit 20796d6Copy full SHA for 20796d6
urdfenvs/urdf_common/urdf_env.py
@@ -217,7 +217,10 @@ def step(self, action: np.ndarray):
217
218
pybullet.stepSimulation(self._cid)
219
for robot_id, robot in enumerate(self._robots):
220
- contacts = pybullet.getContactPoints(robot._robot)
+ contacts = pybullet.getContactPoints(
221
+ bodyA=robot._robot,
222
+ physicsClientId=self._cid
223
+ ) or []
224
for contact_info in contacts:
225
body_b = contact_info[2]
226
if body_b in self._obsts:
0 commit comments