Hello,
I want to call the trigger of the update component inside a methodi of a peer
TaskContexti.
I tried the following code: this->getPeer("Reporting")->doTrigger();
But this doesn't seem to work.
Any ideas?
Tinne
The Orocos ProjectSmarter control in robotics & automation! |
|
calling reporter trigger from peer
calling reporter trigger from peerSubmitted by Tinne De Laet on Fri, 2008-02-29 08:10.
Hi, Thanks for your answer Victor!
> > I want to call the trigger of the update component inside a methodi of a
> What is the return value (false or true) of your doTrigger() call?
and Greetings, Tinne
|
NavigationUser login |
calling reporter trigger from peer
Tinne De Laet wrote:
> Hello,
>
> I want to call the trigger of the update component inside a methodi of a peer
> TaskContexti.
> I tried the following code: this->getPeer("Reporting")->doTrigger();
> But this doesn't seem to work.
>
> Any ideas?
>
> Tinne
>
Hi,
What is the return value (false or true) of your doTrigger() call?
And since the behaviour of trigger() depends on the ActivityInterface
implemented, what is the activity associated with the Reporting peer
(PeriodicActivity, NonPeriodicActivity, EventDriven, etc.)?
For example, for an EventDriven/Periodic activity a trigger() will
always just return false without doing anything.
You can have a quick look at NonPeriodicActivity.cpp / PeriodicActivity.cpp
/ etc. in http://svn.mech.kuleuven.be/websvn/orocos/trunk/rtt/src/
to see what the exact trigger behaviour is with your activity.
Hope that helps.
Viktor STARK