mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-24 21:19:53 +00:00
1a343c3591
Co-authored-by: Remi <remi.cadene@huggingface.co> Co-authored-by: Remi Cadene <re.cadene@gmail.com>
10 lines
209 B
Python
10 lines
209 B
Python
import hydra
|
|
from omegaconf import DictConfig
|
|
|
|
from lerobot.common.robot_devices.robots.utils import Robot
|
|
|
|
|
|
def make_robot(cfg: DictConfig) -> Robot:
|
|
robot = hydra.utils.instantiate(cfg)
|
|
return robot
|