Search found 20 matches
- Wed Aug 30, 2017 10:53 am
- Forum: OpenSim
- Topic: What do getPositionInGround and getRotationInGround return?
- Replies: 13
- Views: 2455
Re: What do getPositionInGround and getRotationInGround return?
Thanks, I'll take a look. Unfortunately I'm not very well-versed in C++ which is why I'm working in MATLAB to begin with. At some point I'll bite the bullet and convert the code to C++...
- Wed Aug 30, 2017 7:40 am
- Forum: OpenSim
- Topic: What do getPositionInGround and getRotationInGround return?
- Replies: 13
- Views: 2455
Re: What do getPositionInGround and getRotationInGround return?
Chris - Bringing this thread back to life. I've played around with some of you suggestions, and am still running into issues visualizing everything correctly. I have a MATLAB demo zipped up and posted here if you have a chance to take a look, although it requires you have the 4.0 MATLAB API set up: ...
- Sun Aug 13, 2017 10:27 am
- Forum: OpenSim
- Topic: What do getPositionInGround and getRotationInGround return?
- Replies: 13
- Views: 2455
Re: What do getPositionInGround and getRotationInGround return?
Thanks so much for response, I will play around with some of your ideas and let you know how it goes. To answer some of your questions, I was planning on using the global frame for each state, just because that is how I am used to operating in Unity. Also, I'm using MATLAB right now as I'm more comf...
- Thu Aug 10, 2017 8:50 pm
- Forum: OpenSim
- Topic: What do getPositionInGround and getRotationInGround return?
- Replies: 13
- Views: 2455
Re: What do getPositionInGround and getRotationInGround return?
Thanks for the responses! What I'm trying to do is visualize the OpenSim model in Unity, which I'll eventually use to build a Hololens app. My thought process was that I could convert all geometries attached to each body from .vtp to .blend which is accepted by unity, then use the getTranformInGroun...
- Thu Aug 10, 2017 5:55 pm
- Forum: OpenSim
- Topic: What do getPositionInGround and getRotationInGround return?
- Replies: 13
- Views: 2455
Re: What do getPositionInGround and getRotationInGround return?
They are methods for the body class but are new to the 4.0 AP I. Actually it is getTranformInGround instead of getRotationInGround, was going from memory.
- Thu Aug 10, 2017 2:18 pm
- Forum: OpenSim
- Topic: What do getPositionInGround and getRotationInGround return?
- Replies: 13
- Views: 2455
What do getPositionInGround and getRotationInGround return?
Hi all, Just wanted to clarify, when working with the 4.0 API, do these methods return the translations and rotations of the geometry file with respect to the CAD space of the VTP file? As for the rotation, what is the origin, (0,0,0)? Otherwise, if the origin based on the geometric center of the ge...
- Thu Jul 27, 2017 11:23 am
- Forum: OpenSim
- Topic: Loading Model Kinematics with OpenSim 4.0 MATLAB API
- Replies: 3
- Views: 1029
Re: Loading Model Kinematics with OpenSim 4.0 MATLAB API
This worked, thank you very much.
-CP
-CP
- Thu Jul 27, 2017 11:23 am
- Forum: OpenSim
- Topic: Retrieve Visible Object Files Attached to Body Objects in MATLAB 4.0 API
- Replies: 2
- Views: 245
Re: Retrieve Visible Object Files Attached to Body Objects in MATLAB 4.0 API
Worked like a charm, thanks Tom.
-CP
-CP
- Wed Jul 26, 2017 1:24 pm
- Forum: OpenSim
- Topic: Loading Model Kinematics with OpenSim 4.0 MATLAB API
- Replies: 3
- Views: 1029
Loading Model Kinematics with OpenSim 4.0 MATLAB API
Hi all, I'm working on post-processing some simulation results in MATLAB, and I need to load in some previously run simulations. Right now my workflow is to load and initialize the .osim model, then read in the .mot file using a generic MATLAB parse command, loop through and update model coordinates...
- Wed Jul 26, 2017 1:16 pm
- Forum: OpenSim
- Topic: Retrieve Visible Object Files Attached to Body Objects in MATLAB 4.0 API
- Replies: 2
- Views: 245
Retrieve Visible Object Files Attached to Body Objects in MATLAB 4.0 API
Hello, I am working on some MATLAB code which uses the OpenSim 4.0 API to read in an existing model, but I can't figure out how to get the visible object files associated with each body. Right now I have: % Import opensim classes import org.opensim.modeling.* % Read in model from file model_file = '...