Errors in function trying to access parent frame, ground frame etc

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Radhakrishnan Vignesh
Posts: 104
Joined: Tue Jun 01, 2021 8:09 am

Errors in function trying to access parent frame, ground frame etc

Post by Radhakrishnan Vignesh » Sun Apr 23, 2023 12:32 am

Hi,

I am trying to access or transform a marker from global coordinate system to body-frame reference. Unfortunately when I call functions such as marker.getParentFrame(), marker.getLocationInGround(state) etc, in the inverse kinematic step, it always throws an exception.

The errors I get state: InverseKinematicsTool Failed: Component has no underlying System.
You must call initSystem() on the top-level Component (i.e. Model) first.

or WaistLFront[error] InverseKinematicsTool Failed: Socket parent_frame of type PhysicalFrame in / of type Marker is not connected.

How do I fix this?

Thanks

Tags:

User avatar
Mohammadreza Rezaie
Posts: 365
Joined: Fri Nov 24, 2017 12:48 am

Re: Errors in function trying to access parent frame, ground frame etc

Post by Mohammadreza Rezaie » Sun Apr 23, 2023 7:30 am

Hi, call "model.initSystem()" first.

User avatar
Radhakrishnan Vignesh
Posts: 104
Joined: Tue Jun 01, 2021 8:09 am

Re: Errors in function trying to access parent frame, ground frame etc

Post by Radhakrishnan Vignesh » Sun Apr 23, 2023 7:37 am

Hi,

I do call the function but I still get the error. In the osim file, there is no parent frame but socket parent frame. Is that an issue ?

POST REPLY