---
url: /dyad/stable/stdlib/MultibodyComponents/tests/PlanarMechanics.TestPlanarCableEndJoints.md
description: >-
  Dyad PlanarMechanics.TestPlanarCableEndJoints docs.  Planar cable test: World
  → Cable(end_joints=true, n=3) → Body. Tests the n+1 Revolute-joint topology,
  hanging under gravity.
---

# `PlanarMechanics.TestPlanarCableEndJoints` {#PlanarMechanics.TestPlanarCableEndJoints}

Planar cable test: World → Cable(end_joints=true, n=3) → Body. Tests the n+1 Revolute-joint topology, hanging under gravity.

## Usage {#Usage}

`MultibodyComponents.PlanarMechanics.TestPlanarCableEndJoints()`

## Parameters: {#Parameters:}

|              Name | Description | Units | Default value |
| -----------------:| -----------:| -----:| -------------:|
| `number_of_links` |             |     – |             3 |

## Behavior {#Behavior}

## Source {#Source}

```dyad
"""
Planar cable test: World → Cable(end_joints=true, n=3) → Body.
Tests the n+1 Revolute-joint topology, hanging under gravity.
"""
test component TestPlanarCableEndJoints
  structural parameter number_of_links::Integer = 3
  world = World()
  cable = Cable(n = number_of_links, dir = [1, 0], end_joints = true, l = 1, m = 1, radius = 0.02)
  load = Body(m = 0.5, I = 0.01)
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, load.frame_a)
metadata {"Dyad": {"tests": {"case1": {"stop": 2}}}}
end
```

```dyad
"""
Planar cable test: World → Cable(end_joints=true, n=3) → Body.
Tests the n+1 Revolute-joint topology, hanging under gravity.
"""
test component TestPlanarCableEndJoints
  structural parameter number_of_links::Integer = 3
  world = World()
  cable = Cable(n = number_of_links, dir = [1, 0], end_joints = true, l = 1, m = 1, radius = 0.02)
  load = Body(m = 0.5, I = 0.01)
relations
  connect(world.frame_b, cable.frame_a)
  connect(cable.frame_b, load.frame_a)
metadata {"Dyad": {"tests": {"case1": {"stop": 2}}}}
end
```

## Test Cases {#Test-Cases}

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

## Related {#Related}

* Examples

* Experiments

* Analyses

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

  * [`Cable`](PlanarMechanics.TestPlanarCableEndJoints.md)

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