ideas for getting NetworkSend data into stand-alone app
Posted: Mon Oct 04, 2010 5:39 pm
Using 0.3.7.r1462
So far EventGhost has been great. I have just one more hurdle...
I am a reserach psychologist studying children with autism and I am trying to automate the calibration procedure for my eye-tracker. What I have is a Panda3D app (written in Python running on PC1) that displays a scene that the child views. An eye-tracking system (PC2) is monitoring the child's gaze. I am using EventGhost to fill in some gaps in the UI from the eye-tracking system. I am essentially controlling the calibration process on PC2 remotely via calls from PC1 to execute EventGhost macros on PC2, then sending the info the macro gathers back to PC1.
I am able to use the "NetworkSend.py" class directly within Python on PC1 to initiate the EventGhost macro on PC2. Then I send the values collected as the payload in the NetworkSend on PC2. This works except that I only have access to these values within EventGhost on PC1 and what I need is to get these values into my Panda3D app. I'm not sure how to set up a socket to read these values from within my Panda3D app.
The Panda3D app does read a UDP connection from the eye-tracker to get all the eye-tracking data. I assume I need to do something similar for EventGhost, but I'm not sure the best way to go about it. I realize there are likely a variety of solutions, but I'm looking for some direction and especially some sample code that can set up a connection to read an EventGhost NetworkSend event from within a stand-alone Python app.
I'm not a programmer, but I'm getting around in Python and I get the gist of socket communications. It's not clear to me whether the NetworkEventReceiver plugin code can be adapted to use in this setting. The only EventGhost functionality I need on PC1 is to NetworkSend (which is working) and something to read a NetworkSend from PC2.
Any help would be greatly appreciated.
Thanks,
Jeff Munson, PhD
University of Washington
So far EventGhost has been great. I have just one more hurdle...
I am a reserach psychologist studying children with autism and I am trying to automate the calibration procedure for my eye-tracker. What I have is a Panda3D app (written in Python running on PC1) that displays a scene that the child views. An eye-tracking system (PC2) is monitoring the child's gaze. I am using EventGhost to fill in some gaps in the UI from the eye-tracking system. I am essentially controlling the calibration process on PC2 remotely via calls from PC1 to execute EventGhost macros on PC2, then sending the info the macro gathers back to PC1.
I am able to use the "NetworkSend.py" class directly within Python on PC1 to initiate the EventGhost macro on PC2. Then I send the values collected as the payload in the NetworkSend on PC2. This works except that I only have access to these values within EventGhost on PC1 and what I need is to get these values into my Panda3D app. I'm not sure how to set up a socket to read these values from within my Panda3D app.
The Panda3D app does read a UDP connection from the eye-tracker to get all the eye-tracking data. I assume I need to do something similar for EventGhost, but I'm not sure the best way to go about it. I realize there are likely a variety of solutions, but I'm looking for some direction and especially some sample code that can set up a connection to read an EventGhost NetworkSend event from within a stand-alone Python app.
I'm not a programmer, but I'm getting around in Python and I get the gist of socket communications. It's not clear to me whether the NetworkEventReceiver plugin code can be adapted to use in this setting. The only EventGhost functionality I need on PC1 is to NetworkSend (which is working) and something to read a NetworkSend from PC2.
Any help would be greatly appreciated.
Thanks,
Jeff Munson, PhD
University of Washington