Agreed with @epernod, I would also precise these information to the RigidMapping when trying to make it work with this component.
As @Hugo mentionned I am using the BeamLinearMapping to map a collision model to a Beam model, but I think it is accessible in SOFA master without compiling any plugin.
Hope you can also find it and use it on…[Read more]
I would like to suggest you to check the pull request I just did in your github repository.
I was able to compile your code (by adding some lines, eg. some ContactMapper) and pushed a version in which I was able to run your scene and see the 2 cubes interacting one another.
I hope you will be able to compile this update on your…[Read more]
Hi Binesh and Hugo,
I just wanted to suggest the fact that you did not called the method setScene():
void BaseViewer::setScene(sofa::simulation::Node::SPtr scene, const char* filename /* = NULL */, bool /* = false */)
that is used to set the scene that a viewer is going to render.
maybe you could try to call it (after testwindow->show())…[Read more]
remibessard replied to the topic NewOmniDriver: GNode cannot access protected member in the forum Building SOFA 4 years, 8 months ago
Indeed you can use getParents(), or getFirstParent() as it has been used to replace the same parent() method in ExportDotVisitor.cpp(344).
Also do not forget to cast the returned value :
parentRoot = dynamic_cast<sofa::simulation::tree::GNode*>(parentRoot->getFirstParent());
I have checked a bit what is in the CarvingManager plugin in Sofa and launched the example scene.
It seems that it is a really old code, and the “OmniEvent.h” you talked about have been replaced by a “HapticDeviceEvent.h” since October,2011.
Are you sure that you are up-to-date with Sofa ?
I was able to make the instrument carve by…[Read more]