Robotics StackExchange | Archived questions

[rospy, smach] CBState to class callback?

Hi folks,

I'm trying to call a callback through a smach.CBState that is a member of a class. The first parameter that is given to the callback is not self like I would expect, but userdata instead. So I cannot use class members inside the callback as they don't exist in the given userdata.

Any idea on how I can do that?

Thanks a lo!

Cheers, Hendrik

Asked by Hendrik Wiese on 2014-06-05 11:12:40 UTC

Comments

Hi, I am facing the same issue, could you please point towards where this could be resolved ?

Cheers, Amar

Asked by amarbanerjee23 on 2017-09-01 07:21:47 UTC

Answers