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
Renamed panda mechanisms, split tests into runtests_manual.jl and setup_test_mechanisms.jl to make running tests independently simpler. Fixed projecting joint torque for revolute joints.
Copy file name to clipboardExpand all lines: src/components/components.jl
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -359,10 +359,8 @@ Add opspace force `f` to the cache for coordinate `c`.
359
359
@inlinefunction_add_opspace_force!(bundle::CacheBundle, c::C) where C<:ComponentData
360
360
@asserthasfield(C, :coord) "Component '$c' does not have a field 'coord'. If this is a valid component, please implement `_add_opspace_force!` for it."
361
361
f::SVector=opspace_force(bundle, c)
362
-
coord_id = c.coord
363
-
coord = bundle[coord_id]
364
-
f_cache_view(bundle, coord) .-= f # f is negated, due to the definition of bias forces. e.g. If a spring opspace force is Kz
365
-
nothing
362
+
f_view =f_cache_view(bundle, bundle[c.coord])
363
+
f_view .-= f # f is negated, due to the definition of bias forces. e.g. If a spring opspace force is Kz
0 commit comments