GR00T-WholeBodyControl / external_dependencies /unitree_sdk2_python /unitree_sdk2py /utils /singleton.py
Download external_dependencies/unitree_sdk2_python/unitree_sdk2py/utils/singleton.py from chibifire/GR00T-WholeBodyControl: direct link, hf CLI and curl.
- Browser
- Download file 247 Bytes
-
https://huggingface.co/chibifire/GR00T-WholeBodyControl/resolve/main/external_dependencies/unitree_sdk2_python/unitree_sdk2py/utils/singleton.py
- Command line
-
hf download hf://chibifire/GR00T-WholeBodyControl/external_dependencies/unitree_sdk2_python/unitree_sdk2py/utils/singleton.py
-
curl -L -o singleton.py https://huggingface.co/chibifire/GR00T-WholeBodyControl/resolve/main/external_dependencies/unitree_sdk2_python/unitree_sdk2py/utils/singleton.py
247 Bytes
| class Singleton: | |
| __instance = None | |
| def __new__(cls, *args, **kwargs): | |
| if cls.__instance is None: | |
| cls.__instance = super(Singleton, cls).__new__(cls) | |
| return cls.__instance | |
| def __init__(self): | |
| pass | |