View Single Post
  #3  
Old 10-23-2009, 02:44 PM
billjarrold billjarrold is offline
Member
 
Join Date: Jul 2009
Location: San Francisco Bay Area
Posts: 39
continuation of can't reset intersense

Hi,

Thanks for your reply.

Not much progress. The code you sent me does not cause the intersense to reset to 0. Details below...

My first interpretation of your message was that I should create a new .py file. Here are the entire contents of that file......

# This file, junk-test6.py is made in response to farshizzo post
# of 2009-10-23T11:46.
import viz
viz.go()
# The above two lines were not sugested by farshizzo but
# Bill thought they were required.
isense = viz.add('intersense.dle')
tracker = isense.addTracker()
tracker.resetHeading()

....when I ran this file I got no error messages....

Specifically, to run it, I hit the f5 button. I waited for the usual "world viz, we make virtual real." or whatever it says with the ball that rocks back and forth...After that finished I counted 5 seconds. Then I hit escape. Here is the output in my console window...

************************************************** ****************************
** Loading junk-test6.py
************************************************** ****************************
intersense.dle Intersense Extension
** Load Time: 3.86 seconds
InterSense Library ver. 4.04 32-bit
Copyright 1998-2007 InterSense Inc.
http://www.intersense.com
Tel: 781-541-6330

Looking for InterSense tracking device number 1.
Please wait ...

IC2 Plus device detected


......Likke you can see, no error messages.

Next I ran my code. When the world fired up, I was again not facing 0 degress. Rather I was facing -60 or so degrees.

I was hoping that running your suggested program would cause my program to run in such a way that it would start up facing 0 degrees rather than -60 degrees.

You asked to see my code...

I am a bit squeemish about sending you my code. It is more than 1k lines long. Plus, the PI may consider it proprietary I will have to check and this will induce a time lag (see Option 2 below). I could isolate the problem in a smaller set of code that reproduces this problem but that too will take time (see Option 1 below).

....If necessary we can work out a solution to the "send you my code problem".

Now I turn to a second interpretation of your message.....

You message was unclear about whether or not I should:

(A) include your code in a completely fresh independent python script that will cause my intersense to reset it self now and remain reset on all subsequent runs of whatever programs

OR

(B) whether I shoudl include your code in my original (> 1K long) program.

....As you can see from the above I have already done (A).

In addition I also did (B). Still no luck. Read on....

When I ran the resulting script I got the following red error message text (amongst many many lines of non-red presumably normal status output).....

** ERROR: Failed to auto-detect Intersense, try specifying port number
** ERROR: Failed to create extension sensor with intersense.dle

.....Well, let me know the best next step.

Some possible next steps I see:

Option 1) take my program and produce a smaller subset of it that I can send to the worldviz list for debugging

Option 2) ask the PI if I can post our > 1K lines of code to the list

Option 3) something else.

Thanks and sorry for such a long message,

Bill
Reply With Quote