WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 04-03-2006, 04:10 PM
MiamiTodd MiamiTodd is offline
Member
 
Join Date: Feb 2006
Posts: 15
You know, had I been putting in "PPT@Machine", that might have worked.

I will try that. Thanks.
Reply With Quote
  #2  
Old 04-03-2006, 04:57 PM
MiamiTodd MiamiTodd is offline
Member
 
Join Date: Feb 2006
Posts: 15
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
Reply With Quote
  #3  
Old 04-03-2006, 05:06 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
  #4  
Old 04-10-2006, 12:36 PM
MiamiTodd MiamiTodd is offline
Member
 
Join Date: Feb 2006
Posts: 15
Awesome! This is now working. I really appreciate all your help!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC