Box2D Forums

It is currently Sun May 19, 2013 8:02 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: PD controllers in Box2D
PostPosted: Sun Jul 15, 2012 9:58 am 
Offline

Joined: Tue Apr 03, 2012 12:00 pm
Posts: 14
Hi,

Is there a way to implement a stable PD controller in Box2D in the same spirit as CCD ? To further clarify, let's say in a time step t torque T is computed to be applied on the joint. But applying this torque for the entire length of time step will cause the joint to overshoot its target position, so we need to find a time t- t_p where the joint will cross the target position and compute the correct torque for this scenario ( since in real PD controllers torque decreases continuously with distance from the target angle, although they still might overshoot but they apply much less torque when closer to target locations ). I am already running my simulations at 4K hz and I don't think I can further reduce my time step to replicate the reducing torque in continuous case. Any suggestions ?

Thanks,
darkZ


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group