---
url: /dyad/stable/stdlib/MultibodyComponents/tests/PlanarMechanics.PlanarToMultiBodyEmbeddedTest.md
description: >-
  Dyad PlanarMechanics.PlanarToMultiBodyEmbeddedTest docs.  Embedding test of
  PlanarToMultiBody: the planar world is mounted at a nonzero 3D offset (r_0_3d)
  so the lifted 3D frame is shifted by that o...
---

# `PlanarMechanics.PlanarToMultiBodyEmbeddedTest` {#PlanarMechanics.PlanarToMultiBodyEmbeddedTest}

Embedding test of `PlanarToMultiBody`: the planar world is mounted at a nonzero 3D offset (`r_0_3d`) so the lifted 3D frame is shifted by that offset in addition to the out-of-plane `z_position`.

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.PlanarToMultiBodyEmbeddedTest()`

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Embedding test of `PlanarToMultiBody`: the planar world is mounted at a nonzero
3D offset (`r_0_3d`) so the lifted 3D frame is shifted by that offset in
addition to the out-of-plane `z_position`.
"""
test component PlanarToMultiBodyEmbeddedTest
  world = World(r_0_3d = [1.0, 2.0, 3.0]) {}
  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
"""
Embedding test of `PlanarToMultiBody`: the planar world is mounted at a nonzero
3D offset (`r_0_3d`) so the lifted 3D frame is shifted by that offset in
addition to the out-of-plane `z_position`.
"""
test component PlanarToMultiBodyEmbeddedTest
  world = World(r_0_3d = [1.0, 2.0, 3.0]) {}
  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.PlanarToMultiBodyEmbeddedTest.md)

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

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

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

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