Skip to content
LIBRARY
PlanarMechanics.PrescribedPoseTest.md

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) {}
end
Flattened 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 {}
end


Test Cases

No test cases defined.