Skip to content

Commit

Permalink
Actually delay messages. (ros#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojura authored and SirVer committed Jul 5, 2017
1 parent 84b14a4 commit 7640047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartographer_ros/cartographer_ros/offline_node_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void Run(const std::vector<string>& bag_filenames) {

while (!delayed_messages.empty() &&
delayed_messages.front().getTime() <
msg.getTime() + ::ros::Duration(1.)) {
msg.getTime() - ::ros::Duration(1.)) {
const rosbag::MessageInstance& delayed_msg = delayed_messages.front();
const string topic = node.node_handle()->resolveName(
delayed_msg.getTopic(), false /* resolve */);
Expand Down

0 comments on commit 7640047

Please sign in to comment.