Omni Velocity information
Hi, do you know if there is the chance to get the velocity information from the Omni.
The problem is that i have attacched a ball to the omni, and i am able to control the pose of the ball with it. What i want to do is to use velocity like trigger to send forces from the device to the operator. This is my code: Code:
import viz |
Do you mean the velocity of the stylus as the operator moves it or something else?
|
I would like to have information about the phantom's velocity during the motion!
I want to use it as a trigger,like: Before sending forces check if in the last 3 seconds the velocity(x,y,z) was zero->in that case send forces otherwise wait! I would like to now if there is already something like the hd.POSITION but for the velocity! |
It does not look like there is a velocity command. The available commands can be found in the Sensable and standard sensor pages in the Vizard help. You could calculate the velocity between frames or some other time interval. For example:
Code:
import viz |
First of all thanks for your interest.
I thougth about this solution and in this case it could work. The problem is:what happens when i need velocity information in real time during a task? What I am trying to say is that velocity computed in this way could be affected by rumors,it means that i have to filter the information obtained. What do you think? |
You could calculate the velocity from one frame to the next using the following:
Code:
lastPos = [0,0,0] |
getVelocity Function
Hello @Jeff & @Marcello,
since this thread is a little bit older, I wanted to know, if there is a update regarding the velocity issue. I'm am working on a Virtual Track in WorldViz with STOP-signs, where the user is instructed to stop. Whether he does so, I wanted to controll with the help of a proximity sensor. The requirements for a successful "stop" should be "reached sensor" and "velocity = 0". Within the vizard help I found the command getVelocity(), which only works with Best regards Robin |
Here's an example that prints out the viewpoint velocity each frame:
Code:
import viz |
All times are GMT -7. The time now is 07:25 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC