How to get marker coordinates from motion file

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
conrado torres
Posts: 1
Joined: Fri Mar 20, 2020 11:41 am

How to get marker coordinates from motion file

Post by conrado torres » Thu Sep 07, 2023 2:52 pm

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

Tags:

User avatar
Gilles Dusfour
Posts: 2
Joined: Sat Jan 18, 2020 2:27 am

Re: How to get marker coordinates from motion file

Post by Gilles Dusfour » Sun Nov 19, 2023 11:16 am

Hello Conrado,

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

Regards,
Gilles

User avatar
Gilles Dusfour
Posts: 2
Joined: Sat Jan 18, 2020 2:27 am

Re: How to get marker coordinates from motion file

Post by Gilles Dusfour » Sun Nov 19, 2023 12:13 pm

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

User avatar
Jeuhee Lee
Posts: 2
Joined: Tue Aug 15, 2023 3:28 am

Re: How to get marker coordinates from motion file

Post by Jeuhee Lee » Sun Nov 19, 2023 11:48 pm

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.

POST REPLY