278 lines
5.9 KiB
JSON
278 lines
5.9 KiB
JSON
{
|
|
"schema_version": 2,
|
|
"kind": "part_software",
|
|
"software_id": "part_position_control",
|
|
"software_version": "0.0.2",
|
|
"status": "design",
|
|
"binding_mode": "alternatives",
|
|
"hardware_bindings": [
|
|
{
|
|
"part_id": "go2_fl",
|
|
"spec_path": "configs/parts/go2_fl.json"
|
|
},
|
|
{
|
|
"part_id": "example_arm",
|
|
"spec_path": "configs/parts/example_arm.json"
|
|
},
|
|
{
|
|
"part_id": "example_hand",
|
|
"spec_path": "configs/parts/example_hand.json"
|
|
},
|
|
{
|
|
"part_id": "example_gripper",
|
|
"spec_path": "configs/parts/example_gripper.json"
|
|
},
|
|
{
|
|
"part_id": "example_torso",
|
|
"spec_path": "configs/parts/example_torso.json"
|
|
},
|
|
{
|
|
"part_id": "example_head",
|
|
"spec_path": "configs/parts/example_head.json"
|
|
}
|
|
],
|
|
"requirements": {
|
|
"part_types": [
|
|
"leg",
|
|
"arm",
|
|
"hand",
|
|
"gripper",
|
|
"torso",
|
|
"head"
|
|
],
|
|
"joint_types": [
|
|
"revolute",
|
|
"prismatic"
|
|
],
|
|
"topologies": [
|
|
"tree"
|
|
],
|
|
"attachment_modes": [
|
|
"fixed",
|
|
"external",
|
|
"floating"
|
|
],
|
|
"supports_coupling": true,
|
|
"required_control_modes": [
|
|
"position_pd"
|
|
],
|
|
"required_sensor_kinds": [
|
|
"joint_state"
|
|
],
|
|
"required_sensor_outputs": [
|
|
"joint.position",
|
|
"joint.velocity"
|
|
],
|
|
"required_effector_roles": [],
|
|
"capacities": {
|
|
"Jmax": 32,
|
|
"Amax": 32,
|
|
"Emax": 8,
|
|
"Smax": 8
|
|
}
|
|
},
|
|
"interface": {
|
|
"contract_id": "part_position_control",
|
|
"contract_version": 1,
|
|
"quaternion_order": "xyzw",
|
|
"ports": [
|
|
{
|
|
"name": "joint_mask",
|
|
"direction": "input",
|
|
"kind": "mask",
|
|
"entity": "joint",
|
|
"selector": {
|
|
"type": "all",
|
|
"values": []
|
|
},
|
|
"required": true,
|
|
"dtype": "bool",
|
|
"shape": [
|
|
"B",
|
|
"Jmax"
|
|
],
|
|
"frame": "none",
|
|
"representation": "tensor",
|
|
"features": [],
|
|
"mask": null,
|
|
"command": null
|
|
},
|
|
{
|
|
"name": "joint_state",
|
|
"direction": "input",
|
|
"kind": "state",
|
|
"entity": "joint",
|
|
"selector": {
|
|
"type": "all",
|
|
"values": []
|
|
},
|
|
"required": true,
|
|
"dtype": "float32",
|
|
"shape": [
|
|
"B",
|
|
"Jmax",
|
|
2
|
|
],
|
|
"frame": "none",
|
|
"representation": "features",
|
|
"features": [
|
|
{
|
|
"name": "position",
|
|
"quantity": "joint.position",
|
|
"unit": "joint_position",
|
|
"normalization": "identity"
|
|
},
|
|
{
|
|
"name": "velocity",
|
|
"quantity": "joint.velocity",
|
|
"unit": "joint_velocity",
|
|
"normalization": "identity"
|
|
}
|
|
],
|
|
"mask": "joint_mask",
|
|
"command": null
|
|
},
|
|
{
|
|
"name": "actuator_mask",
|
|
"direction": "input",
|
|
"kind": "mask",
|
|
"entity": "actuator",
|
|
"selector": {
|
|
"type": "all",
|
|
"values": []
|
|
},
|
|
"required": true,
|
|
"dtype": "bool",
|
|
"shape": [
|
|
"B",
|
|
"Amax"
|
|
],
|
|
"frame": "none",
|
|
"representation": "tensor",
|
|
"features": [],
|
|
"mask": null,
|
|
"command": null
|
|
},
|
|
{
|
|
"name": "command",
|
|
"direction": "output",
|
|
"kind": "command",
|
|
"entity": "actuator",
|
|
"selector": {
|
|
"type": "all",
|
|
"values": []
|
|
},
|
|
"required": true,
|
|
"dtype": "float32",
|
|
"shape": [
|
|
"B",
|
|
"Amax",
|
|
1
|
|
],
|
|
"frame": "none",
|
|
"representation": "features",
|
|
"features": [
|
|
{
|
|
"name": "command",
|
|
"quantity": "actuator.command",
|
|
"unit": "1",
|
|
"normalization": "command_scale_offset"
|
|
}
|
|
],
|
|
"mask": "actuator_mask",
|
|
"command": {
|
|
"mode": "position_pd",
|
|
"encoding": "normalized",
|
|
"clip": [
|
|
-1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "effector_mask",
|
|
"direction": "input",
|
|
"kind": "mask",
|
|
"entity": "end_effector",
|
|
"selector": {
|
|
"type": "all",
|
|
"values": []
|
|
},
|
|
"required": false,
|
|
"dtype": "bool",
|
|
"shape": [
|
|
"B",
|
|
"Emax"
|
|
],
|
|
"frame": "none",
|
|
"representation": "tensor",
|
|
"features": [],
|
|
"mask": null,
|
|
"command": null
|
|
},
|
|
{
|
|
"name": "target_position",
|
|
"direction": "input",
|
|
"kind": "goal",
|
|
"entity": "end_effector",
|
|
"selector": {
|
|
"type": "all",
|
|
"values": []
|
|
},
|
|
"required": false,
|
|
"dtype": "float32",
|
|
"shape": [
|
|
"B",
|
|
"Emax",
|
|
3
|
|
],
|
|
"frame": "part_root",
|
|
"representation": "features",
|
|
"features": [
|
|
{
|
|
"name": "x",
|
|
"quantity": "goal.position.x",
|
|
"unit": "m",
|
|
"normalization": "identity"
|
|
},
|
|
{
|
|
"name": "y",
|
|
"quantity": "goal.position.y",
|
|
"unit": "m",
|
|
"normalization": "identity"
|
|
},
|
|
{
|
|
"name": "z",
|
|
"quantity": "goal.position.z",
|
|
"unit": "m",
|
|
"normalization": "identity"
|
|
}
|
|
],
|
|
"mask": "effector_mask",
|
|
"command": null
|
|
}
|
|
],
|
|
"reset": "indexed_isolated",
|
|
"action_history": "last_applied"
|
|
},
|
|
"runtime": {
|
|
"adapter_id": null,
|
|
"implementation": "unimplemented",
|
|
"dependencies": {},
|
|
"devices": [
|
|
"cpu",
|
|
"cuda"
|
|
],
|
|
"timing": {
|
|
"policy": "per_part",
|
|
"control_dt_s": null
|
|
}
|
|
},
|
|
"artifact": {
|
|
"format": "none",
|
|
"checkpoint": null,
|
|
"trained_skill": false,
|
|
"frozen": false
|
|
}
|
|
}
|