peghole: add 4 flipped offsets (8 total) for end-to-end peg symmetry
Browse files
Props/Custom/PegHole/metadata.yaml
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
-
# Cylindrical peg:
|
| 2 |
-
# (
|
| 3 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
assembled_offsets:
|
| 5 |
- pos: [0.0, 0.0, 0.014837]
|
| 6 |
quat: [1.0, 0.0, 0.0, 0.0] # yaw = 0 deg (canonical)
|
|
@@ -10,6 +15,14 @@ assembled_offsets:
|
|
| 10 |
quat: [6.123233995736766e-17, 0.0, 0.0, 1.0] # yaw = 180 deg
|
| 11 |
- pos: [0.0, 0.0, 0.014837]
|
| 12 |
quat: [-0.7071067811865475, 0.0, 0.0, 0.7071067811865476] # yaw = -90 deg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
bottom_offset:
|
| 14 |
pos: [0.0, 0.0, -0.015163]
|
| 15 |
quat: [1.0, 0.0, 0.0, 0.0]
|
|
|
|
| 1 |
+
# Cylindrical peg: 8 valid orientations approximate full O(2) symmetry
|
| 2 |
+
# (continuous yaw around the long axis × 180-deg flip around perpendicular).
|
| 3 |
+
# - Entries 0-3: 4 yaw rotations (worst yaw error before failure is +/-45 deg).
|
| 4 |
+
# - Entries 4-7: same 4 yaws composed with a 180-deg flip around x — i.e.,
|
| 5 |
+
# peg upside-down (gripper holds the other end). Valid because peg is
|
| 6 |
+
# geometrically symmetric end-to-end.
|
| 7 |
+
# First entry is canonical and is used wherever a single canonical pose is
|
| 8 |
+
# required (spawning, distance metrics).
|
| 9 |
assembled_offsets:
|
| 10 |
- pos: [0.0, 0.0, 0.014837]
|
| 11 |
quat: [1.0, 0.0, 0.0, 0.0] # yaw = 0 deg (canonical)
|
|
|
|
| 15 |
quat: [6.123233995736766e-17, 0.0, 0.0, 1.0] # yaw = 180 deg
|
| 16 |
- pos: [0.0, 0.0, 0.014837]
|
| 17 |
quat: [-0.7071067811865475, 0.0, 0.0, 0.7071067811865476] # yaw = -90 deg
|
| 18 |
+
- pos: [0.0, 0.0, 0.014837]
|
| 19 |
+
quat: [0.0, 1.0, 0.0, 0.0] # yaw = 0 deg + flip-x
|
| 20 |
+
- pos: [0.0, 0.0, 0.014837]
|
| 21 |
+
quat: [0.0, 0.7071067811865476, 0.7071067811865475, 0.0] # yaw = +90 deg + flip-x
|
| 22 |
+
- pos: [0.0, 0.0, 0.014837]
|
| 23 |
+
quat: [0.0, 6.123233995736766e-17, 1.0, 0.0] # yaw = 180 deg + flip-x
|
| 24 |
+
- pos: [0.0, 0.0, 0.014837]
|
| 25 |
+
quat: [0.0, 0.7071067811865476, -0.7071067811865475, 0.0] # yaw = -90 deg + flip-x
|
| 26 |
bottom_offset:
|
| 27 |
pos: [0.0, 0.0, -0.015163]
|
| 28 |
quat: [1.0, 0.0, 0.0, 0.0]
|