---
url: /dyad/stable/stdlib/MultibodyComponents/tests/PlanarMechanics.PrescribedPoseTest.md
description: >-
  Dyad PlanarMechanics.PrescribedPoseTest docs.  A body whose frame_a is driven
  by a PrescribedPose component. Position follows [t, 0.5t] and the rotation
  angle grows at constant rate.
---

# `PlanarMechanics.PrescribedPoseTest` {#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 {#Usage}

`MultibodyComponents.PlanarMechanics.PrescribedPoseTest()`

## Behavior {#Behavior}

## Source {#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
```

```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 {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Body`](PlanarMechanics.PrescribedPoseTest.md)

  * [`PrescribedPose`](PlanarMechanics.PrescribedPoseTest.md)

  * [`World`](PlanarMechanics.PrescribedPoseTest.md)
