Home › Forum › SOFA › Using SOFA › [SOLVED] animating the movement of scissors with omni
Tagged: 64_bits, SOFA_1812, Windows_10
- This topic has 7 replies, 2 voices, and was last updated 6 years, 9 months ago by
Anonymous.
-
AuthorPosts
-
17 February 2019 at 10:10 #13052
Anonymous
InactiveI am trying to animate the opening of my scissors tips when pressing a button (I wanted to map it to the omni buttons, but I am not sure how), but since I am using the omni, the position is always overwritten by the omni. I have attached the project here to have a better idea Files.
18 February 2019 at 18:15 #13060Hugo
Keymaster19 February 2019 at 10:59 #13072Anonymous
InactiveThe question was about rotating the scissors tips while following the position of the omni phantom and keep their mapping to get force feedback.
Thanks,
Fayad20 February 2019 at 21:55 #13096Anonymous
InactiveAny ideas on how to achieve this?
Best,
Fayad24 February 2019 at 12:00 #13112Anonymous
InactiveA reminder.
24 February 2019 at 12:01 #13113Anonymous
InactiveIf anyone can help that would be really appreciated :), I have been stuck on this for a while now and just need some guidance on how I can solve this problem.
Thanks in advance,
Fayad25 February 2019 at 10:15 #13115Hugo
KeymasterHi @fayad
Sorry for the delay, but I needed a bit of time to test your pb.
All you need is to make the moving part of your scissor, moving according to the base of the scissor (and not directly the Geomagic). The moving part would rely on a TransformEngine, while the base would rely on the GeomagicDriver.It would look like:
<Node name="base" > <EulerImplicitSolver name="ODE solver" rayleighStiffness="0.05" rayleighMass="1.0" /> <CGLinearSolver name="linear solver" iterations="25" tolerance="1e-10" threshold="10e-10" /> <MechanicalObject name="instrumentState" position="@GeomagicDevice.positionDevice" template="Rigid" /> ... </Node> <Node name="connector" > ... </Node> <Node name="right_tip" > <TransformEngine template="Rigid3d" name="TE" input_position="@../base/instrumentState.position" /> <!-- Solvers & Physics --> <EulerImplicitSolver name="ODE solver" rayleighStiffness="0.05" rayleighMass="1.0" /> <CGLinearSolver name="linear solver" iterations="25" tolerance="1e-10" threshold="10e-10" /> <MechanicalObject name="instrumentState" position="@TE.output_position" template="Rigid" showObject="1" showObjectScale="1" /> ... </Node>Best
Hugo
27 February 2019 at 12:22 #13125Anonymous
InactiveThanks so much Hugo!
Best,
Fayad -
AuthorPosts
- You must be logged in to reply to this topic.
