Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. If you face a error of `ModuleNotFoundError: No module named 'robot_bases'` on pybullet 2.5.0,
  2. you should **modify** a source code of pybullet.
  3. This issue may be fixed on future release because the pybullet source code is updated on github.
  4.  
  5. If you are using anaconda, you need to modify `/anaconda3/envs/XXXX/lib/python3.6/site-packages/pybullet_envs/robot_locomotors.py`.
  6.  
  7. Please open robot_locomotors.py.
  8. You can see...
  9.  
  10. ```robot_locomotors.py
  11. from robot_bases import XmlBasedRobot, MJCFBasedRobot, URDFBasedRobot
  12. import numpy as np
  13. import pybullet
  14. import os
  15. import pybullet_data
  16. from robot_bases import BodyPart
  17. ```
  18.  
  19. You need to add `pybullet_envs.` for `robot_bases` like follows.
  20.  
  21. ```robot_locomotors.py
  22. from pybullet_envs.robot_bases import XmlBasedRobot, MJCFBasedRobot, URDFBasedRobot
  23. import numpy as np
  24. import pybullet
  25. import os
  26. import pybullet_data
  27. from pybullet_envs.robot_bases import BodyPart
  28. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement