Hi Developers,
I have a main Orocos script that call another Orocos scripts using:scripting.loadPrograms("xxxx.ops");
my problem is that the loadComponent() instruction into the "xxxx.ops" appear as error:
0.074 [ ERROR ][ProgramLoader::loadProgram] loggers.ops :Parse error at line 10: Syntactic error: Expected a valid identifier.
[main.ops]
import("rtt"); import("orocos/ocl"); scripting.loadPrograms("loggers.ops"); scripting.loadPrograms("buffers.ops"); scripting.loadPrograms("component1.ops"); scripting.loadPrograms("component2.ops"); {...}
[loggers.ops]
loadComponent("theAppender", "OCL::logging::FileAppender"); loadComponent("logS", "OCL::logging::LoggingService"); {...}
Somebody have an alternative to split orocos script's sentences into agrouped files?
Thanks in advance
Toni
close this thread
Ok friends, I solve it... I readed that I'm using the wrong service function. I change
loadPrograms
it byrunScript
and now all is ok.Sorry for my noise.
Toni