Search found 6 matches

by Patrick Laurin
Sun Oct 28, 2018 6:56 pm
Forum: OpenSim
Topic: Scale Tool: Manually setting marker weights (3.3)
Replies: 3
Views: 558

Re: Scale Tool: Manually setting marker weights (3.3)

My code works if I instantiate the ScaleTool class using the overloaded constructor that asks for a .xml scale file. Are there any methods I can use to generate that file in C++?
by Patrick Laurin
Fri Oct 26, 2018 9:16 am
Forum: OpenSim
Topic: Scale Tool: Manually setting marker weights (3.3)
Replies: 3
Views: 558

Re: Scale Tool: Manually setting marker weights (3.3)

Here is my entire code: Model myModel = Model::Model(osimFullFilePath, true); State myState = myModel.initSystem(); ScaleTool scaleTool = ScaleTool(); scaleTool.getGenericModelMaker().setModelFileName(osimFullFilePath); Array <double> TimeArray; TimeArray.set(0, 0.0); TimeArray.set(1, 0.0); scaleToo...
by Patrick Laurin
Fri Oct 26, 2018 8:58 am
Forum: OpenSim
Topic: Scale Tool: Manually setting marker weights (3.3)
Replies: 3
Views: 558

Scale Tool: Manually setting marker weights (3.3)

Hi, I've been trying to make the scale tool work within my c++ code. I've managed to make a simple example work by feeding an OpenSim generated scale file (.xml) to the Scale Tool. This scale file loads the .trc and applies correctly to the .osim model. Now, I had to remove that .xml scale file depe...
by Patrick Laurin
Wed May 09, 2018 11:19 am
Forum: OpenSim
Topic: Method Coordinate::isDependent(const SimTK::State& s) segfault
Replies: 4
Views: 176

Re: Method Coordinate::isDependent(const SimTK::State& s) segfault

Oh gosh... Sorry for wasting your time. Thank you very much though.


Patrick Laurin
by Patrick Laurin
Wed May 09, 2018 11:02 am
Forum: OpenSim
Topic: Method Coordinate::isDependent(const SimTK::State& s) segfault
Replies: 4
Views: 176

Re: Method Coordinate::isDependent(const SimTK::State& s) segfault

Hi, I'm using OpenSim Release 3.3.0-win64VC13P on a C++ interface. I'll simplify my code to keep the major parts. Maybe there's some additional initialization required? Here's a simplified version of my OpenSim model parser. #include <OpenSim\OpenSim.h> #include <OpenSim\Common\PropertyObjPtr.h> #in...
by Patrick Laurin
Wed May 09, 2018 9:24 am
Forum: OpenSim
Topic: Method Coordinate::isDependent(const SimTK::State& s) segfault
Replies: 4
Views: 176

Method Coordinate::isDependent(const SimTK::State& s) segfault

Hi, I've been using the OpenSim API for a while, but the method Coordinate::isDependent(const SimTK::State& s) segfaults because it can't find the definition for the method get_is_free_to_satisfy_constraints() . By doing a quick search, get_is_free_to_satisfy_constraints() is defined in the OpenSim ...