Modelling rigid body systems with closed kinematic loops

Post Reply
NickoPen
Posts: 4
Joined: Fri Jun 19, 2009 1:43 am

Modelling rigid body systems with closed kinematic loops

Post by NickoPen »

Hi,

1st post - new bullet user, although I have used other engines and written my own rigid body dynamics engine.

I have a test mechanism that I use to evaluate the accuracy of an engine's handling of rigid body mechanisms with closed kinematic loops. I am not sure what I am doing wrong, but my implementation in bullet fails miserably and it looks like there is too much compliance in the joints - would anyone be willing to look at my code and let me know what I am doing wrong?

I have the same mechanism implemented in ODE for comparison if that helps (which runs flawlessly, with reasonable accuracy), but the API between ODE and Bullet are quite different, especially the coordinate frames used for specifying joints.

The mechanism is a 6-linkage mechanism, similar to a 4-bar, but spatial in nature. All joints are simple 1-DOF hinges and it is actuated by a single torque.

Any offers to help would be appreciated!
Attachments
spatial_6bar_examples.zip
zip containing source for the test mechanism in ode and bullet. Not the neatest code, sorry.
(6.91 KiB) Downloaded 354 times
NickoPen
Posts: 4
Joined: Fri Jun 19, 2009 1:43 am

Re: Modelling rigid body systems with closed kinematic loops

Post by NickoPen »

No suggestions?

Is the silence telling me that Bullet doesn't have the ability to simulate a simple closed-loop system? Or is there a faulty articulated body constraint implementation?
Kirity
Posts: 7
Joined: Wed May 13, 2015 10:57 am

Re: Modelling rigid body systems with closed kinematic loops

Post by Kirity »

Hello NickoPen

Were you able to do it in Bullet ?? I do have same situation !

Any suggestion regarding closed kinematic loops w.r.t to Bullet and ODE are welcome
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Modelling rigid body systems with closed kinematic loops

Post by Erwin Coumans »

Bullet should be at least as good, or better than ODE to deal with closed kinematic loops, either using btRigidBody or using btMultiBody. I'll create an issue to re-create an example to show this.

https://github.com/bulletphysics/bullet3/issues/384
IresomPCH
Posts: 18
Joined: Tue Sep 24, 2013 12:29 pm

Re: Modelling rigid body systems with closed kinematic loops

Post by IresomPCH »

Hey, I've tried to build a 4-bar linkage in bullet simulation here:
http://bulletphysics.org/Bullet/phpBB3/ ... 103#p35103

The structure is set up in normal way using several RigidBody and HingeConstraint.
I encounter some stability issues at first, however the simulation becomes satisfied after using the double precision build.
Anyway, it's possible to build loop structure in bullet. :D
Kirity
Posts: 7
Joined: Wed May 13, 2015 10:57 am

Re: Modelling rigid body systems with closed kinematic loops

Post by Kirity »

@Erwin Coumans : Thanks for your reply !

@IresomPCH : Thanks for your inputs. This will help me !
Post Reply