LIBRARY
PlanarMechanics.PrescribedPoseTest
A body whose frame_a is driven by a PrescribedPose component. Position follows [t, 0.5t] and the rotation angle grows at constant rate.
Usage
MultibodyComponents.PlanarMechanics.PrescribedPoseTest()
Behavior
Source
dyad
"""
A body whose `frame_a` is driven by a `PrescribedPose` component. Position
follows `[t, 0.5t]` and the rotation angle grows at constant rate.
"""
test component PrescribedPoseTest
world = World() {}
prescribed = PrescribedPose() {}
body = Body(m = 1, I = 1) {}
relations
prescribed.r_x = time
prescribed.r_y = 0.5 * time
prescribed.phi = 0.3 * time
connect(prescribed.frame_b, body.frame_a) {}
endFlattened Source
dyad
"""
A body whose `frame_a` is driven by a `PrescribedPose` component. Position
follows `[t, 0.5t]` and the rotation angle grows at constant rate.
"""
test component PrescribedPoseTest
world = World() {}
prescribed = PrescribedPose() {}
body = Body(m = 1, I = 1) {}
relations
prescribed.r_x = time
prescribed.r_y = 0.5 * time
prescribed.phi = 0.3 * time
connect(prescribed.frame_b, body.frame_a) {}
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses
Tests