Skip to content
LIBRARY
tests.TestCableEndJoints.md

tests.TestCableEndJoints

Simple test: World → Cable(end_joints=true, n=2) → Body Tests n+1 joint topology.

Usage

MultibodyComponents.tests.TestCableEndJoints()

Parameters:

NameDescriptionUnitsDefault value
number_of_links2
use_quattrue

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)
end
Flattened 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 {}
end


Test Cases

No test cases defined.