Page 1 of 1

How to get marker coordinates from motion file

Posted: Thu Sep 07, 2023 2:52 pm
by conradotl
Ola, amigos.

I working in markless mocap project and we are using opensim to inverse kinematics. He have set the IK task in python and we are able to get the motion file (.mot) as expected. However, we need the marker positions (the .trc kind of thing) after the IK tool been applied and we have no clue how to get it, neither by the python API or the opensim GUI.

If someone can help us, it would be really nice. Thanks in advance

Re: How to get marker coordinates from motion file

Posted: Sun Nov 19, 2023 11:16 am
by gillesdusfour
Hello Conrado,

I'm facing the same issue.
Did you find a solution in python?

Regards,
Gilles

Re: How to get marker coordinates from motion file

Posted: Sun Nov 19, 2023 12:13 pm
by gillesdusfour
I found a solution in python scripting for classic IK, you need to add the following line to your inverse_kinematic.py script :
ik_tool.set_report_marker_locations(True)

I'm trying to apply this technic for IMU inverse kinematic to follow the coordinates of specific points (markers) but I didn't find any solution yet.

Anyone can help me please?

Regards,
Gilles

Re: How to get marker coordinates from motion file

Posted: Sun Nov 19, 2023 11:48 pm
by cathyjhl
hello, I had got same issue.

Maybe it can solve like this in opensim GUI.

first, load .trc(marker) file by 'file - Preview experimental Data' .

second, Right-click the load data on the side bar then the menu will pop up.

third, select the 'transform'
You can change the marker coordinates and then save the file.

I solved this problem like this, then I want It could be helpful for you.