Export the robot
export_robotChecks the design as a robot and saves it as the export panel does - URDF, MJCF (MuJoCo), SDF (Gazebo) and a ROS 2 package with a mesh per link, in one zip downloaded in the user's browser: each part a link (its mass and inertia from its bodies and material), each joint a joint, the pinned part the root. Returns the links with their masses, the joints, the drives the robot offers and the checks: errors stop the export (fix them and call again - a slider without limits, a part joined to nothing), warnings say what the files make of the design. check_only reports without saving.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_robot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The robot's name (and the package's). | |
| drive | No | How it moves in Gazebo besides its joints. | |
| formats | No | Default: all four. | |
| floating | No | A mobile robot: its root free, not fixed to the world. | |
| check_only | No |