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)