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
|