| |
| |
| |
| |
| |
| |
| |
|
|
| """Lazy accessors for quadrotor asset configs to avoid heavy deps at import time.""" |
|
|
| from __future__ import annotations |
|
|
| from importlib import import_module |
| from typing import Any |
|
|
| __all__ = ["FIVE_INCH_DRONE_CFG", "AERIAL_MANIPULATOR_CFG"] |
|
|
|
|
| def __getattr__(name: str) -> Any: |
| if name == "FIVE_INCH_DRONE_CFG": |
| module = import_module(".five_inch_drone.five_inch_drone_cfg", __name__) |
| cfg = module.FIVE_INCH_DRONE_CFG |
| globals()[name] = cfg |
| return cfg |
| if name == "AERIAL_MANIPULATOR_CFG": |
| module = import_module(".aerial_manipulator.aerial_manipulator_cfg", __name__) |
| cfg = module.AERIAL_MANIPULATOR_CFG |
| globals()[name] = cfg |
| return cfg |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") |
|
|