---
url: /dyad/dev/stdlib/MultibodyComponents/tests/PlanarMechanics.PlanarToMultiBodyKinematicTest.md
description: >-
  Dyad PlanarMechanics.PlanarToMultiBodyKinematicTest docs.  Kinematic test of
  PlanarToMultiBody: a prescribed planar pose is lifted into 3D and read back by
  a 3D absolute-angle sensor. The 3D frame po...
---

# `PlanarMechanics.PlanarToMultiBodyKinematicTest` {#PlanarMechanics.PlanarToMultiBodyKinematicTest}

Kinematic test of `PlanarToMultiBody`: a prescribed planar pose is lifted into 3D and read back by a 3D absolute-angle sensor. The 3D frame position must equal `[r_x, r_y, z_position]` and its orientation a rotation about z by `phi`.

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.PlanarToMultiBodyKinematicTest()`

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Kinematic test of `PlanarToMultiBody`: a prescribed planar pose is lifted into
3D and read back by a 3D absolute-angle sensor. The 3D frame position must equal
`[r_x, r_y, z_position]` and its orientation a rotation about z by `phi`.
"""
test component PlanarToMultiBodyKinematicTest
  world = World() {}
  prescribed = PrescribedPose() {}
  body = Body(m = 1.0, I = 1.0) {}
  adapter = PlanarToMultiBody(z_position = 0.5) {}
  sensor = MultibodyComponents.AbsoluteAngles() {}
relations
  prescribed.r_x = time
  prescribed.r_y = 0.5 * time
  prescribed.phi = 0.3 * time
  connect(prescribed.frame_b, body.frame_a, adapter.frame_a) {}
  connect(adapter.frame_b, sensor.frame_a) {}
end
```

```dyad
"""
Kinematic test of `PlanarToMultiBody`: a prescribed planar pose is lifted into
3D and read back by a 3D absolute-angle sensor. The 3D frame position must equal
`[r_x, r_y, z_position]` and its orientation a rotation about z by `phi`.
"""
test component PlanarToMultiBodyKinematicTest
  world = World() {}
  prescribed = PrescribedPose() {}
  body = Body(m = 1.0, I = 1.0) {}
  adapter = PlanarToMultiBody(z_position = 0.5) {}
  sensor = MultibodyComponents.AbsoluteAngles() {}
relations
  prescribed.r_x = time
  prescribed.r_y = 0.5 * time
  prescribed.phi = 0.3 * time
  connect(prescribed.frame_b, body.frame_a, adapter.frame_a) {}
  connect(adapter.frame_b, sensor.frame_a) {}
metadata {}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`AbsoluteAngles`](PlanarMechanics.PlanarToMultiBodyKinematicTest.md)

  * [`Body`](PlanarMechanics.PlanarToMultiBodyKinematicTest.md)

  * [`PlanarToMultiBody`](PlanarMechanics.PlanarToMultiBodyKinematicTest.md)

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

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