Search found 8 matches

by li haoran
Mon Aug 13, 2018 7:00 pm
Forum: OpenSim
Topic: applyForceToPoint()
Replies: 1
Views: 158

applyForceToPoint()

Hello everyone! I want to use the applyForceToPoint() function in the OpenSim::Force class. First I override the virtual functions clone() and getConcreteClassName() in the Force class. However, when I instantiate the object, the program reports an error saying that clone() and getConcreteClassName(...
by li haoran
Fri Aug 10, 2018 11:52 pm
Forum: OpenSim
Topic: Exception
Replies: 4
Views: 329

Re: Exception

If you find that you're in need of a const_cast, it usually means you're not using the API the way it was designed (in which case Exceptions and undefined behavior should be expected). I recommend looking at the ToyReflexController example here: https://github.com/opensim-org/opensim-core/tree/1972...
by li haoran
Thu Aug 09, 2018 7:28 pm
Forum: OpenSim
Topic: Exception
Replies: 4
Views: 329

Re: Exception

The Exceptions indicate that, while initializing the integrator, Simbody was attempting to perform a calculation that requires dynamics-level quantities but quantities had not been computed beyond the velocity level. It is difficult to determine the underlying issue or make any suggestions without ...
by li haoran
Tue Aug 07, 2018 12:58 am
Forum: OpenSim
Topic: Exception
Replies: 4
Views: 329

Exception

Hello,everyone! When I run my project, it always throws an exception as follows: SimTK Exception thrown at Integrator.cpp:431: Integrator initialization failed apparently because: SimTK Exception thrown at Subsystem.cpp:329: Excepted stage to be at least Dynamics in Subsystem::Guts::realizeSubsystem...
by li haoran
Sat Aug 04, 2018 12:53 am
Forum: OpenSim
Topic: about setActivation
Replies: 1
Views: 171

about setActivation

Hello everybody, i'm trying to set activation of tib_ant_r. My code looks like this: Model anklemodel = Model("../model/Mysubject041.osim"); anklemodel.getMuscles().get(8).setActivation(s, tmp); When I debug the code, I always get an error :The qualifier is discarded when a reference to a type "SimT...
by li haoran
Mon Jul 16, 2018 8:01 pm
Forum: OpenSim
Topic: how to get the ankle angle?
Replies: 1
Views: 176

how to get the ankle angle?

i am new in opensim!
Now there is a human musculoskeletal model. How can I get the ankle angle in the model in visual studio2017?
by li haoran
Thu Jul 05, 2018 11:46 pm
Forum: OpenSim
Topic: About building a model
Replies: 3
Views: 283

Re: About building a model

Thank youfor your reply! But you misunderstood what I meant. Now, there are two different .osim files. As mentioned above, one model file name is osimModel and the other model file name is ankleModel. I want to merge them into a model file in visual studiio 2017, but I don't know how to do it.
by li haoran
Thu Jul 05, 2018 6:38 am
Forum: OpenSim
Topic: About building a model
Replies: 3
Views: 283

About building a model

In the beginning, I opened a model file in visual studio2017, then created a model, how to export the two model files to an .osim file.As shown below: Model osimModel; osimModel.setName("osimModel"); osimModel.setUseVisualizer(true); OpenSim::Model ankleModel = Model("../model/model/Mysubject04.osim...