ros-visualization / rqt_bag

http://wiki.ros.org/rqt_bag
29 stars 53 forks source link

Fixed publisher creation error #107

Closed wawanbreton closed 1 year ago

wawanbreton commented 2 years ago

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

clalancette commented 1 year ago

We ended up doing a similar fix in #113 . Sorry we missed this, but closing this one out.