LIBRARY
examples.QuaternionBody ​
Free body with quaternion state ​
A single body floating freely with initial angular velocity. The body uses quaternion orientation state. With no forces or constraints, the body should rotate at constant angular velocity.
This mirrors the "Simple motion with quaternions" test in Multibody/test/test_quaternions.jl.
Usage ​
MultibodyComponents.examples.QuaternionBody()
Behavior ​
Source ​
dyad
"""
# Free body with quaternion state
A single body floating freely with initial angular velocity. The body uses
quaternion orientation state. With no forces or constraints, the body should
rotate at constant angular velocity.
This mirrors the "Simple motion with quaternions" test in
`Multibody/test/test_quaternions.jl`.
"""
example component QuaternionBody
world = MultibodyComponents.World()
body = MultibodyComponents.Body(m = 1, r_cm = [0.0, 0, 0], orientation_state = OrientationState.Quaternion(), w_a(initial = [1.0, 0, 0]))
relations
endFlattened Source
dyad
"""
# Free body with quaternion state
A single body floating freely with initial angular velocity. The body uses
quaternion orientation state. With no forces or constraints, the body should
rotate at constant angular velocity.
This mirrors the "Simple motion with quaternions" test in
`Multibody/test/test_quaternions.jl`.
"""
example component QuaternionBody
world = MultibodyComponents.World()
body = MultibodyComponents.Body(m = 1, r_cm = [0.0, 0, 0], orientation_state = OrientationState.Quaternion(), w_a(initial = [1.0, 0, 0]))
relations
metadata {}
endTest Cases ​
No test cases defined.
Related ​
Examples
Experiments
Analyses