Equivalent of rospy.AnyMsg but only for messages with a Header?
Is there an equivalent of rospy.AnyMsg that would work for all message types with a Header?
I'd like to have a message_filters.TimeSynchronizer
subscribe to a generic message type, but it has to have a Header.
Trying to put AnyMsg into the synchronizer yields:
[ERROR] [/demux_topic] [/opt/ros/jade/lib/python2.7/dist-packages/rospy/topics.py]:[723] [bad callback: <bound method Subscriber.callback of <message_filters.Subscriber instance at 0x7f6d333c75f0>>
Traceback (most recent call last):
File "/opt/ros/jade/lib/python2.7/dist-packages/rospy/topics.py", line 720, in _invoke_callback
cb(msg)
File "/opt/ros/jade/lib/python2.7/dist-packages/message_filters/__init__.py", line 74, in callback
self.signalMessage(msg)
File "/opt/ros/jade/lib/python2.7/dist-packages/message_filters/__init__.py", line 56, in signalMessage
cb(*(msg + args))
File "/opt/ros/jade/lib/python2.7/dist-packages/message_filters/__init__.py", line 190, in add
my_queue[msg.header.stamp] = msg
AttributeError: 'AnyMsg' object has no attribute 'header'