CMC muscle excitation controls
Posted: Tue Nov 28, 2017 6:47 am
Hi all,
I'm trying to constrain the times at which my muscles are activated, because CMC is activating them for too much of the stroke cycle. I used the excitation editor to make an xml file, and then I loaded that under the "actuator constraints" part of the CMC GUI, then ran CMC. My results don't change at all (i.e., muscles are still activated when they shouldn't be, outside of the time regions specified by my control file). I know I'm doing something wrong but I can't figure out what... My xml file looks like this (there are several wingbeats, and the muscles I'm trying to constrain are called "Pectoralis" and "Supracoracoideus" in my osim file):
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSimDocument Version="30000">
<ControlSet name="chukar_fixing_Default">
<objects>
<ControlLinear name="Pectoralis_r.excitation">
<is_model_control>true</is_model_control>
<extrapolate>true</extrapolate>
<default_min>0.02</default_min>
<default_max>1</default_max>
<filter_on>false</filter_on>
<use_steps>false</use_steps>
<min_nodes>
<ControlLinearNode>
<t>0.052</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.091</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.128</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.167</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.204</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.243</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.28</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.319</t>
<value>0</value>
</ControlLinearNode>
</min_nodes>
<max_nodes>
<ControlLinearNode>
<t>0.052</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.091</t>
<value>1</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.128</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.167</t>
<value>1</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.204</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.243</t>
<value>1</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.28</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.319</t>
<value>1</value>
</ControlLinearNode>
</max_nodes>
<kp>100</kp>
<kv>20</kv>
</ControlLinear>
+ one other muscle (Supracoracoideus). Thanks in advance for suggestions!
I'm trying to constrain the times at which my muscles are activated, because CMC is activating them for too much of the stroke cycle. I used the excitation editor to make an xml file, and then I loaded that under the "actuator constraints" part of the CMC GUI, then ran CMC. My results don't change at all (i.e., muscles are still activated when they shouldn't be, outside of the time regions specified by my control file). I know I'm doing something wrong but I can't figure out what... My xml file looks like this (there are several wingbeats, and the muscles I'm trying to constrain are called "Pectoralis" and "Supracoracoideus" in my osim file):
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSimDocument Version="30000">
<ControlSet name="chukar_fixing_Default">
<objects>
<ControlLinear name="Pectoralis_r.excitation">
<is_model_control>true</is_model_control>
<extrapolate>true</extrapolate>
<default_min>0.02</default_min>
<default_max>1</default_max>
<filter_on>false</filter_on>
<use_steps>false</use_steps>
<min_nodes>
<ControlLinearNode>
<t>0.052</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.091</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.128</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.167</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.204</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.243</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.28</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.319</t>
<value>0</value>
</ControlLinearNode>
</min_nodes>
<max_nodes>
<ControlLinearNode>
<t>0.052</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.091</t>
<value>1</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.128</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.167</t>
<value>1</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.204</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.243</t>
<value>1</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.28</t>
<value>0</value>
</ControlLinearNode>
<ControlLinearNode>
<t>0.319</t>
<value>1</value>
</ControlLinearNode>
</max_nodes>
<kp>100</kp>
<kv>20</kv>
</ControlLinear>
+ one other muscle (Supracoracoideus). Thanks in advance for suggestions!