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
How to can change the axis origin and orientation?
- Bruno Gallo
- Posts: 1
- Joined: Fri Feb 24, 2012 11:49 am
Re: How to can change the axis origin and orientation?
Can you please explain further?
- KATHLEEN BALFOUR
- Posts: 9
- Joined: Fri Feb 05, 2016 7:19 pm
Re: How to can change the axis origin and orientation?
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
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
- Nirav Maniar
- Posts: 32
- Joined: Tue May 12, 2015 11:03 pm
Re: How to can change the axis origin and orientation?
Hi Kathleen,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
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
- KATHLEEN BALFOUR
- Posts: 9
- Joined: Fri Feb 05, 2016 7:19 pm
Re: How to can change the axis origin and orientation?
Hey Nirav,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
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.
- Nirav Maniar
- Posts: 32
- Joined: Tue May 12, 2015 11:03 pm
Re: How to can change the axis origin and orientation?
Hey Kathleen,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.
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
- Guanxin Jiang
- Posts: 8
- Joined: Fri Mar 18, 2016 5:40 am
Re: How to can change the axis origin and orientation?
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
THX
- KATHLEEN BALFOUR
- Posts: 9
- Joined: Fri Feb 05, 2016 7:19 pm
Re: How to can change the axis origin and orientation?
Nirav,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
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?
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
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