Assertion failed in MultibodySystemRep.h

Simbody is useful for internal coordinate and coarse grained molecule modeling, large scale mechanical models like skeletons, and anything else that can be modeled as bodies interconnected by joints, acted upon by forces, and restricted by constraints.
POST REPLY
User avatar
Mary K
Posts: 37
Joined: Mon Feb 24, 2014 9:15 am

Assertion failed in MultibodySystemRep.h

Post by Mary K » Wed May 10, 2017 11:37 am

Hello,
I am trying to visualize some contact forces and I follow the ExampleContactPlayground.cpp.
In my case I try to assign my model's multibody system to appropriate classes but it fails.
Here is what I am doing:

Code: Select all

    ...
	SimTK::State& si = model.initSystem();
    ...
	MultibodySystem& system = model.updMultibodySystem();
	ContactTrackerSubsystem  tracker(system);
   CompliantContactSubsystem contactForces(system, tracker);
	SimbodyMatterSubsystem  matter( system);
In last line program aborts with this message:

Code: Select all

Assertion failed: !matterSub.isValid(), file c:\...\MultibodySystemRep.h, line 311
Any ideas?

POST REPLY