mirror of
https://github.com/huggingface/lerobot.git
synced 2026-06-04 04:41:24 +00:00
Co-authored-by: Simon Alibert <alibert.sim@gmail.com> Co-authored-by: jess-moss <jess.moss@dextrousrobotics.com> Co-authored-by: Marina Barannikov <marina.barannikov@huggingface.co> Co-authored-by: Alexander Soare <alexander.soare159@gmail.com>
8 lines
139 B
Python
8 lines
139 B
Python
import hydra
|
|
from omegaconf import DictConfig
|
|
|
|
|
|
def make_robot(cfg: DictConfig):
|
|
robot = hydra.utils.instantiate(cfg)
|
|
return robot
|