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
Errors in function trying to access parent frame, ground frame etc
- Radhakrishnan Vignesh
- Posts: 104
- Joined: Tue Jun 01, 2021 8:09 am
- Mohammadreza Rezaie
- Posts: 407
- Joined: Fri Nov 24, 2017 12:48 am
Re: Errors in function trying to access parent frame, ground frame etc
Hi, call "model.initSystem()" first.
- Radhakrishnan Vignesh
- Posts: 104
- Joined: Tue Jun 01, 2021 8:09 am
Re: Errors in function trying to access parent frame, ground frame etc
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 ?
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 ?