Dear Developers,
I'm try to configure logger/appenders on my sourcode, at the moment I'm using RTT:Logger on it and start the component using Lua script (*.ops). I see some examples to configure the appenders using XML files, but how I can configure it using Script?
Thanks in advance Toni
Configuring loggers
On Tuesday 20 September 2011 13:22:31 antonio [dot] castellon [..] ... wrote:
> Dear Developers,
>
> I'm try to configure logger/appenders on my sourcode, at the moment I'm
> using RTT:Logger on it and start the component using Lua script (*.ops). I
> see some examples to configure the appenders using XML files, but how I
> can configure it using Script?
You can't use the RTT::Logger yet for Orocos 2.0 logging. You need to use
the OCL::logging approach if you use the official sources. See
http://www.orocos.org/wiki/rtt/rtt-20/real-time-logging/using-real-time-
logging
I tried to update that wiki page with a Lua example, but I was unsure how the
properties could be set directly in Lua. So I gave an example for loading an
xml file with these properties. It's a wiki, so others (or yourself) could help
out too.
Peter
Configuring loggers
On Thursday 22 September 2011 11:00:25 Antonio Castellon wrote:
> Thanks Peter,
> Perhaps I'm using incorrectly the Orocos middleware, I'm using Orocos
> Script (.ops) to integrate in one file the load of components, the
> connection data flow policies and the connection ports...and finally the
> definition of the StateMachine for the component. I'm thinking about if it
> is the correct way to use them or perhaps is better to use XML for
> definition (for me is more clean to use script than xml files).
XML is not necessary. If you want to do everything in scripts, that's
perfectly fine. Right now, you need to choose between lua or rtt scripting, but
you can load an rtt script from lua too using the 'scripting' service.
> In other hand, I'm not see examples to use StateMachines with xml files. It
> is possible or need to do with different files ?.... If yes, then I suposse
>
> that I load files with the same command:
> >deploy-gnulinux -s stateMachine.ops ComponentsLoadDefinition.xml
See deployer-gnulinux --help for the options. You need to specify '-s' in
front of each file. The order is important, so first do the loading of the
components and then the state machine.
Peter
Configuring loggers
Thanks again for your responses.
I'm trying to use Orocos-rtt-Script instead of Lua-Scripting, perhaps I can
help to you with the same example that you post but, based on
Orocos-rtt-script. The question is that I search documentation about how to
use the available commands and objects(components) on the orocos website and
found nothing. Do you know where I can found documentation (something like
API or extended documentation) about the use of Orocos-rtt-scripting ? I see
the common declaration of the language on orocos-component-builder document,
but nothing about the availables commands and is a nigthmare test all
combinations that cross my mind.
Thanks again in advance
Best regards,
Toni
---- "*Si los españoles hablasen** sólo de lo que saben, habría un gran
silencio que podríamos aprovechar todos para **estudiar*" ( Manuel Azaña )
2011/9/22 Peter Soetens <peter [..] ...>
> On Thursday 22 September 2011 11:00:25 Antonio Castellon wrote:
> > Thanks Peter,
> > Perhaps I'm using incorrectly the Orocos middleware, I'm using Orocos
> > Script (.ops) to integrate in one file the load of components, the
> > connection data flow policies and the connection ports...and finally the
> > definition of the StateMachine for the component. I'm thinking about if
> it
> > is the correct way to use them or perhaps is better to use XML for
> > definition (for me is more clean to use script than xml files).
>
> XML is not necessary. If you want to do everything in scripts, that's
> perfectly fine. Right now, you need to choose between lua or rtt scripting,
> but
> you can load an rtt script from lua too using the 'scripting' service.
>
>
> > In other hand, I'm not see examples to use StateMachines with xml files.
> It
> > is possible or need to do with different files ?.... If yes, then I
> suposse
> >
> > that I load files with the same command:
> > >deploy-gnulinux -s stateMachine.ops ComponentsLoadDefinition.xml
>
> See deployer-gnulinux --help for the options. You need to specify '-s' in
> front of each file. The order is important, so first do the loading of the
> components and then the state machine.
>
> Peter
>