| Line | |
|---|
| 1 | --k = 1.2 |
|---|
| 2 | |
|---|
| 3 | --orxonox.execute("orxout message test " .. k) |
|---|
| 4 | |
|---|
| 5 | -- Set some test variables |
|---|
| 6 | x = 1.1 |
|---|
| 7 | y = 2.2 |
|---|
| 8 | z = 3.3 |
|---|
| 9 | |
|---|
| 10 | --os.execute("sleep " .. 2) |
|---|
| 11 | |
|---|
| 12 | -- Get a local pointer to a scriptcontroller |
|---|
| 13 | local ctrl = orxonox.ScriptController:getScriptController() |
|---|
| 14 | |
|---|
| 15 | -- If it worked, call its "movetoposition" function |
|---|
| 16 | if ctrl ~= nil then |
|---|
| 17 | ctrl:eventScheduler("moveToPosition_beta", x, y, z, 0.01) |
|---|
| 18 | end |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | -- Output the newctrlid variable we set from the C++ code |
|---|
| 23 | if newctrlid ~= nil then |
|---|
| 24 | orxonox.execute("orxout message test " .. newctrlid) |
|---|
| 25 | end |
|---|
| 26 | |
|---|
| 27 | --orxonox.execute("setPause 1") |
|---|
| 28 | |
|---|
| 29 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.