File tree Expand file tree Collapse file tree
dm_control/mujoco/wrapper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import contextlib
1919import copy
2020import ctypes
21- import threading
2221import weakref
2322
2423from absl import logging
3130
3231# Unused internal import: resources.
3332
34- _NULL = b"\00 "
3533_FAKE_BINARY_FILENAME = "model.mjb"
3634
3735_CONTACT_ID_OUT_OF_RANGE = (
3836 "`contact_id` must be between 0 and {max_valid} (inclusive), got: {actual}."
3937)
4038
41- # Global cache used to store finalizers for freeing ctypes pointers.
42- # Contains {pointer_address: weakref_object} pairs.
43- _FINALIZERS = {}
44-
4539
4640class Error (Exception ):
4741 """Base class for MuJoCo exceptions."""
@@ -52,9 +46,6 @@ class Error(Exception):
5246 raise Error ("MuJoCo library version ({0}) does not match header version "
5347 "({1})" .format (mujoco .mjVERSION_HEADER , mujoco .mj_version ()))
5448
55- _REGISTERED = False
56- _REGISTRATION_LOCK = threading .Lock ()
57-
5849# This is used to keep track of the `MJMODEL` pointer that was most recently
5950# loaded by `_get_model_ptr_from_xml`. Only this model can be saved to XML.
6051_LAST_PARSED_MODEL_PTR = None
You can’t perform that action at this time.
0 commit comments