Search found 45 matches

by Marc Carmichael
Fri May 20, 2011 9:12 am
Forum: OpenSim
Topic: Point constraint on curved surface?
Replies: 1
Views: 136

Point constraint on curved surface?

<r>Hi. I am hoping to create a constraint that constrains the point of one body to a curved surface defined in another body. The surface is an ellipsoid.<br/> <br/> I have been reading the documentation but I get the feeling that this will not be easy to implement in OpenSim. Would it be possible to...
by Marc Carmichael
Sun Feb 27, 2011 11:05 pm
Forum: OpenSim
Topic: calculate system mass matrix via api
Replies: 3
Views: 246

RE: calculate system mass matrix via api

<r>I just noticed that the SimTK doxygen documentation on the OpenSim page appears out of date.<br/> <br/> If I search for the latest SimTK documentation I can find a few new functions. The one of interest to me is SimTK::SimbodyMatterSubsystem::calcM() which appears to explicitly calculate the nXn ...
by Marc Carmichael
Sun Feb 27, 2011 10:37 pm
Forum: OpenSim
Topic: model "snap shot" of a single state via API
Replies: 1
Views: 205

model "snap shot" of a single state via API

<r>Hello everyone. For anyone who has read my threads before you may have noticed I typically use opensim via the API for what may be considered "unintended uses". Because of this I often have off topic questions, and I apologize because here is another one <E>:)</E><br/> <br/> <br/> I wish to take ...
by Marc Carmichael
Wed Feb 16, 2011 12:06 pm
Forum: OpenSim
Topic: calculate system mass matrix via api
Replies: 3
Views: 246

calculate system mass matrix via api

<r>Hi. I am looking to use the opensim API to calculate the mass matrix of the musculoskeletal rigid body system. When I say the mass matrix, I mean the square matrix which when multiplied by a vector of generalized coordinate accelerations computes the joint inertial torques<br/> <br/> ie. M*qdd = ...
by Marc Carmichael
Mon Feb 07, 2011 9:29 pm
Forum: OpenSim
Topic: point velocity not obeying constraint - bug?
Replies: 4
Views: 241

RE: point velocity not obeying constraint - bug?

<t>Just a quick follow up question. What is the effect of the cTol value in the function projectConfigurationToSatisfyConstraints(SimTK::State & s, const double cTol) ?<br/> <br/> Does having a smaller value tighten the constraints, ie force the model to better meet the constraints at the expens...
by Marc Carmichael
Wed Jan 26, 2011 6:21 pm
Forum: OpenSim
Topic: point velocity not obeying constraint - bug?
Replies: 4
Views: 241

RE: point velocity not obeying constraint - bug?

Thanks Ajay. I tried projectConfigurationToSatisfyConstraints() and it worked!! Brilliant

Cheers

Marc
by Marc Carmichael
Sun Jan 23, 2011 6:02 pm
Forum: OpenSim
Topic: point velocity not obeying constraint - bug?
Replies: 4
Views: 241

point velocity not obeying constraint - bug?

<t>Hello,<br/> <br/> I am using the API to calculate the linear/angular velocity of a point in a body. In a certain model pose the values opensim returns are incorrect and I am wondering if it is a bug. Perhaps my implementation is incorrect.<br/> <br/> I set the model state by setting generalized c...
by Marc Carmichael
Fri Jan 21, 2011 12:28 am
Forum: OpenSim
Topic: muscle singularity problem
Replies: 1
Views: 141

RE: muscle singularity problem

<r>Hey all, I want to re bump this thread because I previously created a work around for the problem, but it has come back to bite me <E>:)</E><br/> <br/> The problem is I calculate a models kinematic Jacobian (the relationship between the Cartesian linear/angular velocity of a point in a body again...
by Marc Carmichael
Mon Nov 29, 2010 6:13 pm
Forum: OpenSim
Topic: Improving moment arm calculation speed
Replies: 5
Views: 189

RE: Improving moment arm calculation speed

<r>Thanks Ayman, I tried the new Linux distribution and it works fine.<br/> <br/> I calculated the muscle moment-arm matrix for the upper limb model for 50 muscles over 7 joints. In version 2.0.2 it took 2110ms and in 2.2.0 it took only 1120ms. This is a significant decrease but I was still hoping i...
by Marc Carmichael
Sun Nov 28, 2010 11:51 pm
Forum: OpenSim
Topic: OpenSim2.2.0 API "isConstrained()" error
Replies: 1
Views: 105

OpenSim2.2.0 API "isConstrained()" error

<t>Hi, I have upgraded to 2.2.0 and I am having a segmentation fault. I wrote a matlab mex function for get model data from OpenSim. Now when I link to the new libraries I get a segmentation fault when I run the function:<br/> <br/> if (osimModel.getCoordinateSet().get(0).isConstrained() == 0)<br/> ...