VRPN tracker, detecting device.
Hey Vizard gurus, I have a quick question about your VRPN interface. I have working code using the VRPN tracker with a kinect device. What I want to do is to detect if a kinect is plugged into the computer, and disable the kinect interface if no kinect is found. I see when I run my script the following message if the kinect is not plugged in:
Code:
VRPN Error |
The vrpn objects have a getSampleNumber() and getSampleTime() method for retrieving the number/time of the last received sample. You could setup a timer to check these values and trigger an event if they haven't changed for over 10 seconds.
|
Quote:
Is there a way to catch what vizard is printing to the console? If I had the ability to do that, then I could watch for VRPN Errors, that are being printed out. |
That error message is printed deep within the VRPN source. I'm not aware of any way to programmatically detect it, other than modifying the VRPN source.
|
@nabrahamson
Hey I want to ask if you were able to do this. I also want to do the same and have not find a solution yet.. regards Pankaj bansal |
All times are GMT -7. The time now is 02:42 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC