Skip to content

Conversation

@martin-gou
Copy link
Contributor

@martin-gou martin-gou commented Dec 17, 2025

resolved #283.

in urdf_common/urdf_env.py:219

# git diff
-            contacts = pybullet.getContactPoints(robot._robot)
+            contacts = pybullet.getContactPoints(
+                bodyA=robot._robot,
+                physicsClientId=self._cid
+            ) or []
  1. specified physicsClientId=self._cid, so pybullet won't use wrong physicsClientId when others is also connecting pybullet.
  2. add protection or [], so even when contacts is None, it won't crash the whole program.

@maxspahn maxspahn merged commit 1272075 into maxspahn:develop Dec 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Program crash due to pybullet client id not specified

2 participants