Read Data
Play back data from log file
- Library:
ROS Toolbox / ROS
Description
TheRead Datablock plays back rosbag logfiles by outputting the most recent message from the log file based on the current simulation time. You must load a rosbag log file (.bag
) and specify theTopic
in the block mask to get a stream of messages from the file. Messages on this topic are output from the file in sync with the simulation time.
In theRead Datablock mask, clickLoad log file datato specify a rosbag log file (.bag
) to load. In theLoad Log Filewindow, specify aStart time offset, in seconds, to start playback at a certain point in the file.Durationspecifies how long the block should play back this file in seconds. By default, the block outputs all messages for the specificTopic
in the file.