2024-08-16 00:11:33 +08:00
|
|
|
import hydra
|
|
|
|
from omegaconf import DictConfig
|
2024-07-15 23:43:10 +08:00
|
|
|
|
2024-10-05 00:56:42 +08:00
|
|
|
from lerobot.common.robot_devices.robots.utils import Robot
|
2024-07-15 23:43:10 +08:00
|
|
|
|
2024-10-05 00:56:42 +08:00
|
|
|
|
|
|
|
def make_robot(cfg: DictConfig) -> Robot:
|
2024-08-16 00:11:33 +08:00
|
|
|
robot = hydra.utils.instantiate(cfg)
|
2024-07-15 23:43:10 +08:00
|
|
|
return robot
|