Page 1 of 1

Problem with OpenSense

Posted: Mon Oct 12, 2020 8:31 am
by limhanxiang
Hi, I am currently working on OpenSense tutorial with IMU data provided, and able to carry till IMU Sensor Tracking with "myIMUIK_Setup.xml " file. However, when I run the inverse kinematics code in Matlab, visualizer is showing weird motion which is different from tutorial as in picture attached.

The result directory also keep locate to repeated path (after "ik_") that I have set, as below: 'C:\Users\USER\Documents\OpenSim\4.1\Code\Matlab\OpenSenseExample\IKResults\MT_012005D6_009-001_orientations.mot/ik_C:\Users\USER\Documents\OpenSim\4.1\Code\Matlab\OpenSenseExample\MT_012005D6_009-001_orientations'

May I know how to solve for these ?
Thank you =]

Re: Problem with OpenSense

Posted: Mon Oct 12, 2020 9:39 am
by aymanh
Hello,

My guess is that you're running the code in MATLAB from a working directory different from that expected by the code. It should run as is out of the box if you run from the Code/Matlab/OpenSenseExample folder of the distribution. Matlab allows for different ways to run the code so make sure your working directory is set as described in the instructions.

Please let us know how it goes,
-Ayman

Re: Problem with OpenSense

Posted: Wed Oct 14, 2020 3:21 am
by limhanxiang
Hi,

I just realized that my Matlab working directory was not set as instructions, now I am able run the code without any exceptions, thanks for your reply.
Besides, I still getting the weird IK output motion with tutorial data which the musculoskeletal model moving as picture attached. May be I need to collect some data with IMU and do some comparisons.

Thank you =]