Search found 53 matches
- Thu Nov 29, 2018 1:11 pm
- Forum: OpenSim
- Topic: Wrapping dimensions
- Replies: 2
- Views: 299
Re: Wrapping dimensions
Looks like the typical set functions for these components are not wrapped yet. You can get around this using the PropertyHelper: https://simtk.org/plugins/phpBB/viewtopicPhpbb.php?f=91&t=9609&p=0&start=0&view=' Should be similar in Python to the MATLAB example above^ https://simtk.org/plugins/phpBB/...
- Thu Nov 29, 2018 9:02 am
- Forum: OpenSim
- Topic: Extreme Muscle Forces
- Replies: 1
- Views: 470
Re: Extreme Muscle Forces - PLEASE HELP!!!
My first guess would have been that there was an issue with the data you imported to OpenSim. However, since you checked your joint moments from ID vs the literature that doesn't sound like it is the case. A couple ideas: 1) Are you using one of the default OpenSim models? Many times if you enable e...
- Thu Sep 20, 2018 5:44 am
- Forum: OpenSim
- Topic: Looking for an alternative function to addInStationForce in Matlab API.
- Replies: 2
- Views: 270
Re: Looking for an alternative function to addInStationForce in Matlab API.
I don't know all the details about what you are trying to do, but to transform a vector I think you can do the following in MATLAB: Frame has a method "findTransformBetween", you could use this to get the Transform between ground and your body Frame. Then Transform has the following methods you can ...
- Wed Sep 19, 2018 1:58 pm
- Forum: OpenSim
- Topic: getting full path for component in C++
- Replies: 3
- Views: 243
Re: getting full path for component in C++
Just an observation in case someone runs into issues with a similar setup for (Coordinate& coord : _model.updComponentList<Coordinate>()) { std::cout << coord.getAbsolutePathString() << std::endl; } will give a different result than using a non referenced Coordinate iterator or the getComponentList ...
- Wed Sep 19, 2018 2:24 am
- Forum: OpenSim
- Topic: getting full path for component in C++
- Replies: 3
- Views: 243
Re: getting full path for component in C++
Ok, thanks for clarifying.
Colin
Colin
- Tue Sep 18, 2018 3:07 am
- Forum: OpenSim
- Topic: getting full path for component in C++
- Replies: 3
- Views: 243
getting full path for component in C++
Hi all, I'm working on implementing a simulation tool in C++ (OpenSim 4.0) that treats coordinates in the model differently. So I have an .xml file with list properties of "Primary" coordinates and "Secondary" coordinates that I read in as strings. I need to get the value of each of the Secondary co...
- Thu Sep 13, 2018 6:48 am
- Forum: OpenSim
- Topic: IK Error: Incorrect number of keys
- Replies: 6
- Views: 845
Re: IK Error: Incorrect number of keys
Sorry forgot to post the file example:
- Thu Sep 13, 2018 6:45 am
- Forum: OpenSim
- Topic: IK Error: Incorrect number of keys
- Replies: 6
- Views: 845
Re: IK Error: Incorrect number of keys
Check that the line in the .trc file that gives the meta data values (line 3 in example below) is separated by tabs and not spaces. I'm guessing you have one pair that has a space in between the values instead of a tab. Most text editors have an option "View Whitespace" etc that will show you tabs v...
- Fri May 25, 2018 6:34 am
- Forum: OpenSim
- Topic: Posing a Model from coordinates in IK motion file
- Replies: 2
- Views: 600
Re: Posing a Model from coordinates in IK motion file
So just to clarify an issue I have had with SimTK::VectorView in C++ for a long time and now I think I finally understand: If q_matrix is a SimTK::Matrix, then ~q_matrix will return a SimTK::VectorView. In the visual studio IDE if you try to use the SimTK::VectorView in a function that is expecting ...
- Fri May 25, 2018 12:22 am
- Forum: OpenSim
- Topic: Posing a Model from coordinates in IK motion file
- Replies: 2
- Views: 600
Posing a Model from coordinates in IK motion file
Hi All, No need to respond to this, just wanted to repost here so that the answers are searchable for others with similar questions. I am trying to read in the results from an IK file, then set the coordinates and generalized speeds in the model. The issue I am having is that I have the IK results i...