RTT-exercises

Hi,

We are trying to do the rtt-exercices 'hello-2-properties' with the version 2.0 of RTT. As you advice us yesterday, we ask our questions to the mailing-list. When we are trying to launch the program. We have the following message. Is it normal?

0.006 [ Info ][main()] **** Starting the 'Hello' component **** 0.006 [ Info ][main()] **** Using the 'Hello' component **** 0.006 [ Info ][main()] **** Reading a Property: **** helloworld: HelloWorld.cpp:128: int ORO_main_impl(int, char**): Assertion `p.ready()' failed. Aborted

Thank you in advance.

RTT-exercises

On Friday 25 June 2010 10:23:38 pierre [..] ... wrote:
> Hi,
>
> We are trying to do the rtt-exercices 'hello-2-properties' with the version
> 2.0 of RTT. As you advice us yesterday, we ask our questions to the
> mailing-list. When we are trying to launch the program. We have the
> following message. Is it normal?
>
> 0.006 [ Info ][main()] **** Starting the 'Hello' component ****
> 0.006 [ Info ][main()] **** Using the 'Hello' component ****
> 0.006 [ Info ][main()] **** Reading a Property: ****
> helloworld: HelloWorld.cpp:128: int ORO_main_impl(int, char**): Assertion
> `p.ready()' failed. Aborted

It's due to a bug in TaskContext.hpp. I've pushed the fix to the 2.0 mainline,
so you'll have to recompile & reinstall RTT. Hopefully ccache was setup on
your system, otherwise, set it up first and then recompile RTT :-)

In the meantime, avoid using the 'getProperty(name)' function from the
TaskContext class. You can replace it by using the equivalent:

hello.provides()->getProperty("the_property");

which should work fine.

Thanks for reporting,
Peter

RTT-exercises

Dear,

We are sorry to inform you that there is still a problem.
We have tried to :
- update rtt_2.0 by svn
- update rtt-2.0 by git
- rosmake rtt_2.0
- we have changed the use of Getproperty as you advice us.
-make the exercises
-then when we launch it it's the same bug.

0.004 [ Warning][Thread] Forcing priority (1) of thread with SCHED_OTHER
policy to 0.
0.004 [ Warning][Activity] Lowering scheduler type to SCHED_OTHER for
non-privileged users..
0.004 [ Info ][Activity] Thread created with scheduler type '0', priority
0 and period 0.5.
0.004 [ Info ][main()] **** Starting the 'Hello' component ****
0.004 [ Info ][main()] Start HOOK !
0.004 [ Info ][main()] **** Using the 'Hello' component ****
0.005 [ Info ][main()] **** Reading a Property: ****
helloworld: HelloWorld.cpp:161: int ORO_main_impl(int, char**): Assertion
`p.ready()' failed.
Aborted

Thank you for your help.

2010/6/25 Peter Soetens <peter [..] ...>

> On Friday 25 June 2010 10:23:38 pierre [..] ... wrote:
> > Hi,
> >
> > We are trying to do the rtt-exercices 'hello-2-properties' with the
> version
> > 2.0 of RTT. As you advice us yesterday, we ask our questions to the
> > mailing-list. When we are trying to launch the program. We have the
> > following message. Is it normal?
> >
> > 0.006 [ Info ][main()] **** Starting the 'Hello' component ****
> > 0.006 [ Info ][main()] **** Using the 'Hello' component ****
> > 0.006 [ Info ][main()] **** Reading a Property: ****
> > helloworld: HelloWorld.cpp:128: int ORO_main_impl(int, char**): Assertion
> > `p.ready()' failed. Aborted
>
> It's due to a bug in TaskContext.hpp. I've pushed the fix to the 2.0
> mainline,
> so you'll have to recompile & reinstall RTT. Hopefully ccache was setup on
> your system, otherwise, set it up first and then recompile RTT :-)
>
> In the meantime, avoid using the 'getProperty(name)' function from the
> TaskContext class. You can replace it by using the equivalent:
>
> hello.provides()->getProperty("the_property");
>
> which should work fine.
>
> Thanks for reporting,
> Peter
>

RTT-exercises

On Friday 25 June 2010 14:49:04 Pierre ANDRE wrote:
> Dear,
>
> We are sorry to inform you that there is still a problem.
> We have tried to :
> - update rtt_2.0 by svn
> - update rtt-2.0 by git
> - rosmake rtt_2.0
> - we have changed the use of Getproperty as you advice us.
> -make the exercises
> -then when we launch it it's the same bug.

I should have tested it :-) You're right, that other function is *also*
broken. I have pushed that fix too. In the mean time, this should really work:

Property<std::string> p = hello.properties()->getProperty("the_property");

instead of hello.provides()...

Hang on !

Peter

RTT-exercises

Hi,

We are trying to do the rtt-exercices 'hello-2-properties' with the version 2.0 of RTT. As you advice us yesterday, we ask our questions to the mailing-list.
When we are trying to launch the program. We have the following message. Is it normal?

0.006 [ Info ][main()] **** Starting the 'Hello' component ****
0.006 [ Info ][main()] **** Using the 'Hello' component ****
0.006 [ Info ][main()] **** Reading a Property: ****
helloworld: HelloWorld.cpp:128: int ORO_main_impl(int, char**): Assertion `p.ready()' failed.
Aborted

Thank you in advance.