|
5 | 5 | mech = Dojo.get_mechanism(:pendulum) |
6 | 6 | joint0 = mech.joints[1] |
7 | 7 | rot0 = joint0.rotational |
8 | | - rot0.axis_offset = rand(Quaternion) |
| 8 | + rot0.axis_offset = rand(QuatRotation).q |
9 | 9 |
|
10 | 10 |
|
11 | 11 | xa = rand(3) |
12 | | - qa = rand(Quaternion) |
| 12 | + qa = rand(QuatRotation).q |
13 | 13 | xb = rand(3) |
14 | | - qb = rand(Quaternion) |
| 14 | + qb = rand(QuatRotation).q |
15 | 15 |
|
16 | 16 | # displacement_jacobian_configuration |
17 | 17 | X0, Q0 = Dojo.displacement_jacobian_configuration(:parent, rot0, xa, qa, xb, qb, |
|
42 | 42 | tra0 = joint0.translational |
43 | 43 |
|
44 | 44 | xa = rand(3) |
45 | | - qa = rand(Quaternion) |
| 45 | + qa = rand(QuatRotation).q |
46 | 46 | xb = rand(3) |
47 | | - qb = rand(Quaternion) |
| 47 | + qb = rand(QuatRotation).q |
48 | 48 |
|
49 | 49 | # displacement_jacobian_configuration |
50 | 50 | X0, Q0 = Dojo.displacement_jacobian_configuration(:parent, tra0, xa, qa, xb, qb, |
|
77 | 77 | mech = Dojo.get_mechanism(:pendulum) |
78 | 78 | joint0 = mech.joints[1] |
79 | 79 | rot0 = joint0.rotational |
80 | | - rot0.axis_offset = rand(Quaternion) |
| 80 | + rot0.axis_offset = rand(QuatRotation).q |
81 | 81 |
|
82 | 82 | xa = rand(3) |
83 | | - qa = rand(Quaternion) |
| 83 | + qa = rand(QuatRotation).q |
84 | 84 | xb = rand(3) |
85 | | - qb = rand(Quaternion) |
| 85 | + qb = rand(QuatRotation).q |
86 | 86 |
|
87 | 87 | p0 = rand(3) |
88 | 88 | J0 = Dojo.impulse_transform_jacobian(:parent, :parent, rot0, xa, qa, xb, qb, p0) |
|
124 | 124 | tra0 = joint0.translational |
125 | 125 |
|
126 | 126 | xa = rand(3) |
127 | | - qa = rand(Quaternion) |
| 127 | + qa = rand(QuatRotation).q |
128 | 128 | xb = rand(3) |
129 | | - qb = rand(Quaternion) |
| 129 | + qb = rand(QuatRotation).q |
130 | 130 |
|
131 | 131 | p0 = rand(3) |
132 | 132 | J0 = Dojo.impulse_transform_jacobian(:parent, :parent, tra0, xa, qa, xb, qb, p0) |
|
172 | 172 | tra0 = joint0.translational |
173 | 173 |
|
174 | 174 | xa = rand(3) |
175 | | - qa = rand(Quaternion) |
| 175 | + qa = rand(QuatRotation).q |
176 | 176 | xb = rand(3) |
177 | | - qb = rand(Quaternion) |
| 177 | + qb = rand(QuatRotation).q |
178 | 178 | λ = rand(3) |
179 | 179 | η = rand(0) |
180 | 180 | Dojo.impulse_map(:parent, tra0, xa, qa, xb, qb, η) |
@@ -230,13 +230,13 @@ end |
230 | 230 | mech = Dojo.get_mechanism(:pendulum) |
231 | 231 | joint0 = mech.joints[1] |
232 | 232 | rot0 = joint0.rotational |
233 | | - rot0.axis_offset = rand(Quaternion) |
| 233 | + rot0.axis_offset = rand(QuatRotation).q |
234 | 234 |
|
235 | 235 |
|
236 | 236 | xa = rand(3) |
237 | | - qa = rand(Quaternion) |
| 237 | + qa = rand(QuatRotation).q |
238 | 238 | xb = rand(3) |
239 | | - qb = rand(Quaternion) |
| 239 | + qb = rand(QuatRotation).q |
240 | 240 | λ = rand(2) |
241 | 241 | η = rand(0) |
242 | 242 | Dojo.impulse_map(:parent, rot0, xa, qa, xb, qb, η) |
|
0 commit comments