LIBRARY
PlanarMechanics.PlanarToMultiBodyEmbeddedTest
Embedding test of PlanarToMultiBody: the planar world is mounted at a nonzero 3D offset (r_0_3d) so the lifted 3D frame is shifted by that offset in addition to the out-of-plane z_position.
Usage
MultibodyComponents.PlanarMechanics.PlanarToMultiBodyEmbeddedTest()
Behavior
Source
dyad
"""
Embedding test of `PlanarToMultiBody`: the planar world is mounted at a nonzero
3D offset (`r_0_3d`) so the lifted 3D frame is shifted by that offset in
addition to the out-of-plane `z_position`.
"""
test component PlanarToMultiBodyEmbeddedTest
world = World(r_0_3d = [1.0, 2.0, 3.0]) {}
prescribed = PrescribedPose() {}
body = Body(m = 1.0, I = 1.0) {}
adapter = PlanarToMultiBody(z_position = 0.5) {}
sensor = MultibodyComponents.AbsoluteAngles() {}
relations
prescribed.r_x = time
prescribed.r_y = 0.5 * time
prescribed.phi = 0.3 * time
connect(prescribed.frame_b, body.frame_a, adapter.frame_a) {}
connect(adapter.frame_b, sensor.frame_a) {}
endFlattened Source
dyad
"""
Embedding test of `PlanarToMultiBody`: the planar world is mounted at a nonzero
3D offset (`r_0_3d`) so the lifted 3D frame is shifted by that offset in
addition to the out-of-plane `z_position`.
"""
test component PlanarToMultiBodyEmbeddedTest
world = World(r_0_3d = [1.0, 2.0, 3.0]) {}
prescribed = PrescribedPose() {}
body = Body(m = 1.0, I = 1.0) {}
adapter = PlanarToMultiBody(z_position = 0.5) {}
sensor = MultibodyComponents.AbsoluteAngles() {}
relations
prescribed.r_x = time
prescribed.r_y = 0.5 * time
prescribed.phi = 0.3 * time
connect(prescribed.frame_b, body.frame_a, adapter.frame_a) {}
connect(adapter.frame_b, sensor.frame_a) {}
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses
Tests