---
url: /dyad/stable/stdlib/MultibodyComponents/tests/PlanarMechanics.OneDOFRollingWheelJointTest.md
description: >-
  Dyad PlanarMechanics.OneDOFRollingWheelJointTest docs.  Test for
  OneDOFRollingWheelJoint: a body connected to an ideal rolling wheel.
---

# `PlanarMechanics.OneDOFRollingWheelJointTest` {#PlanarMechanics.OneDOFRollingWheelJointTest}

Test for OneDOFRollingWheelJoint: a body connected to an ideal rolling wheel.

A body (m=0.1, I=0.01) with initial angular velocity w=1 rad/s on a wheel of radius 1. Gravity pulls the body down, constraining it on the ground. Translates the "OneDOFRollingWheelJoint" test from test_PlanarMechanics.jl.

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.OneDOFRollingWheelJointTest()`

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Test for OneDOFRollingWheelJoint: a body connected to an ideal rolling wheel.

A body (m=0.1, I=0.01) with initial angular velocity w=1 rad/s on a wheel of radius 1.
Gravity pulls the body down, constraining it on the ground.
Translates the "OneDOFRollingWheelJoint" test from test_PlanarMechanics.jl.
"""
test component OneDOFRollingWheelJointTest
  world = World(g = 9.82) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 10, "y1": 880, "x2": 110, "y2": 980, "rot": 0}
      },
      "tags": []
    }
  }
  body = Body(m = 0.1, I = 0.01, phi(initial = 0.0), w(initial = 1.0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 400, "y1": 240, "x2": 600, "y2": 440, "rot": 270}
      },
      "tags": []
    }
  }
  wheelJoint = OneDOFRollingWheelJoint(radius = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 400, "y1": 570, "x2": 600, "y2": 770, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(wheelJoint.frame_a, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
metadata {"Dyad": {"tests": {"case1": {"stop": 10}}}}
end
```

```dyad
"""
Test for OneDOFRollingWheelJoint: a body connected to an ideal rolling wheel.

A body (m=0.1, I=0.01) with initial angular velocity w=1 rad/s on a wheel of radius 1.
Gravity pulls the body down, constraining it on the ground.
Translates the "OneDOFRollingWheelJoint" test from test_PlanarMechanics.jl.
"""
test component OneDOFRollingWheelJointTest
  world = World(g = 9.82) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 10, "y1": 880, "x2": 110, "y2": 980, "rot": 0}
      },
      "tags": []
    }
  }
  body = Body(m = 0.1, I = 0.01, phi(initial = 0.0), w(initial = 1.0)) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 400, "y1": 240, "x2": 600, "y2": 440, "rot": 270}
      },
      "tags": []
    }
  }
  wheelJoint = OneDOFRollingWheelJoint(radius = 1) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 400, "y1": 570, "x2": 600, "y2": 770, "rot": 0}
      },
      "tags": []
    }
  }
relations
  connect(wheelJoint.frame_a, body.frame_a) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
metadata {"Dyad": {"tests": {"case1": {"stop": 10}}}}
end
```

## Test Cases {#Test-Cases}

### Test Case `case1` {#Test-Case-case1}

## Related {#Related}

* Examples

* Experiments

* Analyses

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

  * [`OneDOFRollingWheelJoint`](PlanarMechanics.OneDOFRollingWheelJointTest.md)

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