On Fri, 2015-04-10 at 13:05 -0400, Ricardo Ortiz wrote:
> Hello folks,
>
> I am working on a simulation with two virtual tools using two Phantom Omni
> haptic devices. Using your stapling simulator as a starting point, I was
> able to enable the devices but encountered the following issue:
>
> 1. Linear velocities are way too large, making it hard to control the
> virtual tools.
>
> I noticed that device positions are updated and converted to mm (from
> meters) in PhantomScaffold::updateDevice but the linearVelocity is not
> converted. Indeed, after scaling the linearVelocity the movements of the
> virtual tool seem more reasonable.
> Has anyone encountered this problem?
Good catch! I think we did encounter this issue recently, but didn't
investigate it yet. It sounds very likely what you found is the culprit.
Could you submit a git patch (through github, assembla, or email)?
> I also noticed that the virtual tool automatically returns to the center of
> the screen after "large" displacements.
> Is is there a way to tune this behaviour?
When you mean "large" displacement, do you mean the tool went unstable,
and could possibly have caused an invalid position? During the physics
update if the state of the tool becomes invalid, we set it inactive.
Does the tool still respond to input after it is re-centered?
Thanks,
-Paul
--
You received this message because you are subscribed to the Google Groups "openSurgSim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensurgsim...@simquest.com.
To post to this group, send email to opens...@simquest.com.
Visit this group at http://groups.google.com/a/simquest.com/group/opensurgsim/.
> I also noticed that the virtual tool automatically returns to the center of
> the screen after "large" displacements.
> Is is there a way to tune this behaviour?
When you mean "large" displacement, do you mean the tool went unstable,
and could possibly have caused an invalid position? During the physics
update if the state of the tool becomes invalid, we set it inactive.
Does the tool still respond to input after it is re-centered?Due do the large velocities, the tool would go out of screen but if you keep the Omni from moving, then the virtual tool would re-center itself.The virtual tool still responds to input after this.
This actually happens always.
/Ricardo
Sent from phone, please excuse terseness and typos.
--