#1
|
|||
|
|||
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 (18) from Tracker0: No response from server for >= 10 seconds
__________________
|
#2
|
|||
|
|||
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.
|
#3
|
|||
|
|||
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.
__________________
|
#4
|
|||
|
|||
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.
|
#5
|
|||
|
|||
@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 |
Tags |
vrpn |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VRPN quaternion conversion from PPT from Intersense InertiaCube | willemsn | Precision Position Tracker (PPT) | 0 | 07-20-2011 01:59 PM |
VRPN info | sdiverdi | Precision Position Tracker (PPT) | 5 | 01-16-2011 12:00 PM |
The problem of tracker using via VRPN | _kj_ | Vizard | 2 | 08-13-2009 12:03 AM |
Does the vrpn7.dle tracker plug-in clear the udp buffer? | michaelrepucci | Vizard | 2 | 09-19-2008 10:22 AM |
swapPos and swapQuat with VRPN | michaelrepucci | Vizard | 1 | 07-29-2008 11:27 AM |