Discussion:
[Rock-dev] syskit: state_machines: react to state changes of childs
Matthias Goldhoorn
2014-09-14 18:21:51 UTC
Permalink
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
-----------------------------------------------------------------------
Sylvain Joyeux
2014-09-16 11:51:17 UTC
Permalink
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.
Post by Matthias Goldhoorn
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
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
Sylvain Joyeux
2014-09-16 11:53:42 UTC
Permalink
Here it is, now:

https://github.com/rock-core/tools-roby/issues/13
Post by Sylvain Joyeux
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.
Post by Matthias Goldhoorn
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
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
Loading...