Search found 7 matches

by Maarten Afschrift
Thu Jun 20, 2019 6:33 am
Forum: OpenSense
Topic: MatLab example
Replies: 4
Views: 1206

Re: MatLab example

Hi,

My guess is that there is a problem with the configuration of the OpenSim API in Matlab. Did you run the configureOpenSim.m as adiminstrator and do you have the opensim bin folder in your path ?

Maarten
by Maarten Afschrift
Sun Jan 08, 2017 9:25 am
Forum: OpenSim
Topic: get position segment in Controller (ComputeControls)
Replies: 2
Views: 441

Re: get position segment in Controller (ComputeControls)

Hi Dimitar,

Thanks for you response.
Indeed, the problems originated in this line:

Code: Select all

const OpenSim::Body& body_sel = getModel().getBodySet().get("calcn_l");
Thanks,
Maarten
by Maarten Afschrift
Sun Jan 08, 2017 3:05 am
Forum: OpenSim
Topic: get position segment in Controller (ComputeControls)
Replies: 2
Views: 441

get position segment in Controller (ComputeControls)

Hi, I want to acces the position of a specific body inside the computeControls function of my controller class. I tried this as follows void COM_MuscleController::computeControls(const SimTK::State& s, SimTK::Vector& controls) const { OpenSim::Body body_sel = getModel().getBodySet().get("calcn_l"); ...
by Maarten Afschrift
Fri Dec 23, 2016 6:46 am
Forum: OpenSim
Topic: inertia properties problem with CMC
Replies: 6
Views: 1037

Re: inertia properties problem with CMC

Hi Mojtaba, You could try Friedl her method for solving the muscle redundancy problem ( https://simtk.org/projects/optcntrlmuscle/ ). This direct collocation method does not invert the mass matrix. But be carefull, we have only tried it for the lower limb muscles during walking and running. regards,...
by Maarten Afschrift
Mon Mar 24, 2014 9:50 am
Forum: OpenSim
Topic: Calculate COM acceleration
Replies: 1
Views: 290

Calculate COM acceleration

Dear Opensim users, I would like to use the position, velocity and acceleration of my model as input for a controller. Inside my controller class, I’m able to calculate the position and velocity of the whole body COM. (s = state) --- SimTK::Vec3 com_position =getModel().calcMassCenterPosition(s); --...
by Maarten Afschrift
Wed Jun 12, 2013 2:39 am
Forum: OpenSim
Topic: Implementation of CMC using MATLAB API
Replies: 10
Views: 2680

Re: Implementation of CMC using MATLAB API

Hello,

I think you should first make an ArrayStr from the path, since SetForceSetFile requires an ArrayStr as input.
Maybe this works:

cmcTool.setForceSetFiles(ArrayStr([residualMotorsFilePath residualMotors]))

But I'm also a first time user of Opensim (this could be wrong).

Maarten,
by Maarten Afschrift
Thu Jun 06, 2013 11:55 pm
Forum: OpenSim
Topic: Change location pointactuator (Matlab API)
Replies: 1
Views: 511

Change location pointactuator (Matlab API)

Dear Opensim Users, I’ve a question with regards to defining a pointactuator through the matlab API. After scaling of the model, I want to adjust the location of the residual actuators in the actuator file . As you can see in the functions below, I search for the location of the COM of the pelvis in...