Can smach userdata be any object? [closed]

asked 2013-08-30 10:55:23 -0600

Riko gravatar image

updated 2014-04-20 14:06:45 -0600

ngrennan gravatar image

I'm using smach to structure an hierarchical state machine. The top level fsm (top_fsm) has an object from class Listener which basically has a set of subscribers and data loggers.

Structured that way, the msgs coming in and logged independently of the fsm. However, I'd like all the states and substates in the fsm to have access to the listener, its members and methods. Based on members, the states compute the predefined conditions for transitions.

Can the "userdata" attribute have one of its "input_keys" as that Listener object? Any help is appreciated.


edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-12-05 18:40:48.804541