Search found 132 matches

by Jiang Ping
Wed Aug 05, 2015 10:12 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Is CMAES optimizer working well?
Replies: 12
Views: 1236

Re: Is CMAES optimizer working well?

hi,

Thanks again for your reply.
I deleted all mutable variables but the code still hang. I tried to locate where it get stuck and found it continued doing some update of Delay Measure data.
by Jiang Ping
Tue Aug 04, 2015 6:05 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Is CMAES optimizer working well?
Replies: 12
Views: 1236

Re: Is CMAES optimizer working well?

hi, Thanks for the rapid reply. I have run several times and the code hanged after 20-50 iterations(Each time is different). I used a mutable variable to record the optimization steps. To keep thread safe, I created mutex to avoid modifying it by different threads. now I declared them in global scop...
by Jiang Ping
Tue Aug 04, 2015 3:43 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Is CMAES optimizer working well?
Replies: 12
Views: 1236

Is CMAES optimizer working well?

hi all,

I am using CMAES optimizer to optimize my objective function.
If I didnt run it by multithread, it would work well, but get stuck after several steps when I enable multithread option.
Anyone has meet the similar problem?

thanks in advance,
jiang
by Jiang Ping
Tue Jul 21, 2015 8:59 pm
Forum: OpenSim
Topic: about LogManager
Replies: 3
Views: 913

about LogManager

hi, OpenSim api c++ exe. application will generate a output.txt file. This is realized by redirect cout to both standard and txt file. Is it possible to let it not output result to a txt.file or change the output directory of it? Is there any method in LogManager class to realize it? thanks in advan...
by Jiang Ping
Thu Jul 16, 2015 7:16 am
Forum: OpenSim
Topic: force vectors
Replies: 5
Views: 313

Re: force vectors

Thanks Jiang as always, I will look into the documentation. Hope this acceleration includes the linear and rotational values. Jiang, I have a construction of a body A welded to body B, and I want to find the force vectors on body B's com. So if I multiply the the mass of body B with the acceleratio...
by Jiang Ping
Thu Jul 16, 2015 6:33 am
Forum: OpenSim
Topic: force vectors
Replies: 5
Views: 313

Re: force vectors

There are some functions in SimBodyEngine class to get force, kinematics information like:

void OpenSim::SimbodyEngine::getAcceleration
(const SimTK::State & s,
const OpenSim::Body & aBody,
const SimTK::Vec3 & aPoint,
SimTK::Vec3 & rAcc ) const

Please check OpenSim Doxygen.

best regards,
jiang
by Jiang Ping
Thu Jun 25, 2015 11:56 pm
Forum: OpenSim
Topic: Constraints part:2
Replies: 3
Views: 349

Re: Constraints part:2

Also some small problems of your code


int re = 6; should be double re=6*SimTK::PI/180
int tf = osimState.getTime(); should be double tf=osimState.getTime();
if (tf=finalTime) should be if(tf==finalTime) or if(fabs(tf-finalTime)<1.0e-6)
by Jiang Ping
Thu Jun 25, 2015 11:43 pm
Forum: OpenSim
Topic: Constraints part:2
Replies: 3
Views: 349

Re: Constraints part:2

Your purpose is unclear. If you wanted Coordinate B to keep constant all the time during simulation, why not add constraint to B in the model, and then minimize the constraint force of it? If you just wanted Coordinate B to be a constant value at the final time of simulation, constraints[0] = codB.g...
by Jiang Ping
Wed Apr 22, 2015 2:41 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: [Solved]No entrance point for BallRollingOnPlane constraint?
Replies: 1
Views: 87

Re: No entrance point for BallRollingOnPlane constraint?

Sorry for the trouble.

I found OpenSim::RollingOnSurfaceConstraint in OpenSim which has almost same
function as that in SimTK.
by Jiang Ping
Wed Apr 22, 2015 2:11 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: [Solved]No entrance point for BallRollingOnPlane constraint?
Replies: 1
Views: 87

[Solved]No entrance point for BallRollingOnPlane constraint?

hi all,

i want to implement a ballRollingOnPlane constraint between feet and the ground.
But I found there is no entry point for this class in OpenSim_SimTKsimbody.dll.
Is it available in the newest version and shall i build the new one to substitute one in opensim?

best regards,
jiang