LIBRARY
PlanarMechanics.TestPlanarCableEndJoints
Planar cable test: World → Cable(end_joints=true, n=3) → Body. Tests the n+1 Revolute-joint topology, hanging under gravity.
Usage
MultibodyComponents.PlanarMechanics.TestPlanarCableEndJoints()
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
number_of_links | – | 3 |
Behavior
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
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)
structural parameter number_of_links::Integer = 3
relations
connect(world.frame_b, cable.frame_a)
connect(cable.frame_b, load.frame_a)
metadata {"Dyad": {"tests": {"case1": {"stop": 2}}}}
endFlattened 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
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)
structural parameter number_of_links::Integer = 3
relations
connect(world.frame_b, cable.frame_a)
connect(cable.frame_b, load.frame_a)
metadata {"Dyad": {"tests": {"case1": {"stop": 2}}}}
end