---
url: /dyad/stable/stdlib/MultibodyComponents/components/PlanarMechanics.AbsoluteVelocity.md
description: >-
  Dyad PlanarMechanics.AbsoluteVelocity docs.  Measures absolute velocity and
  angular velocity of the origin of a frame connector.
---

# `PlanarMechanics.AbsoluteVelocity` {#PlanarMechanics.AbsoluteVelocity}

Measures absolute velocity and angular velocity of the origin of a frame connector.

Composes BasicAbsolutePosition (world) + differentiation + TransformAbsoluteVector to resolve the result in any supported frame. This is a sensor component: it reads kinematic quantities without exerting forces.

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.AbsoluteVelocity()`

## Parameters: {#Parameters:}

|               Name | Description | Units |             Default value |
| ------------------:| -----------:| -----:| -------------------------:|
| `resolve_in_frame` |             |     – | MultibodyCo...me.FrameA() |

## Connectors {#Connectors}

* `frame_a` - 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))

* `frame_resolve` - 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))

* `v_x` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

* `v_y` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

* `w` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

## Variables {#Variables}

|   Name | Description | Units |
| ------:| -----------:| -----:|
|   `px` |             |     m |
|   `py` |             |     m |
| `pphi` |             |   rad |

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Measures absolute velocity and angular velocity of the origin of a frame connector.

Composes BasicAbsolutePosition (world) + differentiation + TransformAbsoluteVector
to resolve the result in any supported frame. This is a sensor component: it reads
kinematic quantities without exerting forces.
"""
component AbsoluteVelocity
  frame_a = Frame2D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  frame_resolve = Frame2D() if resolve_in_frame == MultibodyComponents.ResolveInFrame.FrameResolve() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": -50, "x2": 550, "y2": 50, "rot": 0}
      },
      "tags": []
    }
  }
  "x velocity"
  v_x = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 970, "y1": 140, "x2": 1070, "y2": 240, "rot": 0}
      },
      "tags": []
    }
  }
  "y velocity"
  v_y = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 960, "y1": 450, "x2": 1060, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  "angular velocity"
  w = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 960, "y1": 740, "x2": 1060, "y2": 840, "rot": 0}
      },
      "tags": []
    }
  }
  pos = BasicAbsolutePosition(resolve_in_frame = MultibodyComponents.ResolveInFrame.World())
  transform = TransformAbsoluteVector(frame_in = MultibodyComponents.ResolveInFrame.World(), frame_out = resolve_in_frame) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 630, "x2": 550, "y2": 730, "rot": 0}
      },
      "tags": []
    }
  }
  structural parameter resolve_in_frame::MultibodyComponents.ResolveInFrame = MultibodyComponents.ResolveInFrame.FrameA()
  variable px::Length
  variable py::Length
  variable pphi::Angle
relations
  connect(frame_a, pos.frame_a)
  connect(frame_a, transform.frame_a)
  if resolve_in_frame == MultibodyComponents.ResolveInFrame.FrameResolve()
    connect(frame_resolve, transform.frame_resolve)
  end
  px = pos.x
  py = pos.y
  pphi = pos.phi
  transform.x_in = der(px)
  transform.y_in = der(py)
  transform.phi_in = der(pphi)
  v_x = transform.x_out
  v_y = transform.y_out
  w = transform.phi_out
metadata {
  "Dyad": {"icons": {"default": "dyad://MultibodyComponents/OneFrameSensor.svg"}}
}
end
```

```dyad
"""
Measures absolute velocity and angular velocity of the origin of a frame connector.

Composes BasicAbsolutePosition (world) + differentiation + TransformAbsoluteVector
to resolve the result in any supported frame. This is a sensor component: it reads
kinematic quantities without exerting forces.
"""
component AbsoluteVelocity
  frame_a = Frame2D() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  frame_resolve = Frame2D() if resolve_in_frame == MultibodyComponents.ResolveInFrame.FrameResolve() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": -50, "x2": 550, "y2": 50, "rot": 0}
      },
      "tags": []
    }
  }
  "x velocity"
  v_x = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 970, "y1": 140, "x2": 1070, "y2": 240, "rot": 0}
      },
      "tags": []
    }
  }
  "y velocity"
  v_y = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 960, "y1": 450, "x2": 1060, "y2": 550, "rot": 0}
      },
      "tags": []
    }
  }
  "angular velocity"
  w = RealOutput() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 960, "y1": 740, "x2": 1060, "y2": 840, "rot": 0}
      },
      "tags": []
    }
  }
  pos = BasicAbsolutePosition(resolve_in_frame = MultibodyComponents.ResolveInFrame.World())
  transform = TransformAbsoluteVector(frame_in = MultibodyComponents.ResolveInFrame.World(), frame_out = resolve_in_frame) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 450, "y1": 630, "x2": 550, "y2": 730, "rot": 0}
      },
      "tags": []
    }
  }
  structural parameter resolve_in_frame::MultibodyComponents.ResolveInFrame = MultibodyComponents.ResolveInFrame.FrameA()
  variable px::Length
  variable py::Length
  variable pphi::Angle
relations
  connect(frame_a, pos.frame_a)
  connect(frame_a, transform.frame_a)
  if resolve_in_frame == MultibodyComponents.ResolveInFrame.FrameResolve()
    connect(frame_resolve, transform.frame_resolve)
  end
  px = pos.x
  py = pos.y
  pphi = pos.phi
  transform.x_in = der(px)
  transform.y_in = der(py)
  transform.phi_in = der(pphi)
  v_x = transform.x_out
  v_y = transform.y_out
  w = transform.phi_out
metadata {
  "Dyad": {"icons": {"default": "dyad://MultibodyComponents/OneFrameSensor.svg"}}
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`CentrifugalTest`](PlanarMechanics.AbsoluteVelocity.md)

  * [`SensorsTest`](PlanarMechanics.AbsoluteVelocity.md)
