Running exported ops script functions from Lua (formerly: Deployment within a state machine)
Markus Klotzbuecher <[email protected]>
| Newsgroups | gmane.science.robotics.orocos.devel |
|---|---|
| Message-ID | <20121210090819.GA22695@PMA-10-048> |
On Fri, Dec 07, 2012 at 10:27:27PM +0100, Peter Soetens wrote:
...
> What remains now is checking why the lua syntax bailed out...
I get something else... Using your example:
$ cat test.ops
require("print")
export function foo()
{
print.ln("ok")
}
$ cat test3.lua
tc=rtt.getTC()
depl=tc:getPeer("deployer")
depl:loadService("deployer", "scripting")
assert(depl:start)
print("running script")
depl:runScript("test.ops")
print("calling foo")
depl:foo()
Running this hangs forever in runScript, with your latest patch
applied and regardless of whether the deployer is started or not.
$ rttlua-gnulinux test3.lua
Real-time memory: 517904 bytes free of 524288 allocated.
running script
Any ideas?
Markus
--
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev