from StaticNavigation import StaticNavigation

## Create Workspaces first ##
vr_lab_rear = Workspace('VR-Lab-Rear', avango.gua.make_trans_mat(0.0, 0.043, 0.0))

workspaces = [vr_lab_rear]

## Create Navigation instances ##
trace_visibility_list_table_nav = {  "dlp_wall"  : False
                                   , "table" : False 
                                   , "portal" : False
                                  }



spacemouse_navigation = SteeringNavigation()
spacemouse_navigation.my_constructor( STARTING_MATRIX = avango.gua.make_trans_mat(0, 0, 20) * \
                                                        avango.gua.make_rot_mat(0, 0, 1, 0)
                                    , STARTING_SCALE = 50.0
                                    , INPUT_DEVICE_TYPE = 'Spacemouse'
                                    , INPUT_DEVICE_NAME = 'device-spacemouse'
                                    , NO_TRACKING_MAT = avango.gua.make_trans_mat(0.0, 0.0, 0.0)
                                    , GROUND_FOLLOWING_SETTINGS = [False, 0.75]
                                    , INVERT = True
                                    , TRACE_VISIBILITY_LIST = trace_visibility_list_table_nav
                                    , DEVICE_TRACKING_NAME = None
                                    , REACTS_ON_PORTAL_TRANSIT = False)


## Create Display instances. ##
touch_table_3D = TouchTable3D()
workspaces = [vr_lab_rear]

## Create Navigation instances ##
trace_visibility_list_dlp_wall_nav = {  "dlp_wall"  : False
                                      , "table" : True 
                                      , "portal" : False
                                     }

trace_visibility_list_table_nav = {  "dlp_wall"  : False
                                   , "table" : False 
                                   , "portal" : False
                                  }


spheron_navigation = SteeringNavigation()
spheron_navigation.my_constructor( STARTING_MATRIX = avango.gua.make_trans_mat(0, 0, 15) * \
                                                     avango.gua.make_rot_mat(0, 0, 1, 0)
                                 , STARTING_SCALE = 1.0
                                 , INPUT_DEVICE_TYPE = 'NewSpheron'
                                 , INPUT_DEVICE_NAME = 'device-new-spheron'
                                 , NO_TRACKING_MAT = avango.gua.make_trans_mat(0.0, 1.75, 1.6)
                                 , GROUND_FOLLOWING_SETTINGS = [True, 0.75]
                                 , INVERT = False
                                 , TRACE_VISIBILITY_LIST = trace_visibility_list_dlp_wall_nav
                                 , DEVICE_TRACKING_NAME = 'tracking-new-spheron'
                                 , REACTS_ON_PORTAL_TRANSIT = True)

spacemouse_navigation = SteeringNavigation()
spacemouse_navigation.my_constructor( STARTING_MATRIX = avango.gua.make_trans_mat(0, 0, 20) * \
                                                        avango.gua.make_rot_mat(0, 0, 1, 0)
예제 #3
0
    "portal": False
}

trace_visibility_list_table_nav = {
    "dlp_wall": False,
    "lcd_wall": False,
    "portal": False
}

trace_visibility_list_lcd_wall_nav = {
    "dlp_wall": False,
    "lcd_wall": False,
    "portal": False
}

spheron_navigation = SteeringNavigation()
spheron_navigation.my_constructor( STARTING_MATRIX = avango.gua.make_trans_mat(0, 0, 15) * \
                                                     avango.gua.make_rot_mat(0, 0, 1, 0)
                                 , STARTING_SCALE = 1.0
                                 , INPUT_DEVICE_TYPE = 'NewSpheron'
                                 , INPUT_DEVICE_NAME = 'device-new-spheron'
                                 , NO_TRACKING_MAT = avango.gua.make_trans_mat(0.0, 1.75, 1.6)
                                 , GROUND_FOLLOWING_SETTINGS = [True, 0.75]
                                 , INVERT = False
                                 , TRACE_VISIBILITY_LIST = trace_visibility_list_dlp_wall_nav
                                 , DEVICE_TRACKING_NAME = 'tracking-new-spheron'
                                 , REACTS_ON_PORTAL_TRANSIT = True)

