Search found 41 matches
- Fri Jul 28, 2017 1:30 am
- Forum: OpenSim
- Topic: getForceAtTime
- Replies: 14
- Views: 2984
Re: getForceAtTime
i even tried "force=foot1.PrescribedForce.getRecordValues(s2);": "No constructor 'org.opensim.modeling.PrescribedForce' with matching signature found." The code foot1.PrescribedForce doesn't seem to make sense. foot1 is of type Model; what comes after the period must be a method in the Model class ...
- Thu Jul 27, 2017 4:50 am
- Forum: OpenSim
- Topic: getForceAtTime
- Replies: 14
- Views: 2984
Re: getForceAtTime
hi, thank you for your patience. unfortunately this approach does not work for my purpose since through FD i get the results printed somewhere and then i have to load them from directory which becomes a post-simulation (at least sounds like this to me). before that, i could use state objects, initia...
- Thu Jul 27, 2017 1:46 am
- Forum: OpenSim
- Topic: getForceAtTime
- Replies: 14
- Views: 2984
Re: getForceAtTime
hi,
i have added some codes in fig.1 and the forcereporter builds an empty file as attached in fig.2.
regards
Shayan
i have added some codes in fig.1 and the forcereporter builds an empty file as attached in fig.2.
![Crying or Very Sad :cry:](./images/smilies/icon_cry.gif)
regards
Shayan
- Thu Jul 27, 2017 12:37 am
- Forum: OpenSim
- Topic: getForceAtTime
- Replies: 14
- Views: 2984
Re: getForceAtTime
hi,
thank you for your reply. i run the same files even changing the names, and there were no problems.i don't really know what goes wrong there. anyway, i try the force reporter and in case i have difficulties i will come back to you.
regards
Shayan
thank you for your reply. i run the same files even changing the names, and there were no problems.i don't really know what goes wrong there. anyway, i try the force reporter and in case i have difficulties i will come back to you.
regards
Shayan
- Wed Jul 26, 2017 10:12 pm
- Forum: OpenSim
- Topic: getForceAtTime
- Replies: 14
- Views: 2984
Re: getForceAtTime
hi,
thank you for your reply. i have uploaded the model. the force is applied.
regards
Shayan
thank you for your reply. i have uploaded the model. the force is applied.
![Confused :?](./images/smilies/icon_e_confused.gif)
regards
Shayan
- Wed Jul 26, 2017 9:48 pm
- Forum: OpenSim
- Topic: getForceAtTime
- Replies: 14
- Views: 2984
Re: getForceAtTime
hi, thank you very much for your reply. still i am getting zero as for the force. does this zero indicate that the force is not applied? or is it enough that i append the force once and put only the manager.integrate in the for loop? if i understand right, i have to realize the system for dynamics? ...
- Wed Jul 26, 2017 7:33 am
- Forum: OpenSim
- Topic: getForceAtTime
- Replies: 14
- Views: 2984
getForceAtTime
hi, i have uploaded an .m file which loads a model simulates it only by gravity and with a very in accurate strategy extract something called settletime (when the objects is somehow standing still). when the settletime is achieved, a prescribed force is added which starts applying the force from a b...
- Tue Jul 25, 2017 2:23 pm
- Forum: OpenSim
- Topic: simulation
- Replies: 11
- Views: 1500
Re: simulation
hi,
is there any way to use eventhandler in matlab? since i studied the provided example and it created a class derived from the HandleEvent.
regards
Shayan
is there any way to use eventhandler in matlab? since i studied the provided example and it created a class derived from the HandleEvent.
regards
Shayan
- Tue Jul 18, 2017 4:41 am
- Forum: OpenSim
- Topic: Opening .sto files in MATLAB
- Replies: 8
- Views: 648
Re: Opening .sto files in MATLAB
hi, i have carried out a pointkinematics and a part of my results are attached. my concern is time steps. is there any way to get times with a certain time step in .mot or .sto files. what i mean is, the time is not uniformly stated here. i am trying to have time recordings like from 0, 0.1, 0.2,......
- Thu Jul 13, 2017 1:27 pm
- Forum: OpenSim
- Topic: Explanation of Sky Higher Source Code
- Replies: 1
- Views: 204
Explanation of Sky Higher Source Code
hi, on "http://simtk-confluence.stanford.edu:8080/display/OpenSim/Explanation+of+Sky+Higher+Source+Code" there is code to get the velocity of center of mass: " Vec3 COM_velocity = osimModel.getMultibodySystem().getMatterSubsystem().calcSystemMassCenterVelocityInGround(osimState);" and on "http://sim...