Defining and configuring Reporter in scripts

Hey,

Can someone tell me how to define and configure a "Reporter" in a script? Thanks a lot,

Bert

Defining and configuring Reporter in scripts

On Thu, 2011-06-23 at 15:26 +0200, bert [dot] willaert [..] ... wrote:
> Hey,
>
> Can someone tell me how to define and configure a "Reporter" in a script?
> Thanks a lot,

I took the example displayed below from this file:
https://amigo.wtb.tue.nl/svn/amigo/code/tue-ros-pkg/trunk/tue_actuation/...

#Setting up reporting
loadComponent("BaseReporter", "OCL::FileReporting")
BaseReporter.ReportFile = "/home/amigo/basereports.dat"
#addPeer("BaseReporter","ReadWheelEncoders")
#BaseReporter.reportPort("ReadWheelEncoders","out")
#addPeer("BaseReporter","Peer")
#BaseReporter.reportPort("Peer","port")
BaseReporter.NullSample = "-1"

Tim
>
> Bert

Defining and configuring Reporter in scripts

Hey Bert,

2011/6/23 bert [dot] willaert [..] ... <bert [dot] willaert [..] ...>:
> Hey,
>
> Can someone tell me how to define and configure a "Reporter" in a script?
> Thanks a lot,

Commands to get this working with a deploy script look like

&#10;loadComponent(&quot;reporter&quot;,&quot;OCL::FileReporting&quot;)&#10;setActivity(&quot;reporter&quot;,0.01,HighestPriority,ORO_SCHED_RT)&#10;&#10;connectPeers(&quot;reporter&quot;,&quot;yourComponent&quot;)&#10;&#10;reporter.ReportData(&quot;yourComponent&quot;,&quot;yourComponentPropertyName&quot;)&#10;reporter.ReportPort(&quot;yourComponent&quot;,&quot;yourComponentPortName&quot;)&#10;&#10;#(optionally, overwrite the default report file name)&#10;reporter.ReportFile = &quot;newName.dat&quot;&#10;&#10;reporter.configure()&#10;reporter.start()&#10;&#10;

Steven

>
> Bert
> --
> Orocos-Users mailing list
> Orocos-Users [..] ...
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-users
>