Why give me this error? AttributeError: 'int' object has no ...
answers.ros.org › question › 289253This is really a Python issue, not a ROS one, but: global a,b, callback, callback2, data, data1 [..] data=0 [..] def listener(): [..] m= data.a [..] The variable data is just an integer, not an object, or some other composite structure. You cannot index into it, nor use the dot operator to select contained fields.