Skip to content

Commit

Permalink
Create ros-noetic-rosbag.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Fischer authored Jan 31, 2024
1 parent f85dc87 commit 7e0e6a9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions patch/ros-noetic-rosbag.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/tools/rosbag/src/encrypt.cpp b/tools/rosbag/src/encrypt.cpp
index da4ece4c29..b037957fc0 100644
--- a/tools/rosbag/src/encrypt.cpp
+++ b/tools/rosbag/src/encrypt.cpp
@@ -36,7 +36,7 @@

#include <boost/scoped_ptr.hpp>
#include <boost/program_options.hpp>
-#include <boost/progress.hpp>
+#include <boost/timer/progress_display.hpp>
#include <boost/regex.hpp>

#include <ros/ros.h>
@@ -161,9 +161,9 @@ int encrypt(EncryptorOptions const& options)
outbag.setEncryptorPlugin(options.plugin, options.param);
outbag.setCompression(options.compression);
rosbag::View view(inbag);
- boost::scoped_ptr<boost::progress_display> progress;
+ boost::scoped_ptr<boost::timer::progress_display> progress;
if (!options.quiet)
- progress.reset(new boost::progress_display(view.size(), std::cout, "Progress:\n ", " ", " "));
+ progress.reset(new boost::timer::progress_display(view.size(), std::cout, "Progress:\n ", " ", " "));
for (rosbag::View::const_iterator it = view.begin(); it != view.end(); ++it)
{
outbag.write(it->getTopic(), it->getTime(), *it, it->getConnectionHeader());

0 comments on commit 7e0e6a9

Please sign in to comment.