Adding a New Robot — Quick Reference#
This guide provides a checklist and key reference for adding a new robot to EmbodiChain. For the full step-by-step walkthrough with code examples, see /tutorial/add_robot.
Checklist#
Prepare the URDF — Place your URDF file (and associated meshes) in the robot assets directory.
Create the config class — Inherit from
RobotCfg, implementfrom_dictand_build_default_cfgs.Define control parts — Group joints into logical sets (e.g.,
arm,gripper).Configure IK solver — Choose
OPWSolverCfg,SRSSolverCfg, or a genericSolverCfg.Set drive properties — Configure stiffness, damping, and max effort per joint group.
Implement
build_pk_serial_chain— Required for PyTorch-Kinematics IK support.Register in
embodichain/lab/sim/robots/__init__.py.Add documentation — Create
docs/source/resources/robot/my_robot.mdand updateresources/robot/index.rst.Test — Add a
__main__block or use thepreview-assetCLI to verify.
Approaches#
Single-file (simple robots): One
my_robot.pywith everything.Package (complex robots): Directory with
types.py,params.py,utils.py,cfg.py,__init__.py.
Key Parameters#
Parameter |
Type |
Description |
|---|---|---|
|
str |
Unique robot identifier |
|
URDFCfg |
URDF file and components |
|
Dict[str, List[str]] |
Joint groups for control |
|
Dict[str, SolverCfg] |
IK solver configurations |
|
JointDrivePropertiesCfg |
Joint stiffness, damping, force |
Tip
See the full tutorial for complete code examples of both approaches.
See Also#
/tutorial/add_robot — Full step-by-step tutorial
Simulating a Robot — Using robots in simulation
Solvers — IK solver reference
Supported Robots — Existing robot documentation