![]() |
|
|
|
#1
|
|||
|
|||
|
You know, had I been putting in "PPT@Machine", that might have worked.
I will try that. Thanks. |
|
#2
|
|||
|
|||
|
To make sure that I am explaining everything I want to do I will cover the full details in case this influences the reply.
We are trying to write a general Python extension in C++ using the above code to parse and interpret the position data, as well as send it back to Python. Once we get compilable code, we run it through SWIG creating the Python Shadow class and the wrapped C++ code. We then compile it all into a .dll following all the procedures for a normal Python extension. Then, when we run Python and create a Tracker, as above, while passing in "192.168.1.100" as the argument, which is the local IP of the PPT, we get no errors. Then when we call, tracker.getYPos() in Python after adding in the tracker->mainloop() as the first statement in the C++ code, we get no errors and the print statements in the call back handler do not appear. I will certainly try passing in the correct address of the PPT tomorrow when I can get back to the systems, but just wanted to make sure there wasn't any other suggestions you could offer. Thanks, Todd |
|
#3
|
|||
|
|||
|
If you are passing 192.168.1.100 as the address then it won't work. You need to pass PPT0@192.168.1.100. Also, are you calling tracker.getYPos() multitple times or just once? Keep in mind that the first time you call it there might not be any data received yet.
You should also verify that the PPT computer is actually sending data. Go into the options screen of PPT and make sure the COM port option is set to VRPN. Then make sure PPT is actually sending data by pressing the Talk button. |
|
#4
|
|||
|
|||
|
Awesome! This is now working. I really appreciate all your help!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|