323 lines
8.3 KiB
JSON
323 lines
8.3 KiB
JSON
{
|
|
"part": {
|
|
"schema": "rf.part.v1",
|
|
"projectId": "humanoid-demo",
|
|
"projectName": "Humanoid Demo",
|
|
"units": {
|
|
"length": "m",
|
|
"angle": "rad",
|
|
"mass": "kg"
|
|
},
|
|
"materials": [
|
|
{
|
|
"id": "mat_anodized_black",
|
|
"name": "Anodized Black Aluminum",
|
|
"density": 2700,
|
|
"friction": [0.8, 0.02, 0.01],
|
|
"rgba": [0.12, 0.12, 0.14, 1.0]
|
|
},
|
|
{
|
|
"id": "mat_aluminum_6061",
|
|
"name": "Aluminum 6061",
|
|
"density": 2700,
|
|
"friction": [0.7, 0.02, 0.01],
|
|
"rgba": [0.78, 0.78, 0.8, 1.0]
|
|
}
|
|
],
|
|
"parts": [
|
|
{
|
|
"id": "part_base_plate",
|
|
"name": "Base Plate",
|
|
"source": {
|
|
"type": "mesh",
|
|
"uri": "assets/parts/base_plate.stl",
|
|
"meshFormat": "stl"
|
|
},
|
|
"materialId": "mat_anodized_black",
|
|
"geometries": [
|
|
{
|
|
"id": "geom_base_plate",
|
|
"purpose": "both",
|
|
"kind": "mesh",
|
|
"origin": {
|
|
"pos": [0.0, 0.0, 0.0],
|
|
"quat": [1.0, 0.0, 0.0, 0.0]
|
|
},
|
|
"uri": "assets/parts/base_plate.stl",
|
|
"scale": [1.0, 1.0, 1.0]
|
|
}
|
|
],
|
|
"ports": [
|
|
{
|
|
"id": "port_base_top",
|
|
"name": "Base Top Port",
|
|
"interfaceType": "revolute_mount",
|
|
"gender": "neutral",
|
|
"localFrame": {
|
|
"pos": [0.0, 0.0, 0.025],
|
|
"quat": [1.0, 0.0, 0.0, 0.0]
|
|
},
|
|
"normal": [0.0, 0.0, 1.0],
|
|
"tangent": [0.0, 1.0, 0.0],
|
|
"size": {
|
|
"radius": 0.022
|
|
},
|
|
"tolerance": {
|
|
"linear": 0.0005,
|
|
"angularDeg": 0.5
|
|
},
|
|
"policy": {
|
|
"maxConnections": 1,
|
|
"allowSelfConnection": false
|
|
}
|
|
}
|
|
],
|
|
"inertial": {
|
|
"mass": 0.65,
|
|
"centerOfMass": [0.0, 0.0, 0.012],
|
|
"inertia": {
|
|
"ixx": 0.0028,
|
|
"ixy": 0.0,
|
|
"ixz": 0.0,
|
|
"iyy": 0.0028,
|
|
"iyz": 0.0,
|
|
"izz": 0.0011
|
|
}
|
|
},
|
|
"metadata": {
|
|
"tags": ["base", "structural"]
|
|
}
|
|
},
|
|
{
|
|
"id": "part_upper_arm",
|
|
"name": "Upper Arm",
|
|
"source": {
|
|
"type": "mesh",
|
|
"uri": "assets/parts/upper_arm.stl",
|
|
"meshFormat": "stl"
|
|
},
|
|
"materialId": "mat_aluminum_6061",
|
|
"geometries": [
|
|
{
|
|
"id": "geom_upper_arm",
|
|
"purpose": "both",
|
|
"kind": "mesh",
|
|
"origin": {
|
|
"pos": [0.0, 0.0, 0.0],
|
|
"quat": [1.0, 0.0, 0.0, 0.0]
|
|
},
|
|
"uri": "assets/parts/upper_arm.stl",
|
|
"scale": [1.0, 1.0, 1.0]
|
|
}
|
|
],
|
|
"ports": [
|
|
{
|
|
"id": "port_arm_root",
|
|
"name": "Arm Root Port",
|
|
"interfaceType": "revolute_mount",
|
|
"gender": "neutral",
|
|
"localFrame": {
|
|
"pos": [0.0, 0.0, 0.0],
|
|
"quat": [1.0, 0.0, 0.0, 0.0]
|
|
},
|
|
"normal": [0.0, 0.0, -1.0],
|
|
"tangent": [0.0, 1.0, 0.0],
|
|
"size": {
|
|
"radius": 0.022
|
|
},
|
|
"tolerance": {
|
|
"linear": 0.0005,
|
|
"angularDeg": 0.5
|
|
},
|
|
"policy": {
|
|
"maxConnections": 1,
|
|
"allowSelfConnection": false
|
|
}
|
|
},
|
|
{
|
|
"id": "port_arm_end",
|
|
"name": "Arm End Port",
|
|
"interfaceType": "tool_mount",
|
|
"gender": "neutral",
|
|
"localFrame": {
|
|
"pos": [0.0, 0.0, 0.24],
|
|
"quat": [1.0, 0.0, 0.0, 0.0]
|
|
},
|
|
"normal": [0.0, 0.0, 1.0],
|
|
"tangent": [0.0, 1.0, 0.0],
|
|
"size": {
|
|
"radius": 0.016
|
|
},
|
|
"tolerance": {
|
|
"linear": 0.0005,
|
|
"angularDeg": 0.5
|
|
},
|
|
"policy": {
|
|
"maxConnections": 1,
|
|
"allowSelfConnection": false
|
|
}
|
|
}
|
|
],
|
|
"inertial": {
|
|
"mass": 0.45,
|
|
"centerOfMass": [0.0, 0.0, 0.12],
|
|
"inertia": {
|
|
"ixx": 0.0021,
|
|
"ixy": 0.0,
|
|
"ixz": 0.0,
|
|
"iyy": 0.002,
|
|
"iyz": 0.0,
|
|
"izz": 0.0004
|
|
}
|
|
},
|
|
"metadata": {
|
|
"tags": ["arm", "link"]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"rfspec": {
|
|
"mujoco": {
|
|
"model": "humanoid_demo",
|
|
"compiler": {
|
|
"angle": "radian",
|
|
"meshdir": "assets/parts"
|
|
},
|
|
"option": {
|
|
"timestep": 0.002,
|
|
"gravity": [0.0, 0.0, -9.81],
|
|
"integrator": "RK4"
|
|
},
|
|
"asset": {
|
|
"mesh": [
|
|
{
|
|
"name": "part_base_plate",
|
|
"file": "base_plate.stl",
|
|
"scale": [1.0, 1.0, 1.0]
|
|
},
|
|
{
|
|
"name": "part_upper_arm",
|
|
"file": "upper_arm.stl",
|
|
"scale": [1.0, 1.0, 1.0]
|
|
}
|
|
],
|
|
"material": [
|
|
{
|
|
"name": "mat_anodized_black",
|
|
"rgba": [0.12, 0.12, 0.14, 1.0]
|
|
},
|
|
{
|
|
"name": "mat_aluminum_6061",
|
|
"rgba": [0.78, 0.78, 0.8, 1.0]
|
|
}
|
|
]
|
|
},
|
|
"worldbody": {
|
|
"body": [
|
|
{
|
|
"name": "inst_base_001",
|
|
"pos": [0.0, 0.0, 0.0],
|
|
"quat": [1.0, 0.0, 0.0, 0.0],
|
|
"geom": [
|
|
{
|
|
"name": "geom_base_plate",
|
|
"type": "mesh",
|
|
"mesh": "part_base_plate",
|
|
"material": "mat_anodized_black",
|
|
"contype": 1,
|
|
"conaffinity": 1
|
|
}
|
|
],
|
|
"site": [
|
|
{
|
|
"name": "inst_base_001_port_base_top",
|
|
"type": "sphere",
|
|
"pos": [0.0, 0.0, 0.025],
|
|
"quat": [1.0, 0.0, 0.0, 0.0],
|
|
"size": [0.005],
|
|
"rgba": [0.1, 0.7, 1.0, 0.4]
|
|
}
|
|
],
|
|
"body": [
|
|
{
|
|
"name": "inst_upper_arm_001",
|
|
"pos": [0.0, 0.0, 0.025],
|
|
"quat": [1.0, 0.0, 0.0, 0.0],
|
|
"inertial": {
|
|
"pos": [0.0, 0.0, 0.12],
|
|
"mass": 0.45,
|
|
"fullinertia": [0.0021, 0.002, 0.0004, 0.0, 0.0, 0.0]
|
|
},
|
|
"joint": [
|
|
{
|
|
"name": "joint_shoulder_001",
|
|
"type": "hinge",
|
|
"axis": [0.0, 0.0, 1.0],
|
|
"limited": true,
|
|
"range": [-1.5707963, 1.5707963],
|
|
"damping": 0.05
|
|
}
|
|
],
|
|
"geom": [
|
|
{
|
|
"name": "geom_upper_arm",
|
|
"type": "mesh",
|
|
"mesh": "part_upper_arm",
|
|
"material": "mat_aluminum_6061",
|
|
"contype": 1,
|
|
"conaffinity": 1
|
|
}
|
|
],
|
|
"site": [
|
|
{
|
|
"name": "inst_upper_arm_001_port_arm_end",
|
|
"type": "sphere",
|
|
"pos": [0.0, 0.0, 0.24],
|
|
"quat": [1.0, 0.0, 0.0, 0.0],
|
|
"size": [0.005],
|
|
"rgba": [1.0, 0.5, 0.2, 0.4]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"actuator": {
|
|
"motor": [
|
|
{
|
|
"name": "motor_shoulder_001",
|
|
"joint": "joint_shoulder_001",
|
|
"gear": [1.0],
|
|
"ctrllimited": true,
|
|
"ctrlrange": [-1.0, 1.0]
|
|
}
|
|
]
|
|
},
|
|
"sensor": {
|
|
"jointpos": [
|
|
{
|
|
"name": "sensor_shoulder_pos",
|
|
"joint": "joint_shoulder_001"
|
|
}
|
|
],
|
|
"jointvel": [
|
|
{
|
|
"name": "sensor_shoulder_vel",
|
|
"joint": "joint_shoulder_001"
|
|
}
|
|
]
|
|
},
|
|
"keyframe": {
|
|
"key": [
|
|
{
|
|
"name": "home",
|
|
"qpos": [0.0],
|
|
"ctrl": [0.0]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|