- This topic has 7 replies, 2 voices, and was last updated 5 years, 8 months ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] animating the movement of scissors with omni
Tagged: 64_bits, SOFA_1812, Windows_10
I 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.
The question was about rotating the scissors tips while following the position of the omni phantom and keep their mapping to get force feedback.
Thanks,
Fayad
Any ideas on how to achieve this?
Best,
Fayad
A reminder.
If 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,
Fayad
Hi @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
Thanks so much Hugo!
Best,
Fayad
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.