From 6e4d7184c499730464b956c46f4eaa3d0adb4506 Mon Sep 17 00:00:00 2001 From: Leonardo Brizi Date: Fri, 13 Sep 2024 17:45:26 +0200 Subject: [PATCH] Fix issue in the read_ros2_messages calling --- python/kiss_icp/datasets/mcap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/kiss_icp/datasets/mcap.py b/python/kiss_icp/datasets/mcap.py index 7c75e5d3..d58256fe 100644 --- a/python/kiss_icp/datasets/mcap.py +++ b/python/kiss_icp/datasets/mcap.py @@ -46,7 +46,7 @@ def __init__(self, data_dir: str, topic: str, *_, **__): self.summary = self.bag.get_summary() self.topic = self.check_topic(topic) self.n_scans = self._get_n_scans() - self.msgs = read_ros2_messages(mcap_file, topics=self.topic) + self.msgs = read_ros2_messages(mcap_file, topics=[self.topic]) self.timestamps = [] self.read_point_cloud = read_point_cloud self.use_global_visualizer = True