forked from tangger/lerobot
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
|