Files
VibemakerSandbox/app/public/robots/microduck-legs/robot.json
T

322 lines
6.2 KiB
JSON

{
"schema": 1,
"id": "microduck-legs",
"name": "Microduck",
"family": "microduck",
"adapter": "microduck",
"dimensions": { "height": 0.27 },
"model": "../../robot/mjlab/robot_allcollisions.xml",
"assets": [],
"base": {
"type": "floating",
"root_body": "trunk_base",
"freejoint": "trunk_base_freejoint",
"spawn": {
"pos": [
-0.6000000000000001,
0,
0.12
],
"yaw": 0
}
},
"sim": {
"timestep": 0.005,
"decimation": 4
},
"joints": {
"groups": {
"policy": [
"left_hip_yaw",
"left_hip_roll",
"left_hip_pitch",
"left_knee",
"left_ankle",
"neck_pitch",
"head_pitch",
"head_yaw",
"head_roll",
"right_hip_yaw",
"right_hip_roll",
"right_hip_pitch",
"right_knee",
"right_ankle"
]
},
"defaults": {
"left_hip_yaw": 0,
"left_hip_roll": -0.0872664600610733,
"left_hip_pitch": -0.4579240083694458,
"left_knee": -0.004939999897032976,
"left_ankle": 0.4529840052127838,
"neck_pitch": 0.3490658402442932,
"head_pitch": 0.3490658402442932,
"head_yaw": 0,
"head_roll": 0,
"right_hip_yaw": 0,
"right_hip_roll": 0.0872664600610733,
"right_hip_pitch": 0.4579240083694458,
"right_knee": 0.004939999897032976,
"right_ankle": -0.4529840052127838
}
},
"observations": {
"obs": {
"terms": [
{
"type": "gyro",
"sensor": "imu_ang_vel"
},
{
"type": "projected_gravity",
"body": "trunk_base"
},
{
"type": "joint_pos_rel",
"group": "policy"
},
{
"type": "joint_vel",
"group": "policy"
},
{
"type": "last_action",
"group": "policy"
},
{
"type": "command",
"size": 13
}
]
}
},
"actions": [
{
"type": "joint_position",
"group": "policy",
"scale": 1,
"offset": "default"
}
],
"actuation": {
"type": "native_position"
},
"commands": {
"size": 13,
"limits": [
0.25,
-0.2,
1
]
},
"skills": [
{
"id": "walk",
"kind": "primary",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/BEST_alpha_walking.onnx"
}
},
{
"id": "sitstand",
"kind": "episodic",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/BEST_alpha_sitstand.onnx"
}
},
{
"id": "roll",
"kind": "episodic",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/roulade.onnx"
}
},
{
"id": "kickL",
"kind": "episodic",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/ball_kick_left.onnx"
}
},
{
"id": "kickR",
"kind": "episodic",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/ball_kick_right.onnx"
}
},
{
"id": "groundpick",
"kind": "episodic",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/alpha_ground_pick.onnx"
}
},
{
"id": "stand",
"kind": "recovery",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/BEST_alpha_stand.onnx"
}
},
{
"id": "drive",
"kind": "primary",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/BEST_roller.onnx"
}
},
{
"id": "crouch",
"kind": "episodic",
"owns": "policy",
"controller": {
"type": "onnx",
"policy": "../../policies/BEST_roller_crouch.onnx"
}
}
],
"input": {
"bindings": [
{
"action": "move_forward",
"codes": [
"ArrowUp",
"KeyW"
],
"label": "Forward"
},
{
"action": "move_backward",
"codes": [
"ArrowDown",
"KeyS"
],
"label": "Backward"
},
{
"action": "turn_left",
"codes": [
"ArrowLeft",
"KeyA"
],
"label": "Turn left"
},
{
"action": "turn_right",
"codes": [
"ArrowRight",
"KeyD"
],
"label": "Turn right"
},
{
"action": "kickL",
"codes": [
"KeyQ"
],
"label": "Left kick"
},
{
"action": "kickR",
"codes": [
"KeyE"
],
"label": "Right kick"
},
{
"action": "alternateKick",
"codes": [
"KeyF"
],
"label": "Alternate kick"
},
{
"action": "sitToggle",
"codes": [
"KeyR"
],
"label": "Sit / stand · roller crouch"
},
{
"action": "groundPick",
"codes": [
"KeyG"
],
"label": "Ground pick"
},
{
"action": "locoToggle",
"codes": [
"KeyM"
],
"label": "Feet / rollers"
},
{
"action": "chaseToggle",
"codes": [
"KeyC"
],
"label": "Restore chase camera"
},
{
"action": "roll",
"codes": ["KeyT"],
"label": "Forward roll / roller crouch"
},
{
"action": "reset",
"codes": [
"Space"
],
"label": "Reset"
},
{
"action": "pause",
"codes": [
"Escape"
],
"label": "Pause / continue"
}
]
},
"render": {
"source": "glb",
"camera": {
"distance": 0.8
}
},
"presentation": {
"theme": "comic"
},
"termination": {
"tilt_z": -0.5,
"min_height": 0.02,
"on_fall": "recovery"
},
"legacy": {
"loco": "legs",
"crouch_period": 5,
"crouch_end": 0.7,
"groundpick_period": 4,
"groundpick_end": 0.7
},
"license": "Apache-2.0; retain existing policy and asset notices"
}