Search found 804 matches

by Michael Sherman
Tue Sep 27, 2022 9:29 am
Forum: Simbody: SimTK multibody dynamics API
Topic: Constraints between massless bodies
Replies: 2
Views: 492

Re: Constraints between massless bodies

The rule to follow is this: Imagine the system with just the bodies and joints (constraints removed). That tree-structured system defines the mass matrix and must be non-singular. So you can weld massless bodies together if they are part of the tree system (i.e. using a weld joint rather than a weld...
by Michael Sherman
Wed Jul 06, 2022 10:33 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: MobilizedBody_FunctionBased - mapping between qdot and u
Replies: 4
Views: 621

Re: MobilizedBody_FunctionBased - mapping between qdot and u

No, sorry Nicos. Angular velocity is not the derivative of Euler angles (except in one special case: when all three Euler angles are zero). Otherwise you have to use Euler angle derivatives for u to get N=identity. Angular velocity is in fact not the derivative of any set of q's -- there is always a...
by Michael Sherman
Wed Jul 06, 2022 3:28 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: MobilizedBody_FunctionBased - mapping between qdot and u
Replies: 4
Views: 621

Re: MobilizedBody_FunctionBased - mapping between qdot and u

Hi, Nicos. No, that's a very reasonable question! The answer is that FunctionBased Mobilizer is a special case of Custom Mobilizer provided for convenience. The author of that class designed it to work only for mobilizers where qdot=u (that is, N=identity). The general Custom mobilizer supports N !=...
by Michael Sherman
Tue Nov 23, 2021 3:46 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: torque-free motion not giving correct output
Replies: 6
Views: 1324

Re: torque-free motion not giving correct output

Here is a plot of the three components of the angular velocity of the shaft, expressed in the shaft frame. I set the initial conditions to (10, 1000, 1000) degrees/s. The y & z velocities vary between +/- 1414.21 degrees/s. plot.png The modified code I used is here: #include "Simbody.h" #include <io...
by Michael Sherman
Tue Nov 23, 2021 2:57 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: torque-free motion not giving correct output
Replies: 6
Views: 1324

Re: torque-free motion not giving correct output

Hi, Naushad. I found a few minor problems with your implementation: - angular velocity in Simbody is given in radians/sec, not degrees/sec - angular velocity for a body B is given and reported as w_GB_G, that is, the angular velocity of body B in Ground, expressed in Ground; what you are interested ...
by Michael Sherman
Wed Nov 17, 2021 12:02 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: torque-free motion not giving correct output
Replies: 6
Views: 1324

Re: torque-free motion not giving correct output

Hi, Naushad.

Please take a look at the DzhanibekovEffect example, which I think is similar to what you are trying to do. I suggest you run that one to see what it does. They you might want to modify that code to your specific case.

Regards,
Sherm
by Michael Sherman
Thu Sep 23, 2021 5:51 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Contact dynamics between sphere and SmoothHeightMap?
Replies: 3
Views: 777

Re: Contact dynamics between sphere and SmoothHeightMap?

In the meanwhile you may want to consider replacing your SmoothHeightMap with a triangle mesh that approximates it.
by Michael Sherman
Thu Sep 23, 2021 5:47 pm
Forum: Simbody: SimTK multibody dynamics API
Topic: Contact dynamics between sphere and SmoothHeightMap?
Replies: 3
Views: 777

Re: Contact dynamics between sphere and SmoothHeightMap?

Hi, Andres. The SmoothHeightMap has not been integrated into the contact subsystem yet. Looking through the code it appears that there are a few methods of SmoothHeightMap that are unimplemented that would be needed by the contact subsystem. Also a ContactTracker needs to be selected (or written) an...