AttributeError: 'str' object has no attribute 'topic'
Environment
Ubuntu 22.04 Python 3.10.4 Version: 0.9.13
Installed with pip install
The Issue
Simply running the example code and specifying a topic to an Odom message throws the following error
Traceback (most recent call last):
File "/home/matt/projects/particle-filter/experiments/scripts/plot.py", line 29, in <module>
for connection, timestamp, rawdata in reader.messages(['/gps']):
File "/home/matt/.local/lib/python3.10/site-packages/rosbags/rosbag2/reader.py", line 218, in messages
topics = {x.topic for x in connections}
File "/home/matt/.local/lib/python3.10/site-packages/rosbags/rosbag2/reader.py", line 218, in <setcomp>
topics = {x.topic for x in connections}
AttributeError: 'str' object has no attribute 'topic'