ConditionalPathPoint not working

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
barak ostraich
Posts: 42
Joined: Thu Apr 12, 2018 12:17 am

ConditionalPathPoint not working

Post by barak ostraich » Sun Apr 17, 2022 7:24 am

i have put a conditionalPathPoint on a muscle.
It have to release the point when knee_angle_l not between -45 and 10.
But its not working( Other conditional points in this model is working).
can you find an error? or any other limitations I miss?

Code: Select all

                             <PathPoint name="med_gas_l-P1">
                                <location> -0.0190522 -0.393979 0.0235645</location>
                                <socket_parent_frame>/bodyset/femur_l</socket_parent_frame>
                            </PathPoint>
                           <ConditionalPathPoint name="med_gas_l-P2">
                                <location> -0.0300824 -0.403304 0.0258708</location>
                                <socket_parent_frame>/bodyset/femur_l</socket_parent_frame>
                                <range> -0.785398 0.174533</range>
                                <socket_coordinate>/jointset/knee_l/knee_angle_l</socket_coordinate>
                            </ConditionalPathPoint>
                            <PathPoint name="med_gas_l-P3">
                                <location> 0 0.0283317 0.0048438</location>
                                <socket_parent_frame>/bodyset/calcn_l</socket_parent_frame>
                            </PathPoint>
Last edited by barak ostraich on Sun Apr 24, 2022 8:03 am, edited 1 time in total.

User avatar
Nicholas Bianco
Posts: 1044
Joined: Thu Oct 04, 2012 8:09 pm

Re: ConditionalPathPoint not working

Post by Nicholas Bianco » Mon Apr 18, 2022 9:53 am

Hi Barak,

This question is better suited for the main OpenSim forum, as it is not explicity Moco-related. Please feel free to post your question there instead.

Best,
Nick

POST REPLY