LibAVG tracking problem
Posted: 28 January 2008 12:39 PM   [ Ignore ]
New Member
Rank
Total Posts:  9
Joined  2008-01-15

I was having major problems compiling TouchLib for Mac, so I took the advice of some here and took a look at LibAVG as an alternative for DI touch tracking.

I’m following the instructions here: https://www.libavg.de/wiki/index.php/Using_libavg_as_a_Tracking_Library on a Mac running OSX 10.4.11 with a Unibrain Fire-I Board camera. However I’m running into a problem.

If I don’t set the AVG_REMOTE_HOST and AVG_REMOTE_PORT variables then I can run remote.py no problem. The window displaying the results through various filters works fine and the terminals window scrolls through details of events it’s detecting. However once I go ahead and set those two environment variables to the values suggested in the instructions remote.py crashes seconds after I start it with the following output:

...
[08-01-28 12:27:36.176] PROFILE:   Total frames356
[08
-01-28 12:27:36.176] PROFILE:   Total time6.26 seconds
[08
-01-28 12:27:36.176] PROFILE:   Framerate achieved57.0288
[08
-01-28 12:27:36.176] PROFILE:   Frames too late9
[08
-01-28 12:27:36.176] PROFILE:   Percent of time spent waiting96.0224
[08
-01-28 12:27:36.176] PROFILE:   Framerate goal was60
Traceback 
(most recent call last):
  
File "./remote.py"line 108in ?
    
Player.play()
  
File "./remote.py"line 31in onTouch
    int
(Event.majoraxis[0]), int(Event.majoraxis[1]),
AttributeError'TouchEvent' object has no attribute 'majoraxis'
[08-01-28 12:27:36.231] EVENTSSpurious blob suppressed.
[08-01-28 12:27:36.231] EVENTSSpurious blob suppressed.
...

If anyone out there with LibAVG/Python experience has suggestions they would be much appreciated.

Thanks, Patrick

Profile
 
 
Posted: 29 January 2008 12:38 AM   [ Ignore ]   [ # 1 ]
Jr. Member
Avatar
RankRank
Total Posts:  194
Joined  2007-05-05

hi patrick,

I have some experience with libAVG, and its kind of working here.
I think your problem is that you are using a rather old Installer, and the remote.py is new.
So there are features in the remote.py that your version of libAVG does not know yet. The are
constantly updating libAVG because of the transmediale in Berlin. Maybe you could post your remote.py?

Your problem is not the AVG_REMOTE_HOST thing…

 Signature 

Blog: http://iad.projects.zhdk.ch/multitouch/
180 Project: http://www.timroth.de/180/

Profile
 
 
Posted: 29 January 2008 01:33 AM   [ Ignore ]   [ # 2 ]
New Member
Rank
Total Posts:  9
Joined  2008-01-15

Hi Tim
I asked on the LibAVG mailing list and received a similar response, that remote.py being out of sync with the tracker version was the likely problem. No fix was offered though, just a suggestion that I poke around in the code. I plan to do this, but don’t have any Python experience so am not sure whether I’ll be able to solve it.

I am using libavg-mac-intel.0.7.0a.zip and have attached a copy of the remote.py script I’m using (renamed from remote.py to remote.txt to keep the forum’s file filters happy). Any pointers you can offer are appreciated.

Thanks, Patrick

File Attachments
remote.txt  (File Size: 4KB - Downloads: 115)
Profile
 
 
Posted: 29 January 2008 02:42 AM   [ Ignore ]   [ # 3 ]
Jr. Member
Avatar
RankRank
Total Posts:  194
Joined  2007-05-05

yeah, the problem is that your version does not have the “majoraxis....” function yet.
I´ve attached a version of my remote.py file, hopefully this will work for you.
Rename the file to “.py” of course…

File Attachments
remote_tim.txt  (File Size: 3KB - Downloads: 121)
 Signature 

Blog: http://iad.projects.zhdk.ch/multitouch/
180 Project: http://www.timroth.de/180/

Profile
 
 
Posted: 29 January 2008 01:00 PM   [ Ignore ]   [ # 4 ]
New Member
Rank
Total Posts:  94
Joined  2007-08-01

@tim: how are you finding libAVG is working for you? Better tracking? Better response? I read in one of your other posts that it was still crashing. I haven’t messed with it yet because it felt to risky to use it for anything remotely public facing.

 Signature 

Brett Forsyth
Blog: http://blog.thestem.ca
My Mult-touch build: http://ddblog.vfs.com/category/multi-touch/
Where I teach: http://vfs.com/fulltime.php?id=13

Profile
 
 
Posted: 29 January 2008 01:07 PM   [ Ignore ]   [ # 5 ]
New Member
Rank
Total Posts:  9
Joined  2008-01-15

Thanks Tim, the version of remote.py you uploaded seems to work. I haven’t had a chance to test extensively, but it certainly doesn’t crash the same way the SVN version did.

Profile
 
 
Posted: 29 January 2008 02:40 PM   [ Ignore ]   [ # 6 ]
Jr. Member
Avatar
RankRank
Total Posts:  194
Joined  2007-05-05

good to hear its working for you…

I am having problems with the calibration routine, that always crashes at the end, because of an invalid tracker configuration. No Idea how to get
that part to work. I will be working with some people from my university to write a calibration in flash, which should be fast enough, I hope.

The biggest problems though is getting reliable tracking.. while I can adjust it pretty good, and getting quite good response and speed, I am unable to
get stable blobs. So even if I don´t move my fingers, I get new IDs most of the time. The libavg guys do not have this problem, so I am still trying
to figure out why this happens. Maybe because they have 4mm glass on top of the diffusor, while I am touching the diffusor directly on my table.
Not sure, but I have stopped working with it for now, because I have to work on software for the table now, so I won´t be able to work with it for
at least the next month...:(

So if anyone gets anything done, please post in this thread..

 Signature 

Blog: http://iad.projects.zhdk.ch/multitouch/
180 Project: http://www.timroth.de/180/

Profile