def physics(self):
   # check mujoco version is greater than version 1.50 to call correct physics
   # model containing PyMjData object for getting and setting position/velocity
   # check https://github.com/openai/mujoco-py/issues/80 for updates to api
   if mujoco_py.get_version() >= '1.50':
     return self.sim
   else:
     return self.model
예제 #2
0
파일: point.py 프로젝트: rder96/models
 def physics(self):
   # check mujoco version is greater than version 1.50 to call correct physics
   # model containing PyMjData object for getting and setting position/velocity
   # check https://github.com/openai/mujoco-py/issues/80 for updates to api
   if mujoco_py.get_version() >= '1.50':  
     return self.sim
   else:
     return self.model