Geomagic Plugin (unable to use haptic device) #3117
-
Hi, I am trying to use the geomagic plugin examples, yet I am unable to use my haptic device in the scene. Do I need to specify where my device is? I followed the procedure on https://www.sofa-framework.org/community/doc/plugins/usual-plugins/geomagic/ and still cant use the haptic device in the SOFA environment. I also am getting the following warnings from SOFA when I load the appropriate geomagic example scene: This scene is using component defined in plugins but is not importing the required plugins.
Your scene may not work on a sofa environment with different pre-loaded plugins.
To fix your scene and remove this warning you just need to cut & paste the following lines at the beginning of your scene (if it is a .scn):
<RequiredPlugin name="Sofa.Component.AnimationLoop"/> <!-- Needed to use components [FreeMotionAnimationLoop] -->
<RequiredPlugin name="Sofa.Component.Collision.Detection.Algorithm"/> <!-- Needed to use components [BVHNarrowPhase, BruteForceBroadPhase, DefaultPipeline] -->
<RequiredPlugin name="Sofa.Component.Collision.Detection.Intersection"/> <!-- Needed to use components [LocalMinDistance] -->
<RequiredPlugin name="Sofa.Component.Collision.Geometry"/> <!-- Needed to use components [LineCollisionModel, PointCollisionModel, TriangleCollisionModel] -->
<RequiredPlugin name="Sofa.Component.Collision.Response.Contact"/> <!-- Needed to use components [DefaultContactManager] -->
<RequiredPlugin name="Sofa.Component.Constraint.Lagrangian.Correction"/> <!-- Needed to use components [UncoupledConstraintCorrection] -->
<RequiredPlugin name="Sofa.Component.Constraint.Lagrangian.Solver"/> <!-- Needed to use components [LCPConstraintSolver] -->
<RequiredPlugin name="Sofa.Component.Controller"/> <!-- Needed to use components [MechanicalStateController] -->
<RequiredPlugin name="Sofa.Component.Haptics"/> <!-- Needed to use components [LCPForceFeedback] --> Additionally, is it possible to program the device/devicedriver using the python plugin? I see that all your examples use XML with this plugin but I was curious if there is a way to create the driver (outlined in the above link) using python? Thank you so much for your continued help and support! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 20 replies
-
RequiredPlugin name="Sofa.Component.Collision.Detection.Intersection" |
Beta Was this translation helpful? Give feedback.
-
running Geomagic-Demo the following log is generated:
|
Beta Was this translation helpful? Give feedback.
-
Hi @griffinandrew |
Beta Was this translation helpful? Give feedback.
-
Hi,
Point 1 and 2 are easy to checked on your side. Point 3, Indeed some error logs are missing. I will add them. Erik |
Beta Was this translation helpful? Give feedback.
Hi,
I just checked in the code, there is 3 reasons why this component could be set to invalid:
Point 1 and 2 are easy to checked on your side. Point 3, Indeed some error logs are missing. I will add them.
Erik