Saving and playing back data
Usually, when we work with robotic systems, we have to deal with our resources either being shared or not always available, or with the fact that experiments cannot be done regularly because of the cost or time required for preparing and performing them. For this reason, it is good practice to record the data of the experiment session for later analysis and to work, develop, and test our algorithms. However, the process of saving good data so that we can reproduce the experiment offline is not trivial. Fortunately, in ROS we have powerful tools that have already solved this problem.
ROS can save all the messages published on any topic. It has the ability to create a bag file containing the messages as they are, with all their fields and timestamps. This allows for the reproduction of the experiment offline, with its real conditions on the robot as the latency of message transmissions. What's more, ROS tools do all this efficiently, with a high bandwidth, and in...