H3D.org Forum Index Programming Issues
Integrating Haptic device | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| Markus | Posted on: 2012/5/25 17:04 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1900 |
Re: Integrating Haptic device No PHANTOM configuration is not installed with H3DAPI 2.1.1. You have gotten it from somewhere else. We do not include any code that lets you connect to SensAble devices unless you install OpenHaptics separately.
Again, I do not know which names you should use, I would guess your own. |
| Raju | Posted on: 2012/5/30 19:27 |
Not too shy to talk ![]() Joined: 2012/5/22 From: Posts: 11 |
Re: Integrating Haptic device I finally got a user name and password for http://dsc.sensable.com/ and I downloaded and installed OpenHaptics Academic Edition for Windows.
Drivers got installed while installing SensAble tools. I configured my device and also tested and it worked perfectly. But when I ran the "Dynamic" demo model (.x3d file), which came along with H3DAPI, it failed to recognize the device. It says "No haptics devices in the scene. Navigation with haptics device will not be used." But in the youtube video tutorial, no such error came. Can you please figure out what might be the problem? All other things work very well. Thank you. |
| Markus | Posted on: 2012/5/31 8:12 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1900 |
Re: Integrating Haptic device Quote:
I configured my device and also tested and it worked perfectly. I assume that you did this through PHANToM configuration and test. And in the test you did calibrate it? Just to double check: 1. H3DAPI 2.1.1 is used. 2. H3DLoad settings, Any Phantom device is selected. 3. Start H3DViewer and open H3DAPI/example/All/Box.x3d please. 4. In H3DViewer, open the console (Advanced->Show Console or press F10). Any error messages there? 5. The message you describe should only be printed if you select to navigate the scene with a haptics device, which by default is off. |
| Raju | Posted on: 2012/5/31 15:55 |
Not too shy to talk ![]() Joined: 2012/5/22 From: Posts: 11 |
Re: Integrating Haptic device Exactly. I followed your steps and found no error message. It showed "Loading C:\Program Files (x86)\H3D\H3DAPI\examples\All\Box.x3d", which is quite clean.
But when I choose to navigate using haptic device, i get that error. What should I do then? |
| Markus | Posted on: 2012/5/31 16:05 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1900 |
Re: Integrating Haptic device You do not need to choose to navigate using the haptics device, that means "use the haptics device to move the view". You should, if the settings are choosen correctly, see a stylus that looks like a pen (a cylinder and a sphere) and simply be able to move that around when using the device. If you load Sphere.x3d you should also be able to touch the geometry.
Could you open Box.x3d again, then choose "Advanced->tree view" then find the "Active Bindable Node" node, right click it, expand all, take a screen shot, upload that screens somewhere and post an url in your next post. Where is H3D installed? Program files? C:\H3D? Can you paste the content of H3DAPI/settings/h3dload.ini in your next post? |
| Raju | Posted on: 2012/5/31 16:43 |
Not too shy to talk ![]() Joined: 2012/5/22 From: Posts: 11 |
Re: Integrating Haptic device Link to the image file:
https://picasaweb.google.com/rajurnpur ... huser=0&feat=embedwebsite I had installed in "C:\H3D" earlier, but windows refused to consider H3DViewer as an application (there was no way I could open a file in H3DViewer. When i ran the box.x3d file, it said "H3DViewer stopped working") and thus I uninstalled and re installed to "C:\Program Files (x86)\H3D". Contents of h3dload.ini: [haptics device] device = None stylus = H3D Default.x3d [graphical] rendermode = MONO mirrored = False viewpoint = H3D Default fullscreen = False [display] type = None Haptics device is not selected by default. I guess this is be the problem. Or is it? |
| Markus | Posted on: 2012/5/31 17:10 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1900 |
Re: Integrating Haptic device You nailed it, that is the issue.
That is actually why I asked where you installed it. karlu has suggested that we need to add a patch (or if latest trunk is patched like this already, I can not remember), in such a way that the h3dload.ini file that is used is stored in the user location, not in program files since windows might not allow modifications of files there. The default installation C:/H3D location should work fine. I can not understand why it would not. If you do not want to reinstall then change the file (manually) to look like this: Quote: [haptics device] Note, that if you keep it in this installation location, any settings change you do will have to be done by manually editing this file (as administrator, or perhaps copy it to some other location, edit it, and then copy back). |
| Raju | Posted on: 2012/5/31 18:42 |
Not too shy to talk ![]() Joined: 2012/5/22 From: Posts: 11 |
Re: Integrating Haptic device I almost got there (thanks to you), but just one more problem. I edited the h3dload.ini file and ran the box.x3d file. As H3DViewer started, it stopped responding and windows showed an error "H3DViewer application has stopped working" and i've to close it. I did this with other .x3d files and even restarted the laptop but still the same problem.
Have you come across such a situation? I think it is trying to access the data from phantom device but cannot. |
| Markus | Posted on: 2012/6/1 9:43 |
Webmaster ![]() ![]() Joined: 2006/3/27 From: SenseGraphics Posts: 1900 |
Re: Integrating Haptic device Did you build H3DAPI yourself? If you did, did you build it with OpenHaptics support? I know you use H3DAPI 2.1.1 but did you build the binaries or use the distributed ones?
The only way to debug such crashes is to build a debug-version in visual studio and run it there. To know what line fails. I can not make any guesses about what might be wrong since anything could happen, and noone else have reported a crash-problem with H3DAPI 2.1.1 at start up using openhaptics. |
| Raju | Posted on: 2012/6/5 12:53 |
Not too shy to talk ![]() Joined: 2012/5/22 From: Posts: 11 |
Re: Integrating Haptic device Sorry for replying so late.
What I am facing is that irrespective of whether I have connected my device or not, the H3DViewer Application crashes always when I edit "h3dload.ini" file and set "device = Any PHANToM device". But if I again edit "h3dload.ini" file and set "device = None", H3DViewer works perfectly. Can you please elaborate more on building? I am not familiar with building. Do you mean I need to compile & run a particular program (probably in the installation directory) which creates binaries and then use it? |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |



