Skip to content
LIBRARY
tests.TestCableNoEndJoints.md

tests.TestCableNoEndJoints ​

Simple test: World → Cable(end_joints=false, n=2) → Body Tests n-1 joint topology (rigid attachment at both ends).

Usage ​

MultibodyComponents.tests.TestCableNoEndJoints()

Parameters: ​

NameDescriptionUnitsDefault value
number_of_links–2
use_quat–true

Behavior ​

Source ​

dyad
"""
Simple test: World → Cable(end_joints=false, n=2) → Body
Tests n-1 joint topology (rigid attachment at both ends).
"""
test component TestCableNoEndJoints
  world = MultibodyComponents.World()
  cable = MultibodyComponents.Cable(n = number_of_links, end_joints = false, 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)
end
Flattened Source
dyad
"""
Simple test: World → Cable(end_joints=false, n=2) → Body
Tests n-1 joint topology (rigid attachment at both ends).
"""
test component TestCableNoEndJoints
  world = MultibodyComponents.World()
  cable = MultibodyComponents.Cable(n = number_of_links, end_joints = false, 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 {}
end


Test Cases ​

No test cases defined.