Bug when failing calls in state machine entry function

RTT v1 state machine, if I have an entry function like this


 state XXX
    {
          entry
              {
                  try YYY.start() 
                   }


or this


   var bool        startedOk   = false;
...
 state XXX
        {
          entry
              {
                  set startedOk = true
                       try YYY.start() catch { set startedOk = false }
                    }


and I set YYY::start() to return false, then the state machine goes into error. According to the doc's this should not happen. Even just "try YYY.start()" should continue, right? See Sections 3.2.7 and 3.2.8 at

http://people.mech.kuleuven.be/~orocos/pub/stable/documentation/rtt/v1.1...

Any ideas?
S

Bug when failing calls in state machine entry function

On Thu, Nov 11, 2010 at 3:54 PM, Stephen Roderick <kiwi [dot] net [..] ...> wrote:
> RTT v1 state machine, if I have an entry function like this
>
> &#10;&gt;  state XXX&#10;&gt;        {&#10;&gt;                entry&#10;&gt;                {&#10;&gt;                        try YYY.start()&#10;&gt;                }&#10;&gt;
>
> or this
>
> &#10;&gt;        var bool        startedOk   = false;&#10;&gt; ...&#10;&gt;  state XXX&#10;&gt;        {&#10;&gt;                entry&#10;&gt;                {&#10;&gt;                        set startedOk = true&#10;&gt;                        try YYY.start() catch { set startedOk = false }&#10;&gt;                }&#10;&gt;
>
> and I set YYY::start() to return false, then the state machine goes into error.  According to the doc's this should not happen. Even just "try YYY.start()" should continue, right? See Sections 3.2.7 and 3.2.8 at
>
> http://people.mech.kuleuven.be/~orocos/pub/stable/documentation/rtt/v1.1...
>
> Any ideas?

It's a bug. I'll add your case to the unit tests, probably it was only
tested in program scripts and not in state machines.

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