Constraint Sets
Posted: Fri Jun 23, 2017 9:26 am
I've been looking at constraint sets and when I was looking at different ways to write a constraint set, I found two different examples seen below:
The first piece of code is from the MoBL_ARMS_Upper_Limb_Model_SIMM_0.osim model and the second piece of code is from the bouncing_block.osim. Could someone possibly explain the difference between the two and what each one means?
Code: Select all
<ConstraintSet>
<objects>
<CoordinateCouplerConstraint name="sternoclavicular_r2_con">
<isDisabled> false </isDisabled>
<dependent_coordinate_name> sternoclavicular_r2 </dependent_coordinate_name>
<independent_coordinate_names> shoulder_elv </independent_coordinate_names>
<coupled_coordinates_function name="f0">
<NaturalCubicSpline>
<x> 0.000000000000 2.617993877991 </x>
<y> 0.000000000000 -0.633554518474 </y>
</NaturalCubicSpline>
</coupled_coordinates_function>
</CoordinateCouplerConstraint>
Code: Select all
<ConstraintSet>
<objects>
<PointOnLineConstraint name="lock_block_to_y_axis">
<isDisabled>false</isDisabled>
<line_body>ground</line_body>
<line_direction_vec> 0 1 0</line_direction_vec>
<point_on_line> 0 0 0</point_on_line>
<follower_body>block</follower_body>
<point_on_follower> 0 0 0</point_on_follower>
</PointOnLineConstraint>