Forum Replies Created
-
AuthorPosts
-
6 December 2016 at 08:15 in reply to: [SOLVED] Using Sensable plugin in custion c++ application #8045RusBlocked
Hello Jnbrunet and Hugo,
Thank you for your responses. I followed your instructions and they were helpful.
I have another question about GeomagicDriver now. I am still working on my c++ sofa application and can not link GeomagicDriver::p_positionDev with MechanicalObjectRigid3::x (position) to control an object.
In my xml scene it looks like this `<GeomagicDriver name=”GeomagicDevice” deviceName=”Default PHANToM” positionBase=”0 0 0″ orientationBase=”0 0.707107 0 -0.707107″ />
<MechanicalObject template=”Rigid” name=”DOFs” position=”@GeomagicDevice.positionDevice” />`But in my application, I don`t have any idea how to do the same thing
GeomagicDriver::SPtr geoDriver = New<GeomagicDriver>(); geoNode->addObject(geoDriver); geoDriver->setName("GeomagicDevice"); geoDriver->d_deviceName.setValue("Default PHANToM"); geoDriver->d_scale.setValue(1); geoDriver->d_positionBase.setValue(Vec3d(0, 0, 0)); geoDriver->d_orientationBase.setValue(Quat(0, 0, 0.707107, 0.0707107)); MechanicalObjectRigid3::SPtr dofState = addNew<MechanicalObjectRigid3>(geoNode,"DOFs"); // no idea what to do further
24 November 2016 at 01:45 in reply to: [SOLVED] Using Sensable plugin in custion c++ application #7960RusBlockedHello Hugo,
I am using master branch and it is up-to-date. I saw some changes in Sensable plugin a few days ago, then I pulled the last changes.
I did this as well, but the same error occurred. Actually, I have a source code of mine which is written in C++ and I want to integrate it with my sofa application.
OmniDriver::SPtr omniDriver = New<OmniDriver>(omniNode); omniNode->addObject(omniDriver); omniDriver->omniVisu.setValue(true); omniDriver->orientationBase.setValue(Quat(0,0,0.707107,0.0707107)); omniDriver->positionBase.setValue(Vec3d(-1,0,2));
I have tried Geomagic plugin as well, by this is what it says: http://prntscr.com/db1mwx
Thank you for your quick response
23 November 2016 at 09:00 in reply to: [SOLVED] Using Sensable plugin in custion c++ application #7950RusBlocked -
AuthorPosts