693 lines
17 KiB
JSON
693 lines
17 KiB
JSON
{
|
|
"schema": 1,
|
|
"id": "rp1",
|
|
"name": "RP1",
|
|
"family": "rp1",
|
|
"adapter": "generic",
|
|
"dimensions": {
|
|
"height": 1.32
|
|
},
|
|
"model": "model.xml",
|
|
"assets": [
|
|
{
|
|
"path": "meshes/base_link.STL",
|
|
"vfs": "meshes/base_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_hip_pitch_link.STL",
|
|
"vfs": "meshes/left_hip_pitch_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_hip_roll_link.STL",
|
|
"vfs": "meshes/left_hip_roll_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_hip_yaw_link.STL",
|
|
"vfs": "meshes/left_hip_yaw_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_knee_link.STL",
|
|
"vfs": "meshes/left_knee_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_ankle_pitch_link.STL",
|
|
"vfs": "meshes/left_ankle_pitch_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_ankle_roll_link.STL",
|
|
"vfs": "meshes/left_ankle_roll_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_hip_pitch_link.STL",
|
|
"vfs": "meshes/right_hip_pitch_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_hip_roll_link.STL",
|
|
"vfs": "meshes/right_hip_roll_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_hip_yaw_link.STL",
|
|
"vfs": "meshes/right_hip_yaw_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_knee_link.STL",
|
|
"vfs": "meshes/right_knee_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_ankle_pitch_link.STL",
|
|
"vfs": "meshes/right_ankle_pitch_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_ankle_roll_link.STL",
|
|
"vfs": "meshes/right_ankle_roll_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/waist_roll_link.STL",
|
|
"vfs": "meshes/waist_roll_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/waist_yaw_link.STL",
|
|
"vfs": "meshes/waist_yaw_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_shoulder_pitch_link.STL",
|
|
"vfs": "meshes/left_shoulder_pitch_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_shoulder_roll_link.STL",
|
|
"vfs": "meshes/left_shoulder_roll_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_shoulder_yaw_link.STL",
|
|
"vfs": "meshes/left_shoulder_yaw_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_elbow_link.STL",
|
|
"vfs": "meshes/left_elbow_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/left_wrist_link.STL",
|
|
"vfs": "meshes/left_wrist_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_shoulder_pitch_link.STL",
|
|
"vfs": "meshes/right_shoulder_pitch_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_shoulder_roll_link.STL",
|
|
"vfs": "meshes/right_shoulder_roll_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_shoulder_yaw_link.STL",
|
|
"vfs": "meshes/right_shoulder_yaw_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_elbow_link.STL",
|
|
"vfs": "meshes/right_elbow_link.STL"
|
|
},
|
|
{
|
|
"path": "meshes/right_wrist_link.STL",
|
|
"vfs": "meshes/right_wrist_link.STL"
|
|
}
|
|
],
|
|
"base": {
|
|
"type": "floating",
|
|
"root_body": "base_link",
|
|
"freejoint": "base_link_freejoint",
|
|
"spawn": {
|
|
"pos": [
|
|
0.0,
|
|
0.0,
|
|
0.78
|
|
],
|
|
"yaw": 0
|
|
},
|
|
"initial": {
|
|
"left_hip_pitch_joint": -0.1,
|
|
"left_hip_roll_joint": 0.0,
|
|
"left_hip_yaw_joint": 0.0,
|
|
"left_knee_joint": -0.3,
|
|
"left_ankle_pitch_joint": -0.2,
|
|
"left_ankle_roll_joint": 0.0,
|
|
"right_hip_pitch_joint": 0.1,
|
|
"right_hip_roll_joint": 0.0,
|
|
"right_hip_yaw_joint": 0.0,
|
|
"right_knee_joint": 0.3,
|
|
"right_ankle_pitch_joint": -0.2,
|
|
"right_ankle_roll_joint": 0.0,
|
|
"waist_roll_joint": 0.0,
|
|
"waist_yaw_joint": 0.0,
|
|
"left_shoulder_pitch_joint": 0.2,
|
|
"left_shoulder_roll_joint": 0.2,
|
|
"left_shoulder_yaw_joint": 0.0,
|
|
"left_elbow_joint": -1.2,
|
|
"left_wrist_joint": 0.0,
|
|
"right_shoulder_pitch_joint": -0.2,
|
|
"right_shoulder_roll_joint": -0.2,
|
|
"right_shoulder_yaw_joint": 0.0,
|
|
"right_elbow_joint": 1.2,
|
|
"right_wrist_joint": 0.0
|
|
}
|
|
},
|
|
"sim": {
|
|
"timestep": 0.005,
|
|
"decimation": 4
|
|
},
|
|
"joints": {
|
|
"groups": {
|
|
"policy": [
|
|
"left_hip_pitch_joint",
|
|
"left_hip_roll_joint",
|
|
"left_hip_yaw_joint",
|
|
"left_knee_joint",
|
|
"left_ankle_pitch_joint",
|
|
"left_ankle_roll_joint",
|
|
"right_hip_pitch_joint",
|
|
"right_hip_roll_joint",
|
|
"right_hip_yaw_joint",
|
|
"right_knee_joint",
|
|
"right_ankle_pitch_joint",
|
|
"right_ankle_roll_joint",
|
|
"waist_roll_joint",
|
|
"waist_yaw_joint",
|
|
"left_shoulder_pitch_joint",
|
|
"left_shoulder_roll_joint",
|
|
"left_shoulder_yaw_joint",
|
|
"left_elbow_joint",
|
|
"left_wrist_joint",
|
|
"right_shoulder_pitch_joint",
|
|
"right_shoulder_roll_joint",
|
|
"right_shoulder_yaw_joint",
|
|
"right_elbow_joint",
|
|
"right_wrist_joint"
|
|
]
|
|
},
|
|
"defaults": {
|
|
"left_hip_pitch_joint": -0.1,
|
|
"left_hip_roll_joint": 0.0,
|
|
"left_hip_yaw_joint": 0.0,
|
|
"left_knee_joint": -0.3,
|
|
"left_ankle_pitch_joint": -0.2,
|
|
"left_ankle_roll_joint": 0.0,
|
|
"right_hip_pitch_joint": 0.1,
|
|
"right_hip_roll_joint": 0.0,
|
|
"right_hip_yaw_joint": 0.0,
|
|
"right_knee_joint": 0.3,
|
|
"right_ankle_pitch_joint": -0.2,
|
|
"right_ankle_roll_joint": 0.0,
|
|
"waist_roll_joint": 0.0,
|
|
"waist_yaw_joint": 0.0,
|
|
"left_shoulder_pitch_joint": 0.2,
|
|
"left_shoulder_roll_joint": 0.2,
|
|
"left_shoulder_yaw_joint": 0.0,
|
|
"left_elbow_joint": -1.2,
|
|
"left_wrist_joint": 0.0,
|
|
"right_shoulder_pitch_joint": -0.2,
|
|
"right_shoulder_roll_joint": -0.2,
|
|
"right_shoulder_yaw_joint": 0.0,
|
|
"right_elbow_joint": 1.2,
|
|
"right_wrist_joint": 0.0
|
|
}
|
|
},
|
|
"observations": {
|
|
"obs": {
|
|
"history": 3,
|
|
"layout": "term_major",
|
|
"terms": [
|
|
{
|
|
"type": "gyro",
|
|
"sensor": "angular-velocity"
|
|
},
|
|
{
|
|
"type": "projected_gravity",
|
|
"body": "base_link"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"size": 3
|
|
},
|
|
{
|
|
"type": "joint_pos_rel",
|
|
"group": "policy"
|
|
},
|
|
{
|
|
"type": "joint_vel",
|
|
"group": "policy"
|
|
},
|
|
{
|
|
"type": "last_action",
|
|
"group": "policy"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"actions": [
|
|
{
|
|
"type": "joint_position",
|
|
"group": "policy",
|
|
"scale": 0.25,
|
|
"offset": "default"
|
|
}
|
|
],
|
|
"actuation": {
|
|
"type": "joint_pd",
|
|
"kp": 120,
|
|
"kd": 7.5,
|
|
"torque_limit": 140,
|
|
"joints": {
|
|
"left_hip_pitch_joint": {
|
|
"kp": 120.0,
|
|
"kd": 7.5,
|
|
"torque_limit": 140.0,
|
|
"velocity_limit": 13.61357,
|
|
"keep_velocity": 8.37758
|
|
},
|
|
"left_hip_roll_joint": {
|
|
"kp": 120.0,
|
|
"kd": 7.5,
|
|
"torque_limit": 140.0,
|
|
"velocity_limit": 13.61357,
|
|
"keep_velocity": 8.37758
|
|
},
|
|
"left_hip_yaw_joint": {
|
|
"kp": 35.0,
|
|
"kd": 2.5,
|
|
"torque_limit": 55.0,
|
|
"velocity_limit": 16.23156,
|
|
"keep_velocity": 6.28319
|
|
},
|
|
"left_knee_joint": {
|
|
"kp": 120.0,
|
|
"kd": 7.5,
|
|
"torque_limit": 140.0,
|
|
"velocity_limit": 13.61357,
|
|
"keep_velocity": 8.37758
|
|
},
|
|
"left_ankle_pitch_joint": {
|
|
"kp": 25.0,
|
|
"kd": 1.5,
|
|
"torque_limit": 64.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"left_ankle_roll_joint": {
|
|
"kp": 25.0,
|
|
"kd": 1.5,
|
|
"torque_limit": 64.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"right_hip_pitch_joint": {
|
|
"kp": 120.0,
|
|
"kd": 7.5,
|
|
"torque_limit": 140.0,
|
|
"velocity_limit": 13.61357,
|
|
"keep_velocity": 8.37758
|
|
},
|
|
"right_hip_roll_joint": {
|
|
"kp": 120.0,
|
|
"kd": 7.5,
|
|
"torque_limit": 140.0,
|
|
"velocity_limit": 13.61357,
|
|
"keep_velocity": 8.37758
|
|
},
|
|
"right_hip_yaw_joint": {
|
|
"kp": 35.0,
|
|
"kd": 2.5,
|
|
"torque_limit": 55.0,
|
|
"velocity_limit": 16.23156,
|
|
"keep_velocity": 6.28319
|
|
},
|
|
"right_knee_joint": {
|
|
"kp": 120.0,
|
|
"kd": 7.5,
|
|
"torque_limit": 140.0,
|
|
"velocity_limit": 13.61357,
|
|
"keep_velocity": 8.37758
|
|
},
|
|
"right_ankle_pitch_joint": {
|
|
"kp": 25.0,
|
|
"kd": 1.5,
|
|
"torque_limit": 64.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"right_ankle_roll_joint": {
|
|
"kp": 25.0,
|
|
"kd": 1.5,
|
|
"torque_limit": 64.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"waist_roll_joint": {
|
|
"kp": 120.0,
|
|
"kd": 7.5,
|
|
"torque_limit": 140.0,
|
|
"velocity_limit": 13.61357,
|
|
"keep_velocity": 8.37758
|
|
},
|
|
"waist_yaw_joint": {
|
|
"kp": 120.0,
|
|
"kd": 7.5,
|
|
"torque_limit": 140.0,
|
|
"velocity_limit": 13.61357,
|
|
"keep_velocity": 8.37758
|
|
},
|
|
"left_shoulder_pitch_joint": {
|
|
"kp": 35.0,
|
|
"kd": 2.5,
|
|
"torque_limit": 55.0,
|
|
"velocity_limit": 16.23156,
|
|
"keep_velocity": 6.28319
|
|
},
|
|
"left_shoulder_roll_joint": {
|
|
"kp": 12.5,
|
|
"kd": 0.75,
|
|
"torque_limit": 32.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"left_shoulder_yaw_joint": {
|
|
"kp": 12.5,
|
|
"kd": 0.75,
|
|
"torque_limit": 32.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"left_elbow_joint": {
|
|
"kp": 12.5,
|
|
"kd": 0.75,
|
|
"torque_limit": 32.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"left_wrist_joint": {
|
|
"kp": 12.5,
|
|
"kd": 0.75,
|
|
"torque_limit": 32.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"right_shoulder_pitch_joint": {
|
|
"kp": 35.0,
|
|
"kd": 2.5,
|
|
"torque_limit": 55.0,
|
|
"velocity_limit": 16.23156,
|
|
"keep_velocity": 6.28319
|
|
},
|
|
"right_shoulder_roll_joint": {
|
|
"kp": 12.5,
|
|
"kd": 0.75,
|
|
"torque_limit": 32.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"right_shoulder_yaw_joint": {
|
|
"kp": 12.5,
|
|
"kd": 0.75,
|
|
"torque_limit": 32.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"right_elbow_joint": {
|
|
"kp": 12.5,
|
|
"kd": 0.75,
|
|
"torque_limit": 32.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
},
|
|
"right_wrist_joint": {
|
|
"kp": 12.5,
|
|
"kd": 0.75,
|
|
"torque_limit": 32.0,
|
|
"velocity_limit": 15.70796,
|
|
"keep_velocity": 14.66077
|
|
}
|
|
}
|
|
},
|
|
"commands": {
|
|
"size": 3,
|
|
"limits": [
|
|
0.4,
|
|
-0.3,
|
|
0.6
|
|
]
|
|
},
|
|
"skills": [
|
|
{
|
|
"id": "walk",
|
|
"kind": "primary",
|
|
"owns": "policy",
|
|
"controller": {
|
|
"type": "onnx",
|
|
"policy": "policies/walk.onnx"
|
|
}
|
|
},
|
|
{
|
|
"id": "dance",
|
|
"kind": "episodic",
|
|
"owns": "policy",
|
|
"available": true,
|
|
"duration": 10.0,
|
|
"blend": 0.5,
|
|
"controller": {
|
|
"type": "onnx",
|
|
"policy": "policies/dance.onnx"
|
|
},
|
|
"defaults": {
|
|
"left_hip_pitch_joint": -0.1,
|
|
"left_hip_roll_joint": 0.0,
|
|
"left_hip_yaw_joint": 0.0,
|
|
"left_knee_joint": -0.3,
|
|
"left_ankle_pitch_joint": -0.2,
|
|
"left_ankle_roll_joint": 0.0,
|
|
"right_hip_pitch_joint": 0.1,
|
|
"right_hip_roll_joint": 0.0,
|
|
"right_hip_yaw_joint": 0.0,
|
|
"right_knee_joint": 0.3,
|
|
"right_ankle_pitch_joint": -0.2,
|
|
"right_ankle_roll_joint": 0.0,
|
|
"waist_roll_joint": 0.0,
|
|
"waist_yaw_joint": 0.0,
|
|
"left_shoulder_pitch_joint": 0.2,
|
|
"left_shoulder_roll_joint": 0.2,
|
|
"left_shoulder_yaw_joint": 0.0,
|
|
"left_elbow_joint": -1.2,
|
|
"left_wrist_joint": 0.0,
|
|
"right_shoulder_pitch_joint": -0.2,
|
|
"right_shoulder_roll_joint": -0.2,
|
|
"right_shoulder_yaw_joint": 0.0,
|
|
"right_elbow_joint": 1.2,
|
|
"right_wrist_joint": 0.0
|
|
},
|
|
"reference": "motions/dance.json",
|
|
"observations": {
|
|
"obs": {
|
|
"terms": [
|
|
{
|
|
"type": "motion_command",
|
|
"group": "policy"
|
|
},
|
|
{
|
|
"type": "gyro",
|
|
"sensor": "angular-velocity"
|
|
},
|
|
{
|
|
"type": "projected_gravity",
|
|
"body": "base_link"
|
|
},
|
|
{
|
|
"type": "joint_pos_rel",
|
|
"group": "policy"
|
|
},
|
|
{
|
|
"type": "joint_vel",
|
|
"group": "policy"
|
|
},
|
|
{
|
|
"type": "last_action",
|
|
"group": "policy"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"actions": [
|
|
{
|
|
"type": "joint_position",
|
|
"group": "policy",
|
|
"scale": 0.25,
|
|
"offset": "default"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "wave",
|
|
"kind": "episodic",
|
|
"owns": "policy",
|
|
"available": true,
|
|
"duration": 4.36,
|
|
"blend": 0.5,
|
|
"controller": {
|
|
"type": "onnx",
|
|
"policy": "policies/wave.onnx"
|
|
},
|
|
"defaults": {
|
|
"left_hip_pitch_joint": -0.1,
|
|
"left_hip_roll_joint": 0.0,
|
|
"left_hip_yaw_joint": 0.0,
|
|
"left_knee_joint": -0.3,
|
|
"left_ankle_pitch_joint": -0.2,
|
|
"left_ankle_roll_joint": 0.0,
|
|
"right_hip_pitch_joint": 0.1,
|
|
"right_hip_roll_joint": 0.0,
|
|
"right_hip_yaw_joint": 0.0,
|
|
"right_knee_joint": 0.3,
|
|
"right_ankle_pitch_joint": -0.2,
|
|
"right_ankle_roll_joint": 0.0,
|
|
"waist_roll_joint": 0.0,
|
|
"waist_yaw_joint": 0.0,
|
|
"left_shoulder_pitch_joint": 0.2,
|
|
"left_shoulder_roll_joint": 0.2,
|
|
"left_shoulder_yaw_joint": 0.0,
|
|
"left_elbow_joint": -1.2,
|
|
"left_wrist_joint": 0.0,
|
|
"right_shoulder_pitch_joint": -0.2,
|
|
"right_shoulder_roll_joint": -0.2,
|
|
"right_shoulder_yaw_joint": 0.0,
|
|
"right_elbow_joint": 1.2,
|
|
"right_wrist_joint": 0.0
|
|
},
|
|
"reference": "motions/wave.json",
|
|
"observations": {
|
|
"obs": {
|
|
"terms": [
|
|
{
|
|
"type": "motion_command",
|
|
"group": "policy"
|
|
},
|
|
{
|
|
"type": "gyro",
|
|
"sensor": "angular-velocity"
|
|
},
|
|
{
|
|
"type": "projected_gravity",
|
|
"body": "base_link"
|
|
},
|
|
{
|
|
"type": "joint_pos_rel",
|
|
"group": "policy"
|
|
},
|
|
{
|
|
"type": "joint_vel",
|
|
"group": "policy"
|
|
},
|
|
{
|
|
"type": "last_action",
|
|
"group": "policy"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"actions": [
|
|
{
|
|
"type": "joint_position",
|
|
"group": "policy",
|
|
"scale": 0.25,
|
|
"offset": "default"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"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": "reset",
|
|
"codes": [
|
|
"Space"
|
|
],
|
|
"label": "Reset"
|
|
},
|
|
{
|
|
"action": "pause",
|
|
"codes": [
|
|
"Escape"
|
|
],
|
|
"label": "Pause / continue"
|
|
},
|
|
{
|
|
"action": "chaseToggle",
|
|
"codes": [
|
|
"KeyC"
|
|
],
|
|
"label": "Restore chase camera"
|
|
},
|
|
{
|
|
"action": "skill:dance",
|
|
"codes": [
|
|
"KeyJ"
|
|
],
|
|
"label": "Dance",
|
|
"disabled": false
|
|
},
|
|
{
|
|
"action": "skill:wave",
|
|
"codes": [
|
|
"KeyH"
|
|
],
|
|
"label": "Wave",
|
|
"disabled": false
|
|
}
|
|
]
|
|
},
|
|
"render": {
|
|
"source": "mjcf_visual",
|
|
"groups": [
|
|
2
|
|
],
|
|
"camera": {
|
|
"distance": 2.4
|
|
}
|
|
},
|
|
"presentation": {
|
|
"theme": "comic"
|
|
},
|
|
"termination": {
|
|
"tilt_z": -0.5,
|
|
"min_height": 0.4,
|
|
"on_fall": "hold"
|
|
},
|
|
"license": "Local evaluation; RP1 mesh license not supplied upstream. Local evaluation only; see SOURCE.md. Actuation omits randomized delay/domain randomization."
|
|
}
|