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);
Code: Select all
Assertion failed: !matterSub.isValid(), file c:\...\MultibodySystemRep.h, line 311