[Rock-dev] syskit: state_machines: react to state changes of childs

Sylvain Joyeux bir.sylvain at gmail.com
Tue Sep 16 13:51:17 CEST 2014


This is a forgotten bug ...

The first argument to transition is the *state* in which the
transition should be active. You need to do

  transition(state, event, new_state)

The bug (that Malte had a while ago) is that there's some validation missing.

2014-09-14 15:21 GMT-03:00 Matthias Goldhoorn <matthias.goldhoorn at dfki.de>:
> I tried to react to state changes of childs like
>
>
> transition(foo.bla_child.some_event, ...)
> or
> transition(foo.find_event('some_event_of_child'),...)
>
> none of this is working, find event results in nil, and bla_child is
> unknown (even imm sure the composition has a bla child).
> Is threre a other way to do something like that?
>
> Best,
> Matthias
>
> --
>   --
>   Matthias Goldhoorn
>   Unterwasserrobotik
>
>   Standort Bremen:
>   DFKI GmbH
>   Robotics Innovation Center
>   Robert-Hooke-Straße 5
>   28359 Bremen, Germany
>
>   Phone: +49 (0)421 218-64100
>   Fax:   +49 (0)421 218-64150
>   E-Mail: robotik at dfki.de
>
>   Weitere Informationen: http://www.dfki.de/robotik
>   -----------------------------------------------------------------------
>   Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
>   Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
>   Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
>   (Vorsitzender) Dr. Walter Olthoff
>   Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
>   Amtsgericht Kaiserslautern, HRB 2313
>   Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
>   USt-Id.Nr.:    DE 148646973
>   Steuernummer:  19/673/0060/3
>   -----------------------------------------------------------------------
>
>
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev


More information about the Rock-dev mailing list