Forum Replies Created

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • in reply to: USB Button Solution #118094

    ajy00
    Participant

    Joshua

    Can you load the input graph manually? (from right click menu: Vrui System/Devices/Load InputGraph). If that works then I’d guess it must be a directory path issue.

    AJY

    in reply to: USB Button Solution #118029

    ajy00
    Participant

    Agree the steps from tuchwando … though might I suggest that because ScroptExecutor isn’t there, it really would be a plan to re-install Vrui – if not bite the bullet and start afresh with a new clean version of the build

    in reply to: USB Button Solution #117980

    ajy00
    Participant

    Joshua

    Well it looks like the system is running though as expected. The only thing puzzling me is the vruiverbose output is referencing two windows defined in config, whilst the SARndbox.cfg file you have ( and there seem to be a few copies in your Google Drive files) references a single window. I guess the question is are you sure that the SARndbox.cfg file is the one from your /home/warren/.config/Vrui-4.5/Applications/SARndbox.cfg location?

    On the Script Executor .. not sure if you meant to attach an image … What happens when you pres an unassigned key? what menu are you offered?
    A

    in reply to: USB Button Solution #117972

    ajy00
    Participant

    Joshua

    On a quick scan I can’t see anything that jumps out … can you share the output from running with -Vruiverbose (as Chris described in earlier post … ~/src/SARndbox-2.5$ ./bin/SARndbox -uhm -fpv -Vruiverbose)
    so that we can perhaps see if there’s anything reported there.
    It might also be useful if you posted your “strange readouts in terminal”.

    As to linking buttons – once implemented they will effectively appear as ‘keys’ to be assigned when pressed, and you will see the Tool Selection menu – use ‘Utility/Script Executor’. Image shared here https://drive.google.com/file/d/1O9EXaHaoqSs3Tjap-xMZQ0RMBYJir9l_/view?usp=sharing

    A

    in reply to: USB Button Solution #117959

    ajy00
    Participant

    Joshua

    by the looks you’re trying to edit rules under the usr directory tree rather than the system. you need to literally follow the scripts in Oliver’s post .. using xed rather than pluma if that’s your text editor so it becomes …
    sudo xed /etc/udev/rules.d/69-USB-encoder.rules

    try that and let us know how it goes πŸ™‚

    in reply to: USB Button Solution #117939

    ajy00
    Participant

    Hi Joshua

    Exactly the ones noted in Oliver’s post at the top of this thread (https://arsandbox.ucdavis.edu/forums/topic/usb-button-solution/#post-102823), suitably edited for the installed version of Vrui:

    Download the tool class’s source code, ScriptExecutorTool.h and ScriptExecutorTool.cpp and save them into the Vrui/Tools subdirectory of the Vrui source code directory. Then run from a terminal:

    cd ~/src/<strong>Vrui-4.5-004</strong>
    make
    sudo make install
    </blockquote>

    FYI I’m running Linux Mint 19 Tara, Vrui 4.5-004 and Sandbox 2.5. All the scripts for the buttons were written under previous releases last May/June and reinstalled when I rebuilt the box with the current versions earlier this year.

    in reply to: USB Button Solution #117937

    ajy00
    Participant

    Agree with Chris that you need to get the Script Exec working – and it does work in Mint … that’s what I run the box on.
    A

    in reply to: USB Button Solution #117932

    ajy00
    Participant

    hi

    I can’t figure why you’re getting regular crashes. I know the mobile setup i have will sometimes crash on first invocation of the weather script… but it works fine for the rest of the day, and because it’s only occasional its really hard to debug πŸ™ and of course it doesn’t crash on the test rig – the only difference there is a different Kinect camera and no projector…

    I’ve so far put it down to a glitch in the graphics processor while it is warming up!! (feeble I know)

    in reply to: USB Button Solution #117931

    ajy00
    Participant

    Joshua

    Had a read though and I think there may be a complication in the config file … may work for Chris but I’ve loaded mine here so you can perhaps try that πŸ™‚
    https://drive.google.com/drive/folders/1BG8xRHoDOdPnsZuarStALO1rro1Ul_vP?usp=sharing

    Read the notes though… you’ll need to do some editing in the input graph .. but the basics should work without that anyway

    AJY

    in reply to: USB Button Solution #117802

    ajy00
    Participant

    Which buttons are you using? Did you get the correct identification for the config file at Oliver’s initial item at #102823?

    That complete file should look something like

    section Vrui
        section Desktop
            # Disable the screen saver:
            inhibitScreenSaver true
            
            section MouseAdapter
                # Hide the mouse cursor after 5 seconds of inactivity:
                mouseIdleTimeout 5.0
            endsection
    
            section Window
                # Open the window on a specific video output port:
                # the next line needs to be updated with the appropriate value for your display
                outputName HDMI-0
                
                # Force the application's window to full-screen mode:
                windowFullscreen true
            endsection
    
            inputDeviceAdapterNames += (HIDAdapter)
            ...
            section HIDAdapter
                inputDeviceAdapterType HID
                inputDeviceNames (USBEncoder)
                
                section USBEncoder
                    name USBEncoder
                    # the next line needs to be updated -if appropriate- for your USB encoder details
                    deviceVendorProductId 0079:0006
                    trackingDeviceName Mouse
                endsection
            endsection
            
            section Tools
                section DefaultTools
                    # Bind a global rain/dry tool to the "1" and "2" keys:
                    section WaterTool
                        toolClass GlobalWaterTool
                        bindings ((Mouse, 1, 2))
                    endsection
                endsection
    
                toolClassNames += (ScriptExecutorTool)
    
            endsection
        endsection
    endsection
    in reply to: USB Button Solution #117787

    ajy00
    Participant

    Hi

    Sounds like you might need to go over the locations of the code you’re using as it sounds like the scripts are getting confused or not finding the elements. Suggest you check the script(s) by assigning them to keys, and link them to the buttons once you’ve got everything straight… debugging is such fun!! ;(
    For the message scripted in weather.sh, that will appear if you run the sandbox using a separate terminal window to issue the start commands, and will appear in that terminal window. It won’t show across the projected landscape.

    in reply to: AR Sandbox Curriculum #117786

    ajy00
    Participant

    Trawling through there doesn’t seem to be a single thread or point of collection for teaching resource, though UC Daivis has some, and various other colleges have shared their ideas. We have some pieces we have used in a number of school visits which you are welcome to use if they help – at River Wey Trust Resources. They reference UK curriculum stages…

    River Wey Trust

    in reply to: Different modes #117785

    ajy00
    Participant

    Mohammad

    Following Oliver’s instructions will provide a standard installation with water and ‘drying’ functions. For the various ‘switch’ options you need to extend the installation with the scripts which you have seen on the pages discussing those features.

    in reply to: diagram for sandbox #116205

    ajy00
    Participant

    seek and he shall find …. its all in the site https://arsandbox.ucdavis.edu/instructions/hardware-2/ πŸ˜‰

    in reply to: USB Button Solution #116180

    ajy00
    Participant
Viewing 15 posts - 1 through 15 (of 27 total)