You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rebase: Mysterious negative sign required sometimes #105 (#200)
* Bugfix: Transpose rotation matrices to fix the direction of the rotation
* Get rid of neg_w
* Update unit tests
---------
Co-authored-by: ElMapacheDelOeste <[email protected]>
@@ -469,13 +468,8 @@ This component has a single frame, `frame_a`. To represent bodies with more than
469
468
phid .~D.(phi)
470
469
phidd .~D.(phid)
471
470
Ra.w .~ ar.w
472
-
if neg_w
473
-
# w_a .~ -ar.w # This is required for FreeBody and ThreeSprings tests to pass, but the other one required for harmonic osciallator without joint to pass. FreeBody passes with quat=true so we use that instead
474
-
collect(w_a .~-angular_velocity2(ar))
475
-
else
476
-
collect(w_a .~ (angular_velocity2(ar)))
471
+
collect(w_a .~ (angular_velocity2(ar)))
477
472
# w_a .~ ar.w # This one for most systems
478
-
end
479
473
Ra ~ ar
480
474
]
481
475
end
@@ -788,7 +782,7 @@ Rigid body with cylinder shape. The mass properties of the body (mass, center of
788
782
- `a_0`: Absolute acceleration of `frame_a` resolved in world frame (= D(v_0))
# They also have w_a = angularVelocity2(frame_a.R) even for quaternions, so w_a = angularVelocity2(Q, der(Q)), this is their link between w_a and D(Q), while ours is D(Q̂) .~ (Ω * Q̂)
0 commit comments