import pybullet as p
import os
self.client = p.connect(p.DIRECT)
p.setGravity(gravX=0,gravY=0,gravZ=9.8, physicsClientId=self.client)
full_path = os.path.join(os.path.dirname(__file__), "..", "..", "assets", "mjcf", 'ant.xml')
p.loadMJKF(full_path, flags=pybullet.URDF_USE_SELF_COLLISION|pybullet.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS)
results in Error:
File "antsumo.py", line 10, in init
p.loadMJKF(full_path, flags=pybullet.URDF_USE_SELF_COLLISION|pybullet.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS)
AttributeError: module 'pybullet' has no attribute 'loadMJKF'
Probably I'm just stupid, but I can't explain this to myself right now as I'm just following the Quickstart Walkthrough.
Pybullet Gyms seem to call loadMJCF not on the imported pybullet module, but rather on the return of 'p.connect(...)'
which seems weird to me though, as this is supposed to be just an int from what I understand.
Sorry for the confusion and thanks for all the effort!
results in Error: File "antsumo.py", line 10, in init p.loadMJKF(full_path, flags=pybullet.URDF_USE_SELF_COLLISION|pybullet.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS) AttributeError: module 'pybullet' has no attribute 'loadMJKF'
Probably I'm just stupid, but I can't explain this to myself right now as I'm just following the Quickstart Walkthrough.
Pybullet Gyms seem to call loadMJCF not on the imported pybullet module, but rather on the return of 'p.connect(...)' which seems weird to me though, as this is supposed to be just an int from what I understand.
Sorry for the confusion and thanks for all the effort!