Speeding up hinge

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Speeding up hinge

Postby JoeWright2 » Tue Aug 11, 2015 10:16 am

Long time no post (had to create a new account...)

How can I speed up the movement of CustomHingeActuator? Beyond 0.3 rad/s on my model it starts to significantly fall behind. I've tried commenting out the bit with NewtonUserJointSetRowAcceleration in it but that didn't help much.

Thanks, Joe

PS - I got a quadruped to walk through evolution. Now on to bipeds
JoeWright2
 
Posts: 14
Joined: Tue Aug 11, 2015 10:13 am

Re: Speeding up hinge

Postby Julio Jerez » Tue Aug 11, 2015 10:54 am

are you using 3.14?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Speeding up hinge

Postby JoeWright2 » Tue Aug 11, 2015 11:08 am

Hi yes. Slight error, make that 0.6 rad/s
JoeWright2
 
Posts: 14
Joined: Tue Aug 11, 2015 10:13 am

Re: Speeding up hinge

Postby Julio Jerez » Tue Aug 11, 2015 11:17 am

Ah, can you try the Skelton joint wrapper, check out the StandardJoints demo,
try that see if it is better.
first sync, I just fixe a problem with that solver.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Speeding up hinge

Postby JoeWright2 » Tue Aug 11, 2015 3:19 pm

Hi, I added this:

Code: Select all
   NewtonSkeletonContainer* const skeleton = NewtonSkeletonContainerCreate(mWorld, main_body, NULL);
   NewtonSkeletonContainerAttachBone(skeleton, leg0_upper, main_body);
   NewtonSkeletonContainerAttachBone(skeleton, leg0_lower, leg0_upper);
   NewtonSkeletonContainerAttachBone(skeleton, leg1_upper, main_body);
   NewtonSkeletonContainerAttachBone(skeleton, leg1_lower, leg1_upper);
   NewtonSkeletonContainerFinalize(skeleton);


but it crashed at

Code: Select all
            dgInt32 index = ((row->m_lowerBoundFrictionCoefficent < dgFloat32(-1.0e10f)) && (row->m_upperBoundFrictionCoefficent > dgFloat32(1.0e10f))) ? 0 : 1;


with row holding some unreadable members.

Joe
JoeWright2
 
Posts: 14
Joined: Tue Aug 11, 2015 10:13 am

Re: Speeding up hinge

Postby Julio Jerez » Tue Aug 11, 2015 3:25 pm

yes I forget to check the bug fixed, I will do it tonight.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Speeding up hinge

Postby JoeWright2 » Tue Aug 11, 2015 3:27 pm

Cool, thanks
JoeWright2
 
Posts: 14
Joined: Tue Aug 11, 2015 10:13 am

Re: Speeding up hinge

Postby Julio Jerez » Wed Aug 12, 2015 1:50 pm

I found the solution by it was too late to committed, I will do it tonight.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Speeding up hinge

Postby JoeWright2 » Thu Aug 13, 2015 3:49 pm

Thanks, is it in the latest commit?
JoeWright2
 
Posts: 14
Joined: Tue Aug 11, 2015 10:13 am

Re: Speeding up hinge

Postby Julio Jerez » Thu Aug 13, 2015 4:54 pm

I committed but there is still a bug. I am fix it but the bug turn out to be big one.
It will take more than a day to get it going.
Mean time get the code because what is check in is much better, see if it works for you.

the bug affect complex set of joints.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Speeding up hinge

Postby JoeWright2 » Fri Aug 21, 2015 10:26 pm

Hi, downloaded and used update. Hinges now can go nice and fast, thanks!

Haven't tried the skeleton stuff again, everything seems to be working fine without it. I will probably try out the skeleton code later.

Joe
JoeWright2
 
Posts: 14
Joined: Tue Aug 11, 2015 10:13 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron