Hi sherm
actually, I already called getMultibodySystem().realize(state, SimTK::Stage::Dynamics);, but this error still happened.
Do you have any idea about the possible reasons?
thanks again,
jiang
Search found 132 matches
- Wed Apr 20, 2016 8:07 pm
- Forum: Simbody: SimTK multibody dynamics API
- Topic: what's the meaning of stage version
- Replies: 4
- Views: 196
- Wed Apr 20, 2016 11:49 am
- Forum: Simbody: SimTK multibody dynamics API
- Topic: what's the meaning of stage version
- Replies: 4
- Views: 196
what's the meaning of stage version
hi all,
I got the error " State Cache entry was out of date at Stage Dynamics. This entry depends on ver
ion 1 of Stage Dynamics but was last updated at version 0."
Does anyone know what "version 1 and 0" means?
Thanks in advance
Jiang
I got the error " State Cache entry was out of date at Stage Dynamics. This entry depends on ver
ion 1 of Stage Dynamics but was last updated at version 0."
Does anyone know what "version 1 and 0" means?
Thanks in advance
Jiang
- Tue Jan 19, 2016 11:09 pm
- Forum: Simbody: SimTK multibody dynamics API
- Topic: How Measure::Plus works
- Replies: 11
- Views: 406
Re: How Measure::Plus works
hi Sherm,
The examples are useful. I saved previous states by a handler, and Measurements in MultibodySystem1 is now one step ahead of that in Multibody system2. It seems that it works well now. Thank you for your help.
best regards,
jiang
The examples are useful. I saved previous states by a handler, and Measurements in MultibodySystem1 is now one step ahead of that in Multibody system2. It seems that it works well now. Thank you for your help.
best regards,
jiang
- Tue Jan 12, 2016 12:28 pm
- Forum: Simbody: SimTK multibody dynamics API
- Topic: How Measure::Plus works
- Replies: 11
- Views: 406
Re: How Measure::Plus works
Hi, Jiang. It usually doesn't matter much in which subsystem you put a Measure, as long as all the related measures are in the same one. The System itself provides a default Subsystem you can use for this purpose if you want. You can in fact use the System as though it were a Subsystem when definin...
- Tue Jan 12, 2016 11:28 am
- Forum: Simbody: SimTK multibody dynamics API
- Topic: How Measure::Plus works
- Replies: 11
- Views: 406
Re: How Measure::Plus works
hi sherm, Thanks for your rapid reply. You are right. It's my fault that I didn't describe my problem clearly. Measure A and B are in subsystem1, and C in subsystem2. Measure A and B are updated based on C. C is the plus of A and B. It likes a feedback loop where A and B are measured based on C in a...
- Tue Jan 12, 2016 2:27 am
- Forum: Simbody: SimTK multibody dynamics API
- Topic: How Measure::Plus works
- Replies: 11
- Views: 406
Re: How Measure::Plus works
Thanks, sherm. I am checking my measurement now. I wonder whether the calculation priority will affect the results. Now I have Measure A, Measure B and Measure C. Meaure A and B are independent. Measure C is the plus of Measure A and Measure B. Measure A and B should be conducted before Measure C,bu...
- Thu Jan 07, 2016 8:31 am
- Forum: Simbody: SimTK multibody dynamics API
- Topic: How Measure::Plus works
- Replies: 11
- Views: 406
Re: How Measure::Plus works
Hi sherm, Thanks for reply, I will have a check. I also have another question, which maybe stupid. Will CPU affect the results? I found the same program generate different results for old and new cpu. Seems that cpus which support AVX2 have high accuracy than those which are not supporting AVX2. Tha...
- Wed Jan 06, 2016 6:00 am
- Forum: Simbody: SimTK multibody dynamics API
- Topic: How Measure::Plus works
- Replies: 11
- Views: 406
How Measure::Plus works
hi all, I have some question about measurement. Given Measure A ,Measure B ,a State s and a subsystem system Delay measure of A and B are: Measure tmpPM_A=Delay(system,A,aDelay); Measure tmpPM_B=Delay(system,B,aDelay); Case1: double c1 = tmpPM_A.getValue(s)+tmpPM_A.getValue(s); Case2: Measure tmpPM ...
- Tue Jan 05, 2016 12:48 pm
- Forum: Simbody: SimTK multibody dynamics API
- Topic: Integrator step size
- Replies: 8
- Views: 347
Re: Integrator step size
Hi Sherm
Thank you for your reply. As you said, cache values are not initialized to NaN in release mode, which caused
the "Conditional jump or move depends on uninitialised value(s)" error in valgrind. Now my code works well.
Thanks again for your help
Jiang
Thank you for your reply. As you said, cache values are not initialized to NaN in release mode, which caused
the "Conditional jump or move depends on uninitialised value(s)" error in valgrind. Now my code works well.
Thanks again for your help
Jiang
- Tue Jan 05, 2016 11:52 am
- Forum: Simbody: SimTK multibody dynamics API
- Topic: Integrator step size
- Replies: 8
- Views: 347
Re: Integrator step size
hi sherm, I am still confused with the system initialization. Does method buildSystem() and initializeState() initialize the cache value such as Qdotdot, QdotError, Zdot, etc. before forward dynamics simulation? Seems that those values were not initialized before simulation even I disconnect all con...