Skip to content
LIBRARY
tests.PrescribedVelocityTest.md

tests.PrescribedVelocityTest

Prescribed Velocity Test

A body whose frame_a is driven by a PrescribedVelocity component with constant velocity inputs. The body should move with constant velocity in each axis, starting from r_start.

Usage

MultibodyComponents.tests.PrescribedVelocityTest()

Behavior

Source

dyad
"""
# Prescribed Velocity Test

A body whose `frame_a` is driven by a `PrescribedVelocity` component with
constant velocity inputs. The body should move with constant velocity in
each axis, starting from `r_start`.
"""
example component PrescribedVelocityTest
  world = MultibodyComponents.World() {}
  prescribed = MultibodyComponents.PrescribedVelocity(r_start = [0, 0, 0]) {}
  body = MultibodyComponents.Body(m = 1, r_cm = [0, 0, 0]) {}
relations
  prescribed.v_x = 1.0
  prescribed.v_y = 2.0
  prescribed.v_z = 0.5
  connect(prescribed.frame_b, body.frame_a) {}
end
Flattened Source
dyad
"""
# Prescribed Velocity Test

A body whose `frame_a` is driven by a `PrescribedVelocity` component with
constant velocity inputs. The body should move with constant velocity in
each axis, starting from `r_start`.
"""
example component PrescribedVelocityTest
  world = MultibodyComponents.World() {}
  prescribed = MultibodyComponents.PrescribedVelocity(r_start = [0, 0, 0]) {}
  body = MultibodyComponents.Body(m = 1, r_cm = [0, 0, 0]) {}
relations
  prescribed.v_x = 1.0
  prescribed.v_y = 2.0
  prescribed.v_z = 0.5
  connect(prescribed.frame_b, body.frame_a) {}
metadata {}
end


Test Cases

No test cases defined.