GravBox installation issues

Home Forums AR Sandbox Forum GravBox installation issues

This topic contains 2 replies, has 3 voices, and was last updated by  Anisio 5 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #110949

    ajy00
    Participant

    You’ve probably seen the extension to Sandbox from the University of Iowa http://astro.physics.uiowa.edu/gravbox/software.html as Oliver tweeted about it earlier.
    I’m having an issue with the install on the existing sandbox installation. I’ve Mailed their help link … but some of you clever people might be able to shed light on the problem – as a python/linux newbie I’m a bit lost.
    The output from the initial command is below…

    any ideas

    Alistair

    sandbox@sandbox ~ $ gravbox
    Starting GravBox…
    -45.6846899089, -33.4482382583, -104.8705084084)

    -45.6846899089 here
    45.3653058763, -31.3990483954, -99.3884158982)

    45.3653058763 here
    -47.674914634, 32.8072086558, -107.4082571497)

    -47.674914634 here
    -45.6846899089
    COPY PLANAR_PARAMS to the constant value at the start of this script
    PLANAR_PARAMS = [-0.004578, -0.033224, 724.000000]
    BOUNDARIES = [-45.684690,-31.399048],[-47.674915,32.807209]
    COPY SHAPE to gravbox.py XWIDTH YWIDTH
    [40, -30, 30, -30]
    SHAPE: (410, 580)
    send_cmd: Input control transfer failed (18)
    freenect_fetch_reg_info: send_cmd read 18 bytes (expected 118)
    send_cmd: Output control transfer failed (-1)
    freenect_fetch_reg_const_shift: send_cmd read -1 bytes (expected 8)
    freenect_camera_init(): Failed to fetch const shift for device
    Error: Invalid index [0]
    Error: Can’t open device. 1.) is it plugged in? 2.) Read the README
    Traceback (most recent call last):
    File “gravbox.py”, line 1057, in <module>
    thisapp = Display()
    File “gravbox.py”, line 813, in __init__
    self.gravity_thread = GravityThread()
    File “gravbox.py”, line 237, in __init__
    self.prev_dem = topo.update_surface(self.baseplane,self.bounds, None)
    File “/home/sandbox/gravbox/src/topogra.py”, line 113, in update_surface
    (depth,_)= get_depth()
    TypeError: ‘NoneType’ object is not iterable
    sandbox@sandbox ~/gravbox/src $ `

    #110969

    jwisbell
    Participant

    Hello Alistair,
    Thanks for your interest in the Gravbox!

    It looks like a libfreenect issue to me as well. Often during debugging, if I didn’t properly close the ARSandbox thread or the previous trial of gravbox, the port connected to the Kinect would remain in use. This prevents libfreenect from reading the depth information. Could you please let me know if it happens on a “fresh terminal” window as well? I will also look into libfreenect to see if there were settings we tweaked that I forgot to mention.

    ***EDIT*** I actually believe that it is a libusb error. It seems that the port isn’t even being activated. Please try installing the latest version via https://github.com/libusb/libusb

    Also your post made me realize we need a clearer terminal output during runtime.

    -Jacob

    • This reply was modified 1 year, 5 months ago by  jwisbell.
    #118335

    Anisio
    Participant

    Hello

    My Name is Anisio and I work in a Science Museum In Curitiba, Paraná, Brazil. We have the AR Sandbox installed on our science center and it work’s fine. But, we also have interest on GravBox. That is an amazing resource!!!

    But I experienced a lot of difficulties in the installation process. I followed the steps in the site http://astro.physics.uiowa.edu/gravbox/software.html.

    1) First I installed AR SandBox and calibrate it – works fine;
    2) Followed step 1;
    3) In the step 2 would not be line 14 instead of line 13? The line 13 for me is the “echo” line, the directory line is the next one;
    4) How do I locate the correct bash file? I modified one but don’t know if is the right file;
    5) Installed Python 2.7, numpy, scipy and pyqtgraph using “pip install”.
    6) The scikit-image package give the following error:

    Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=’/tmp/pip-install-r_0VcW/subprocess32/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, __file__, ‘exec’))” install –record /tmp/pip-record-PHtLiO/install-record.txt –single-version-externally-managed –compile” failed with error code 1 in /tmp/pip-install-r_0VcW/subprocess32/

    7) The pip install libfreenect give this error:

    Could not find a version that satisfies the requirement libfreenect (from versions: )
    No matching distribution found for libfreenect

    8) The libusb
    Lendo listas de pacotes… Pronto
    Construindo árvore de dependências
    Lendo informação de estado… Pronto
    E: Impossível encontrar o pacote libusb (impossible to find the package)

    I will format the PC and reinstall everything again, but I don’t have much experience on linux then I ask for help, if is possible, more detailed walktrough.

    Thanks

    Anisio

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.