|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
where can I download example scripts about force effects based on haptic device
I have been looking for the example scripts on line for a while, but nothing was founded.
Some one in this forum mentioned to go to the download and demo section of vizard. I still could not find it. Please tell me if anyone knows where to find it. Thanks a lot! Mine is vizard 3.0. |
#2
|
|||
|
|||
Hi,
Sorry for that the old demo which you are looking for aren't available on our web page anymore. Can you let me know about which haptic device you have? Thanks. Best, Kevin |
#3
|
|||
|
|||
Thanks for replying!
My haptic device is phantom omni from sensable. |
#4
|
|||
|
|||
Here you go.
In your case please ignore the hd.dlm and hd.py, just need to use the scrips in the Examples folder. Best, Kevin |
#5
|
|||
|
|||
Thanks a lot!
|
#6
|
|||
|
|||
Hey Kevin,
Do you have the exact version for vizard 3.0. I still could not do it. No hd. command could be found in 3.0. Here is a snippet of my script(does not work): effectce=device.addConstantEffect(magnitude=10,dir ection=[0,-1,0]) def buttondown(button): if button == sensable.BUTTON_1: effectce.trigger(0.1) print test viz.callback(sensable.BUTTON_1,buttondown) If there is no version for 3.0, do you have examples for 4.0 or 5.0? I can upgrade my software later. Thanks a lot, |
#7
|
|||
|
|||
No, I have tested them all on 3.0, 4.0, 5.0 already. It should work right away.
Can you confirm that the example scripts runs with out problem and works fine first on your end? What is the error message you got? For me it seems there might be just something wrong in your code. For example the parameter you passed to the callback doesn't seems legal at least. Shouldn't it be a BUTTONDOWN_EVENT instead of passing the button directly? |
#8
|
|||
|
|||
Yea. I realized the mistake. I will try again.
So you mean I can still use hd.XX in vizard 3.0? Thanks! |
#9
|
|||
|
|||
Of course you can, if all the example script works for you then you should be able to have it too.
Just don't forget to import the hd module if you gonna use it. Best, Kevin |
#10
|
|||
|
|||
Can I have the command index start with hd.?
I have no idea how to define the initial position and orientation of the haptic device. Thanks! |
Tags |
force, haptic |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
haptic device problem | guof6570969 | Vizard | 2 | 06-09-2010 02:37 AM |
Haptic Device Shadows | vTony | Vizard | 1 | 05-04-2009 05:58 PM |
Phantom Omni Device Scripts | vSuejung | Vizard | 1 | 09-17-2008 04:42 PM |
Rendering a haptic Force | jalvarez | Vizard | 1 | 07-08-2008 11:59 AM |
Sensable | Vygreif | Vizard | 7 | 04-26-2006 01:56 PM |