parameters: (self)
docstring: Clean up connection if not already done.
docstring_summary: Clean up connection if not already done.
docstring_tokens: Clean up connection if not already done .
function: def __del__(self):
      """Clean up connection if not already done."""
      if self._client>=0 and self._pid == os.getpid():
        try:
          pybullet.disconnect(physicsClientId=self._client)
          self._client = -1
        except pybullet.error:
          pass
function_tokens: def __del__ ( self ) : if self . _client >= 0 and self . _pid == os . getpid ( ) : try : pybullet . disconnect ( physicsClientId = self . _client ) self . _client = - 1 except pybullet . error : pass