xbox_navigation = SteeringNavigation()
xbox_navigation.my_constructor(
    STARTING_MATRIX=avango.gua.make_trans_mat(0, 0, 0),
예제 #4
0
import avango
import avango.gua

# import framework libraries
from Display import *
from Workspace import Workspace
from SteeringNavigation import SteeringNavigation
from StaticNavigation import StaticNavigation

## Create Workspaces first ##
atalante = Workspace('atalante', avango.gua.make_trans_mat(0.0, 0.043, 0.0))

workspaces = [atalante]

## Create Navigation instances ##
spacemouse_navigation = SteeringNavigation()
spacemouse_navigation.my_constructor( STARTING_MATRIX = avango.gua.make_trans_mat(0, 0, 0)
                                    , STARTING_SCALE = 1.0
                                    , INPUT_DEVICE_TYPE = 'Spacemouse'
                                    , INPUT_DEVICE_NAME = 'device-spacemouse'
                                    , NO_TRACKING_MAT = avango.gua.make_trans_mat(0.0, 1.2, 0.6)
                                    , GROUND_FOLLOWING_SETTINGS = [True, 0.75]
                                    , MOVEMENT_TRACES = True
                                    , INVERT = False
                                    , AVATAR_TYPE = 'joseph'
                                    , DEVICE_TRACKING_NAME = None)

keyboard_navigation = SteeringNavigation()
keyboard_navigation.my_constructor( STARTING_MATRIX = avango.gua.make_trans_mat(0, 0, 0)
                                    , STARTING_SCALE = 1.0
                                    , INPUT_DEVICE_TYPE = 'KeyboardMouse'
예제 #5
0
from StaticNavigation import StaticNavigation

## Create Workspaces first ##
vr_lab_rear = Workspace('VR-Lab-Rear',
                        avango.gua.make_trans_mat(0.0, 0.043, 0.0))

workspaces = [vr_lab_rear]

## Create Navigation instances ##
trace_visibility_list_table_nav = {
    "dlp_wall": False,
    "table": False,
    "portal": False
}

spacemouse_navigation = SteeringNavigation()
spacemouse_navigation.my_constructor( STARTING_MATRIX = avango.gua.make_trans_mat(0, 0, 20) * \
                                                        avango.gua.make_rot_mat(0, 0, 1, 0)
                                    , STARTING_SCALE = 50.0
                                    , INPUT_DEVICE_TYPE = 'Spacemouse'
                                    , INPUT_DEVICE_NAME = 'device-spacemouse'
                                    , NO_TRACKING_MAT = avango.gua.make_trans_mat(0.0, 0.0, 0.0)
                                    , GROUND_FOLLOWING_SETTINGS = [False, 0.75]
                                    , INVERT = True
                                    , TRACE_VISIBILITY_LIST = trace_visibility_list_table_nav
                                    , DEVICE_TRACKING_NAME = None
                                    , REACTS_ON_PORTAL_TRANSIT = False)

## Create Display instances. ##
touch_table_3D = TouchTable3D()
    "/opt/kinect-resources/kinect_surface_K_23_24_25.ks",
    avango.gua.make_trans_mat(0.0, 0.043, 1.6),
    video_visibility_table,
)

workspaces = [vr_lab_rear, vr_lab_front]

## Create Navigation instances ##
trace_visibility_list_dlp_wall_nav = {"dlp_wall": False, "lcd_wall": False, "portal": False}

trace_visibility_list_table_nav = {"dlp_wall": False, "lcd_wall": False, "portal": False}

trace_visibility_list_lcd_wall_nav = {"dlp_wall": False, "lcd_wall": False, "portal": False}


spheron_navigation = SteeringNavigation()
spheron_navigation.my_constructor(
    STARTING_MATRIX=avango.gua.make_trans_mat(0, 0, 15) * avango.gua.make_rot_mat(0, 0, 1, 0),
    STARTING_SCALE=1.0,
    INPUT_DEVICE_TYPE="NewSpheron",
    INPUT_DEVICE_NAME="device-new-spheron",
    NO_TRACKING_MAT=avango.gua.make_trans_mat(0.0, 1.75, 1.6),
    GROUND_FOLLOWING_SETTINGS=[True, 0.75],
    INVERT=False,
    TRACE_VISIBILITY_LIST=trace_visibility_list_dlp_wall_nav,
    DEVICE_TRACKING_NAME="tracking-new-spheron",
    REACTS_ON_PORTAL_TRANSIT=True,
)


xbox_navigation = SteeringNavigation()