Forum Replies Created
-
AuthorPosts
-
KorcanBlocked
@Guillaume i could’nt find enough time to investigate. I solved some of problems but still i have errors. At this point actually im learning how sofa works on code side π
i think i push some patches next week about sensable plugin.
KorcanBlockedHi,
Today i have find a time to check. In few hours i’ll be try to reproduce and contact again.
KorcanBlockedHi Sergio,
I am having same problem in some of demos.
But this is actually not about boost i debugged it and it can about sofa vectors.
KorcanBlockedThanks again but still im getting same error. Can you share your carving example if you have a time ?
KorcanBlockedIt works π
Right now different parts of newomnidriver creating exceptions π
When i click animate button i am getting this error.
http://prntscr.com/aabbgbAlso i have to change :
hHDVector[i] = hdInitDevice(autreOmniDriver[i]->deviceName.getValue().c_str());
to
hHDVector[i] = hdInitDevice(HD_DEFAULT_DEVICE);
Otherwise it’s not initializing device. And i have only 1 device for that reason i can use default device constant.
Edit :
sofa::helper::WriteAccessor<sofa::core::objectmodel::Data<VecCoord> > x = *DOFs->write(this->setRestShape.getValue() ? sofa::core::VecCoordId::restPosition() : sofa::core::VecCoordId::position()); sofa::helper::WriteAccessor<sofa::core::objectmodel::Data<VecCoord> > xfree = *DOFs->write(this->setRestShape.getValue() ? sofa::core::VecCoordId::restPosition() : sofa::core::VecCoordId::freePosition()); unsigned int index = 0; x [index].getCenter()=world_H_virtualTool.getOrigin(); xfree[index].getCenter()=world_H_virtualTool.getOrigin(); x [index].getOrientation()=world_H_virtualTool.getOrientation(); xfree[index].getOrientation()=world_H_virtualTool.getOrientation();
Problem in this line
xfree[index].getCenter()=world_H_virtualTool.getOrigin();
I am going to update this post
When you comment out xfree lines it works fine π But it must be caused somethink else. im searching.
KorcanBlockedHi Guillaume,
I have touch 3d stylus model. I tried open haptics sdk and it works well. Which open haptics sdk you are using ?
Edit:
ParentRoot looks NULL
http://prntscr.com/aa74x9parent variable is not null but after casting Gnode* parentRoot looks null.
Best Wishes,
Korcan1 March 2016 at 19:57 in reply to: [SOLVED] NewOmniDriver: GNode cannot access protected member #6009KorcanBlockedHi Cece,
I changed NewOmniDriver.cpp like
if (parentRoot->getFirstParent()) parentRoot = dynamic_cast<sofa::simulation::tree::GNode*>(parentRoot->getFirstParent());
But still it crashing. Can you tell us which steps you made from start to end ?
Best Wishes,
KorcanKorcanBlockedHey,
I think i found a solution. When you tried to compile NewOmniDriver.cpp it gives you
” NewOmniDriver: GNode cannot access protected member” Error.
I made changes on topic based on remibessard’s reply.
But when i debugged it gives me error on this line on NewOmniDriver.cpp
if (parentRoot->getFirstParent()) parentRoot = dynamic_cast<sofa::simulation::tree::GNode*>(parentRoot->getFirstParent());
KorcanBlockedAlso im using openhaptics 3.4
26 February 2016 at 12:45 in reply to: [SOLVED] What is SOFA dedicated to? How to use it as physics engine? #5962KorcanBlockedHi Hugo,
Are there any updates on this topic ?
Best Wishes,
Korcan23 February 2016 at 10:07 in reply to: [SOLVED] What is SOFA dedicated to? How to use it as physics engine? #5892KorcanBlockedHi Hugo,
Thanks for your answers. If someone could show me first steps about rendering it will be great π
Best Wishes,
Korcan -
AuthorPosts