LIBRARY
tests.TestCableEndJoints
Simple test: World → Cable(end_joints=true, n=2) → Body Tests n+1 joint topology.
Usage
MultibodyComponents.tests.TestCableEndJoints()
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
number_of_links | – | 2 | |
use_quat | – | true |
Behavior
Source
dyad
"""
Simple test: World → Cable(end_joints=true, n=2) → Body
Tests n+1 joint topology.
"""
test component TestCableEndJoints
world = MultibodyComponents.World()
cable = MultibodyComponents.Cable(n = number_of_links, end_joints = true, l = 1, m = 1, radius = 0.01, orientation_state = use_quat ? OrientationState.Quaternion() : OrientationState.Euler())
load = MultibodyComponents.Body(m = 0.5)
structural parameter number_of_links::Integer = 2
structural parameter use_quat::Boolean = true
relations
connect(world.frame_b, cable.frame_a)
connect(cable.frame_b, load.frame_a)
endFlattened Source
dyad
"""
Simple test: World → Cable(end_joints=true, n=2) → Body
Tests n+1 joint topology.
"""
test component TestCableEndJoints
world = MultibodyComponents.World()
cable = MultibodyComponents.Cable(n = number_of_links, end_joints = true, l = 1, m = 1, radius = 0.01, orientation_state = use_quat ? OrientationState.Quaternion() : OrientationState.Euler())
load = MultibodyComponents.Body(m = 0.5)
structural parameter number_of_links::Integer = 2
structural parameter use_quat::Boolean = true
relations
connect(world.frame_b, cable.frame_a)
connect(cable.frame_b, load.frame_a)
metadata {}
endTest Cases
No test cases defined.