With some rosbags, I had en error where the publisher could not be created when re-playing them :
[ERROR] [1648645025.626918903] [rqt_gui_py_node_7655.rqt_bag.Player]: Error creating publisher on topic /scan for type <class 'sensor_msgs.msg._laser_scan.LaserScan'>.Error text: 'NoneType' object is not iterableTraceback (most recent call last):File "/opt/ros/galactic/lib/python3.8/site-packages/rqt_bag/player.py", line 163, in eventself.message_viewed(bag, entry)File "/opt/ros/galactic/lib/python3.8/site-packages/rqt_bag/player.py", line 151, in message_viewedself._publishers[topic].publish(ros_message)KeyError: '/scan'
I made a simple fix, which may not be the most appropriate, but does works
With some rosbags, I had en error where the publisher could not be created when re-playing them :
[ERROR] [1648645025.626918903] [rqt_gui_py_node_7655.rqt_bag.Player]: Error creating publisher on topic /scan for type <class 'sensor_msgs.msg._laser_scan.LaserScan'>.
Error text: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/opt/ros/galactic/lib/python3.8/site-packages/rqt_bag/player.py", line 163, in event
self.message_viewed(bag, entry)
File "/opt/ros/galactic/lib/python3.8/site-packages/rqt_bag/player.py", line 151, in message_viewed
self._publishers[topic].publish(ros_message)
KeyError: '/scan'
I made a simple fix, which may not be the most appropriate, but does works