Page 1 of 1
How to can change the axis origin and orientation?
Posted: Fri Jun 03, 2016 7:02 am
by brunuzzu
Hello everyone!
I'm a newbye of Opensim...and I'm working with Opensim for my thesys with a copy of arm26 model.
How I must do for change the main axis origin in a model?
Thank you
Re: How to can change the axis origin and orientation?
Posted: Wed Jun 08, 2016 4:53 pm
by jimmy
Can you please explain further?
Re: How to can change the axis origin and orientation?
Posted: Tue Jul 05, 2016 9:59 am
by kcbalfou
I think I have a similar question!
I am working with Cortex which captures our data in a different orientation. To transform into OpenSim we are going into the files and changing the Z values into the Y columns, and Y values into -Z columns. The X is the same for both OpenSim and Cortex.
Is there an easier way to do this in OpenSim? Are we able to change the orientation so we do not have to manually edit our captured data?
Thank you
Kathleen
Re: How to can change the axis origin and orientation?
Posted: Sun Jul 10, 2016 12:03 am
by kneerav
kcbalfou wrote:I think I have a similar question!
I am working with Cortex which captures our data in a different orientation. To transform into OpenSim we are going into the files and changing the Z values into the Y columns, and Y values into -Z columns. The X is the same for both OpenSim and Cortex.
Is there an easier way to do this in OpenSim? Are we able to change the orientation so we do not have to manually edit our captured data?
Thank you
Kathleen
Hi Kathleen,
You can try this in the OpenSim GUI:
1. File > Preview Experimental Data > Then select your relevant trc file (or mot files for GRFs). In the view window, you should now be able to see your experimental marker motion.
2. In the Navigator window, find "ExperimentalData_0" and click the + drop down (you should see the name of the trc file you selected)
3. Right click on this and select transform. You can keep changing axis until the motion (which you can visualise in the view window) conforms to OpenSim requirements.
Cheers,
Nirav
Re: How to can change the axis origin and orientation?
Posted: Mon Jul 11, 2016 12:50 pm
by kcbalfou
kneerav wrote:
Hi Kathleen,
You can try this in the OpenSim GUI:
1. File > Preview Experimental Data > Then select your relevant trc file (or mot files for GRFs). In the view window, you should now be able to see your experimental marker motion.
2. In the Navigator window, find "ExperimentalData_0" and click the + drop down (you should see the name of the trc file you selected)
3. Right click on this and select transform. You can keep changing axis until the motion (which you can visualise in the view window) conforms to OpenSim requirements.
Cheers,
Nirav
Hey Nirav,
This sounds like the perfect thing for me. However, I am having issues getting from step 1 to step 2. Whenever i add a .trc file I get an error "Couldn't load data and/or model for display. Possible reasons: data file as incorrect format or resource file _openSimlab.osim missing". I don't believe my file has an incorrect format because I have used it OpenSim before.
When I use a .mot for Preview Experimental Data no new model appears.
Re: How to can change the axis origin and orientation?
Posted: Mon Jul 11, 2016 5:58 pm
by kneerav
kcbalfou wrote:
Hey Nirav,
This sounds like the perfect thing for me. However, I am having issues getting from step 1 to step 2. Whenever i add a .trc file I get an error "Couldn't load data and/or model for display. Possible reasons: data file as incorrect format or resource file _openSimlab.osim missing". I don't believe my file has an incorrect format because I have used it OpenSim before.
When I use a .mot for Preview Experimental Data no new model appears.
Hey Kathleen,
When you preview experimental data, you will not see a model at all. Depending on whether it is a marker (trc) file or a GRF (mot) file, you will see only the markers or GRF (green arrow) when you play the file after it has been loaded.
The error you have mentioned can, in my experience, be overcome by running OpenSim as an administrator. So next time you go to open OpenSim, right click on the icon and select "run as administrator". Then retry the steps I outlined. Let me know if this does or does not work.
Cheers,
Nirav
Re: How to can change the axis origin and orientation?
Posted: Fri Jul 15, 2016 1:06 am
by guanxinjiang
Hello, I met kind of similiar questions. I am a starter in OpenSim and i try to modify the arm26 model in my bachelor thesis. I mean in the original model, when the forearm does flexion movement, the axis in the elbow is fixed. Right now i want to modify it into unfixed axis when the arm does flexion and extension. How can i do it? Is there any way i can edit a changable axis in the osim file?
THX
Re: How to can change the axis origin and orientation?
Posted: Tue Jul 19, 2016 11:05 am
by kcbalfou
kneerav wrote:
Hey Kathleen,
When you preview experimental data, you will not see a model at all. Depending on whether it is a marker (trc) file or a GRF (mot) file, you will see only the markers or GRF (green arrow) when you play the file after it has been loaded.
The error you have mentioned can, in my experience, be overcome by running OpenSim as an administrator. So next time you go to open OpenSim, right click on the icon and select "run as administrator". Then retry the steps I outlined. Let me know if this does or does not work.
Cheers,
Nirav
Nirav,
I got it! It works great. I am still having intermittent issues with that same error. I have tried running the program as an admin, and I know I have the opensimlab.osim file. So I am unsure why I keep getting the error. However, one time I was able to correctly transform my data!
Thank you!
Kathleen
Re: How to can change the axis origin and orientation?
Posted: Wed Jul 20, 2016 10:22 am
by jimmy
Kathleen and Nirav,
Could you possibly start a new forum thread. Your discussion, which is great, does not relate to the original question. You are dealing with changing the global orientation of the data, which is not related to editing the axis of a joint.
However, to answer your question. Most people have Matlab code that performs this rotation for them. You can find community code
here.
Thanks
-J