LIBRARY
tests.SphericalPendulum
Spherical Pendulum
A pendulum using a Spherical joint. The spherical joint connects the world frame to a bar with a body at the end, creating a three-degree-of-freedom pendulum.
Usage
MultibodyComponents.tests.SphericalPendulum()
Behavior
Source
dyad
"""
# Spherical Pendulum
A pendulum using a Spherical joint.
The spherical joint connects the world frame to a bar with a body at the end,
creating a three-degree-of-freedom pendulum.
"""
example component SphericalPendulum
world = MultibodyComponents.World() {}
joint = MultibodyComponents.Spherical(orientation_state = OrientationState.Euler()) {}
bar = MultibodyComponents.FixedTranslation(r = [0, -1, 0]) {}
body = MultibodyComponents.Body(m = 1) {}
relations
connect(world.frame_b, joint.frame_a) {}
connect(joint.frame_b, bar.frame_a) {}
connect(bar.frame_b, body.frame_a) {}
endFlattened Source
dyad
"""
# Spherical Pendulum
A pendulum using a Spherical joint.
The spherical joint connects the world frame to a bar with a body at the end,
creating a three-degree-of-freedom pendulum.
"""
example component SphericalPendulum
world = MultibodyComponents.World() {}
joint = MultibodyComponents.Spherical(orientation_state = OrientationState.Euler()) {}
bar = MultibodyComponents.FixedTranslation(r = [0, -1, 0]) {}
body = MultibodyComponents.Body(m = 1) {}
relations
connect(world.frame_b, joint.frame_a) {}
connect(joint.frame_b, bar.frame_a) {}
connect(bar.frame_b, body.frame_a) {}
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses