Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/plehmannFS16/data/gui/scripts/testscript.lua @ 11183

Last change on this file since 11183 was 11183, checked in by plehmann, 8 years ago

moved the task classes to the scriptTasks folder. modified the NewScriptController to execute tasks when their time has come modified the tasks so that they tell the controller when they are done

  • Property svn:eol-style set to native
File size: 1.0 KB
RevLine 
[10065]1-- Set some test variables
2xm = 1000 
3ym = 0
4zm = 0
[10035]5
[10065]6xl = -1000 
7yl = 3000 
8zl = -1000
[10035]9
[10075]10xr = 2000
11yr = 500
12zr = 2000
13
[10065]14d = 5
15Tabs = 0
[10035]16
[10065]17pi = 3.1415
[10037]18
[10047]19-- Get a local pointer to a scriptcontroller
[11167]20local ctrl = orxonox.NewScriptController:getNewScriptController()
[10047]21
22-- If it worked, call its "movetoposition" function
[10046]23if ctrl ~= nil then
[10065]24
[11183]25  ctrl:printDebug()
26  ctrl:debugOut(5)
27  ctrl:stringOut(3, "hello")
[11167]28  --ctrl:eventScheduler("mal", xl,yl,zl, xl,yl,zl, 10)
[11152]29  -- ctrl:eventScheduler("ral", xl, yl, zl, 3, 3000, 0, math.pi)
30  -- ctrl:eventScheduler("idle", 1)
31  -- ctrl:eventScheduler("mal", 0,0,1000, xl,yl,zl, 3)
32  -- ctrl:eventScheduler("idle", 1)
33  -- ctrl:eventScheduler("chl", xl, yl, zl, xr, yr, zr, 2)
34  -- ctrl:eventScheduler("idle", 1)
35  -- ctrl:eventScheduler("mal", xr + 600,yr,zr, xr,yr,zr, 4)
36  -- ctrl:eventScheduler("idle", 1)
37  -- ctrl:eventScheduler("chl", xr, yr, zr, xl, yl, zl, 3)
38  -- ctrl:eventScheduler("idle", 1)
39  -- ctrl:eventScheduler("spi", xm,ym,zm, 0,0,0, 4)
40  -- ctrl:eventScheduler("idle", 1)
[10065]41
[10622]42end
Note: See TracBrowser for help on using the repository browser.