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

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

Steven

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