From 77e68e81911278ba20311fc265d3b4a5a35c4015 Mon Sep 17 00:00:00 2001 From: Marko Durkovic Date: Sat, 3 Jul 2021 13:52:03 +0200 Subject: [PATCH] Fix rv tuple order of messages() in docs --- docs/topics/rosbag1.rst | 4 ++-- docs/topics/rosbag2.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/topics/rosbag1.rst b/docs/topics/rosbag1.rst index e718188e..02ab7144 100644 --- a/docs/topics/rosbag1.rst +++ b/docs/topics/rosbag1.rst @@ -18,10 +18,10 @@ Instances of the :py:class:`Reader ` class are typically print(topic, info) # iterate over messages - for topic, msgtype, rawdata, timestamp in reader.messages(): + for topic, msgtype, timestamp, rawdata in reader.messages(): if topic == '/imu_raw/Imu': print(timestamp) # messages() accepts topic filters - for topic, msgtype, rawdata, timestamp in reader.messages(['/imu_raw/Imu']): + for topic, msgtype, timestamp, rawdata in reader.messages(['/imu_raw/Imu']): print(timestamp) diff --git a/docs/topics/rosbag2.rst b/docs/topics/rosbag2.rst index 17bf3129..68c7edb2 100644 --- a/docs/topics/rosbag2.rst +++ b/docs/topics/rosbag2.rst @@ -60,6 +60,6 @@ Instances of the :py:class:`Reader ` class are used to r print(msg.header.frame_id) # messages() accepts topic filters - for topic, msgtype, rawdata, timestamp in reader.messages(['/imu_raw/Imu']): + for topic, msgtype, timestamp, rawdata in reader.messages(['/imu_raw/Imu']): msg = deserialize_cdr(rawdata, msgtype) print(msg.header.frame_id)