285 lines
7.1 KiB
TOML
285 lines
7.1 KiB
TOML
# Collision primitives from the current xiaozhao meshes.
|
|
# Generate with generate_collision.py in this directory: the source URDF's
|
|
# legacy package name must not select meshes from an older model directory.
|
|
# The link2 and link4 cylinders use measured rim dimensions. Other pieces use
|
|
# padded envelopes of their assigned triangles.
|
|
[defaults]
|
|
primitive = "box"
|
|
alignment = "link"
|
|
padding = 0.001
|
|
scale = 1.0
|
|
|
|
# The chest and bent motor housings retain link-aligned boxes. Rotational
|
|
# housings below use cylinders along their actual link-local Z axes.
|
|
[links.base_link]
|
|
primitive = "box"
|
|
|
|
[links."link1-left"]
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
|
|
[links."link1-right"]
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
|
|
[links."link3-left"]
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
|
|
[links."link3-right"]
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
|
|
[links."link5-left"]
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
|
|
[links."link5-right"]
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
|
|
[links.neck_Link1]
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
|
|
# TCP spheres are display markers, not solid robot parts. The original source
|
|
# has no collision on these links; enabled=false preserves that fact.
|
|
[links."tcp-left"]
|
|
enabled = false
|
|
|
|
[links."tcp-right"]
|
|
enabled = false
|
|
|
|
# Partition in link-local coordinates by each complete triangle's centroid.
|
|
# The fitter still encloses all three vertices, including faces crossing a cut.
|
|
# The wide lower base must not determine the width of the shoulder envelope.
|
|
[[links.base_link.pieces]]
|
|
name = "foot"
|
|
bounds_max = [inf, inf, 0.0]
|
|
|
|
[[links.base_link.pieces]]
|
|
name = "lower_torso"
|
|
bounds_min = [-inf, -inf, 0.0]
|
|
bounds_max = [inf, inf, 0.30]
|
|
|
|
[[links.base_link.pieces]]
|
|
name = "upper_torso"
|
|
bounds_min = [-inf, -inf, 0.30]
|
|
bounds_max = [inf, inf, 0.38]
|
|
|
|
[[links.base_link.pieces]]
|
|
name = "negative_shoulder_ring"
|
|
enabled = false
|
|
primitive = "cylinder"
|
|
axis = "y"
|
|
axial_layers = 3
|
|
bounds_min = [-inf, -inf, 0.38]
|
|
bounds_max = [inf, -0.1471, 0.50]
|
|
|
|
[[links.base_link.pieces]]
|
|
name = "shoulder_middle"
|
|
bounds_min = [-inf, -0.1471, 0.38]
|
|
bounds_max = [inf, 0.1471, 0.50]
|
|
|
|
[[links.base_link.pieces]]
|
|
name = "positive_shoulder_ring"
|
|
enabled = false
|
|
primitive = "cylinder"
|
|
axis = "y"
|
|
axial_layers = 3
|
|
bounds_min = [-inf, 0.1471, 0.38]
|
|
bounds_max = [inf, inf, 0.50]
|
|
|
|
[[links.base_link.pieces]]
|
|
name = "neck_mount"
|
|
bounds_min = [-inf, -inf, 0.50]
|
|
|
|
# The second links bend away from their proximal motors in opposite Y directions.
|
|
# The side facing the shoulder ring has two end caps with an actual axial gap
|
|
# around local Z=-49.75 mm. A single full-length motor envelope fills this gap.
|
|
[[links."link2-left".pieces]]
|
|
name = "proximal_back"
|
|
enabled = false
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
bounds_min = [-inf, 0.0, -inf]
|
|
bounds_max = [inf, 0.04, inf]
|
|
|
|
[[links."link2-left".pieces]]
|
|
name = "proximal_lower_cap"
|
|
enabled = false
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
bounds_max = [inf, 0.0, -0.05]
|
|
|
|
[[links."link2-left".pieces]]
|
|
name = "proximal_upper_cap"
|
|
enabled = false
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
bounds_min = [-inf, -inf, -0.05]
|
|
bounds_max = [inf, 0.0, inf]
|
|
|
|
[[links."link2-left".pieces]]
|
|
name = "elbow_transition"
|
|
primitive = "cylinder"
|
|
# Mirror of the right arm: the outer housing rim toward link3 is at +155 mm.
|
|
rim_cylinder = { start_y = 0.0, end_y = 0.155, center_xz = [0.0, -0.04975] }
|
|
bounds_min = [-inf, 0.04, -inf]
|
|
bounds_max = [inf, 0.09, inf]
|
|
|
|
[[links."link2-left".pieces]]
|
|
name = "distal_housing"
|
|
enabled = false
|
|
bounds_min = [-inf, 0.09, -inf]
|
|
|
|
[[links."link2-right".pieces]]
|
|
name = "distal_housing"
|
|
enabled = false
|
|
bounds_max = [inf, -0.09, inf]
|
|
|
|
[[links."link2-right".pieces]]
|
|
name = "elbow_transition"
|
|
primitive = "cylinder"
|
|
# Height runs from joint2's Y=0 section to the outer housing rim along -Y.
|
|
rim_cylinder = { start_y = 0.0, end_y = -0.155, center_xz = [0.0, -0.04975] }
|
|
bounds_min = [-inf, -0.09, -inf]
|
|
bounds_max = [inf, -0.04, inf]
|
|
|
|
[[links."link2-right".pieces]]
|
|
name = "proximal_back"
|
|
enabled = false
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
bounds_min = [-inf, -0.04, -inf]
|
|
bounds_max = [inf, 0.0, inf]
|
|
|
|
[[links."link2-right".pieces]]
|
|
name = "proximal_lower_cap"
|
|
enabled = false
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
bounds_min = [-inf, 0.0, -inf]
|
|
bounds_max = [inf, inf, -0.05]
|
|
|
|
[[links."link2-right".pieces]]
|
|
name = "proximal_upper_cap"
|
|
enabled = false
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
bounds_min = [-inf, 0.0, -0.05]
|
|
|
|
# Whole-link proxies run from joint4's Y=0 section to the housing lip at link5.
|
|
[[links."link4-left".pieces]]
|
|
name = "envelope"
|
|
primitive = "cylinder"
|
|
rim_cylinder = { start_y = 0.0, end_y = 0.12400011, center_xz = [0.0, -0.04125] }
|
|
|
|
[[links."link4-right".pieces]]
|
|
name = "envelope"
|
|
primitive = "cylinder"
|
|
rim_cylinder = { start_y = 0.0, end_y = -0.12400011, center_xz = [0.0, -0.04125] }
|
|
|
|
# Each side of the right fork includes its outer cheek and inner brace.
|
|
[[links."link5-right".pieces]]
|
|
name = "negative_cheek"
|
|
primitive = "box"
|
|
bounds_max = [-0.03, inf, inf]
|
|
|
|
[[links."link5-right".pieces]]
|
|
name = "core"
|
|
primitive = "box"
|
|
bounds_min = [-0.03, -inf, -inf]
|
|
bounds_max = [0.03, inf, inf]
|
|
|
|
[[links."link5-right".pieces]]
|
|
name = "positive_cheek"
|
|
primitive = "box"
|
|
bounds_min = [0.03, -inf, -inf]
|
|
|
|
# Represent the left wrist with the two outer fork cheeks and the body between them.
|
|
[[links."link5-left".pieces]]
|
|
name = "negative_cheek"
|
|
primitive = "box"
|
|
bounds_max = [inf, -0.035, inf]
|
|
|
|
[[links."link5-left".pieces]]
|
|
name = "core"
|
|
primitive = "box"
|
|
bounds_min = [-inf, -0.035, -inf]
|
|
bounds_max = [inf, 0.035, inf]
|
|
|
|
[[links."link5-left".pieces]]
|
|
name = "positive_cheek"
|
|
primitive = "box"
|
|
bounds_min = [-inf, 0.035, -inf]
|
|
|
|
# Separate the round wrist plate, adapter, palm and fingers. The two hands are
|
|
# mirrored along Y in their current link frames. A distal thumb must not widen
|
|
# the proximal wrist envelope. The plate's circular part includes its diameter
|
|
# near Y=0; the rectangular tongue and adapter are excluded on both sides.
|
|
[[links."link7-left".pieces]]
|
|
name = "plate_round_end"
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
bounds_max = [inf, 0.005, inf]
|
|
|
|
[[links."link7-left".pieces]]
|
|
name = "plate_body"
|
|
enabled = false
|
|
bounds_min = [-inf, 0.005, -inf]
|
|
bounds_max = [inf, 0.025, inf]
|
|
|
|
[[links."link7-left".pieces]]
|
|
name = "adapter"
|
|
enabled = false
|
|
bounds_min = [-inf, 0.025, -inf]
|
|
bounds_max = [inf, 0.05, inf]
|
|
|
|
[[links."link7-left".pieces]]
|
|
name = "palm_root"
|
|
bounds_min = [-inf, 0.05, -inf]
|
|
bounds_max = [inf, 0.10, inf]
|
|
|
|
[[links."link7-left".pieces]]
|
|
name = "palm"
|
|
bounds_min = [-inf, 0.10, -inf]
|
|
bounds_max = [inf, 0.15, inf]
|
|
|
|
[[links."link7-left".pieces]]
|
|
name = "fingers"
|
|
bounds_min = [-inf, 0.15, -inf]
|
|
|
|
[[links."link7-right".pieces]]
|
|
name = "fingers"
|
|
bounds_max = [inf, -0.15, inf]
|
|
|
|
[[links."link7-right".pieces]]
|
|
name = "palm"
|
|
bounds_min = [-inf, -0.15, -inf]
|
|
bounds_max = [inf, -0.10, inf]
|
|
|
|
[[links."link7-right".pieces]]
|
|
name = "palm_root"
|
|
bounds_min = [-inf, -0.10, -inf]
|
|
bounds_max = [inf, -0.05, inf]
|
|
|
|
[[links."link7-right".pieces]]
|
|
name = "adapter"
|
|
enabled = false
|
|
bounds_min = [-inf, -0.05, -inf]
|
|
bounds_max = [inf, -0.025, inf]
|
|
|
|
[[links."link7-right".pieces]]
|
|
name = "plate_body"
|
|
enabled = false
|
|
primitive = "box"
|
|
bounds_min = [-inf, -0.025, -inf]
|
|
bounds_max = [inf, -0.005, inf]
|
|
|
|
[[links."link7-right".pieces]]
|
|
name = "plate_round_end"
|
|
primitive = "cylinder"
|
|
axis = "z"
|
|
bounds_min = [-inf, -0.005, -inf]
|