diff --git a/rosbag_snapshot/package.xml b/rosbag_snapshot/package.xml index 1779d14..81cb850 100644 --- a/rosbag_snapshot/package.xml +++ b/rosbag_snapshot/package.xml @@ -1,7 +1,7 @@ rosbag_snapshot - 1.0.3 + 1.1.0 The rosbag_snapshot package Kevin Allen David V. Lu!! diff --git a/rosbag_snapshot/src/snapshotter.cpp b/rosbag_snapshot/src/snapshotter.cpp index 407e074..863bebd 100644 --- a/rosbag_snapshot/src/snapshotter.cpp +++ b/rosbag_snapshot/src/snapshotter.cpp @@ -311,7 +311,7 @@ bool Snapshotter::writeTopic(rosbag::Bag& bag, MessageQueue& message_queue, stri MessageQueue::range_t range = message_queue.rangeFromTimes(req.start_time, req.stop_time); // open bag if this the first valid topic and there is data - if (!bag.isOpen() && range.second > range.first) + if (bag.getFileName().empty() && range.second > range.first) { try { @@ -425,7 +425,7 @@ bool Snapshotter::triggerSnapshotCb(rosbag_snapshot_msgs::TriggerSnapshot::Reque } // If no topics were subscribed/valid/contained data, this is considered a non-success - if (!bag.isOpen()) + if (bag.getFileName().empty()) { res.success = false; res.message = res.NO_DATA_MESSAGE; diff --git a/rosbag_snapshot_msgs/package.xml b/rosbag_snapshot_msgs/package.xml index 509078f..c398b04 100644 --- a/rosbag_snapshot_msgs/package.xml +++ b/rosbag_snapshot_msgs/package.xml @@ -1,7 +1,7 @@ rosbag_snapshot_msgs - 1.0.3 + 1.1.0 Service and message definitions for rosbag_snapshot Kevin Allen