---
url: /dyad/stable/stdlib/MultibodyComponents/components/PlanarMechanics.PrescribedPose.md
description: >-
  Dyad PlanarMechanics.PrescribedPose docs.  Prescribed position and orientation
  of frame_b via input connectors.
---

# `PlanarMechanics.PrescribedPose` {#PlanarMechanics.PrescribedPose}

Prescribed position and orientation of `frame_b` via input connectors.

Position is driven by `r_x`, `r_y` (planar world frame) and the rotation angle by `phi` (counter clockwise).

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.PrescribedPose()`

## Connectors {#Connectors}

* `frame_b` - Coordinate system (2-dim.) fixed to the component with one cut-force and cut-torque.

All variables are resolved in the planar world frame. ([`Frame2D`](/stdlib/Dyad/connectors/Frame2D#Frame2D))

* `r_x` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

* `r_y` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

* `phi` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

## Variables {#Variables}

| Name |                                                          Description | Units |
| ----:| --------------------------------------------------------------------:| -----:|
|  `r` | Position vector from world frame to frame_b, resolved in world frame |     m |
|  `v` |                Absolute velocity of frame_b, resolved in world frame |   m/s |
|  `a` |            Absolute acceleration of frame_b, resolved in world frame |  m/s2 |

## Behavior {#Behavior}

$$ \begin{align}
r\_{1}\left( t \right) &= \mathtt{r_x}\left( t \right) \\
r\_{2}\left( t \right) &= \mathtt{r_y}\left( t \right) \\
\mathtt{frame_b.x}\left( t \right) &= \mathtt{r_x}\left( t \right) \\
\mathtt{frame_b.y}\left( t \right) &= \mathtt{r_y}\left( t \right) \\
\mathtt{frame_b.phi}\left( t \right) &= \mathtt{phi}\left( t \right) \\
v\_{1}\left( t \right) &= \frac{\mathrm{d}r\_{1}\left( t \right)}{\mathrm{d}t} \\
v\_{2}\left( t \right) &= \frac{\mathrm{d}r\_{2}\left( t \right)}{\mathrm{d}t} \\
a\_{1}\left( t \right) &= \frac{\mathrm{d}v\_{1}\left( t \right)}{\mathrm{d}t} \\
a\_{2}\left( t \right) &= \frac{\mathrm{d}v\_{2}\left( t \right)}{\mathrm{d}t}
\end{align}
$$

## Source {#Source}

```dyad
"""
Prescribed position and orientation of `frame_b` via input connectors.

Position is driven by `r_x`, `r_y` (planar world frame) and the rotation
angle by `phi` (counter clockwise).
"""
component PrescribedPose
  frame_b = Frame2D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 900, "y1": 450, "x2": 1000, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  r_x = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -50, "y1": 100, "x2": 50, "y2": 200, "rot": 0}
      },
      "tags": []
    }
  }
  r_y = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -50, "y1": 450, "x2": 50, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  phi = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -50, "y1": 780, "x2": 50, "y2": 880, "rot": 0}
      },
      "tags": []
    }
  }
  "Position vector from world frame to frame_b, resolved in world frame"
  variable r::Position[2]
  "Absolute velocity of frame_b, resolved in world frame"
  variable v::Velocity[2]
  "Absolute acceleration of frame_b, resolved in world frame"
  variable a::Acceleration[2]
relations
  r = [r_x, r_y]
  frame_b.x = r_x
  frame_b.y = r_y
  frame_b.phi = phi
  v = der(r)
  a = der(v)
metadata {
  "Dyad": {
    "icons": {"default": "dyad://MultibodyComponents/PrescribedPose.svg"},
    "labels": [
      {
        "label": "$(instance)",
        "x": 500,
        "y": 150,
        "rot": 0,
        "attrs": {"font-size": "160"}
      }
    ]
  }
}
end
```

```dyad
"""
Prescribed position and orientation of `frame_b` via input connectors.

Position is driven by `r_x`, `r_y` (planar world frame) and the rotation
angle by `phi` (counter clockwise).
"""
component PrescribedPose
  frame_b = Frame2D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 900, "y1": 450, "x2": 1000, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  r_x = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -50, "y1": 100, "x2": 50, "y2": 200, "rot": 0}
      },
      "tags": []
    }
  }
  r_y = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -50, "y1": 450, "x2": 50, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  phi = RealInput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -50, "y1": 780, "x2": 50, "y2": 880, "rot": 0}
      },
      "tags": []
    }
  }
  "Position vector from world frame to frame_b, resolved in world frame"
  variable r::Position[2]
  "Absolute velocity of frame_b, resolved in world frame"
  variable v::Velocity[2]
  "Absolute acceleration of frame_b, resolved in world frame"
  variable a::Acceleration[2]
relations
  r = [r_x, r_y]
  frame_b.x = r_x
  frame_b.y = r_y
  frame_b.phi = phi
  v = der(r)
  a = der(v)
metadata {
  "Dyad": {
    "icons": {"default": "dyad://MultibodyComponents/PrescribedPose.svg"},
    "labels": [
      {
        "label": "$(instance)",
        "x": 500,
        "y": 150,
        "rot": 0,
        "attrs": {"font-size": "160"}
      }
    ]
  }
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

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

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

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