Skip to content

Commit

Permalink
Update deprecated include of boost/progress.hpp to boost/timer/progre…
Browse files Browse the repository at this point in the history
…ss_display.hpp (#2811)
  • Loading branch information
stephanie-eng authored Apr 30, 2024
1 parent 421e3ca commit 3d9a4e2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions moveit_ros/benchmarks/src/BenchmarkExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,10 @@
#include <tf2_eigen/tf2_eigen.hpp>
#include <moveit/utils/logger.hpp>

// TODO(henningkayser): Switch to boost/timer/progress_display.hpp with Boost 1.72
// boost/progress.hpp is deprecated and will be replaced by boost/timer/progress_display.hpp in Boost 1.72.
// Until then we need to suppress the deprecation warning.
#define BOOST_ALLOW_DEPRECATED_HEADERS
#include <boost/regex.hpp>
#include <boost/progress.hpp>
#undef BOOST_ALLOW_DEPRECATED_HEADERS
#include <boost/timer/progress_display.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <math.h>
#include <limits>
Expand Down Expand Up @@ -776,7 +773,7 @@ void BenchmarkExecutor::runBenchmark(moveit_msgs::msg::MotionPlanRequest request
}
num_planners += options.parallel_planning_pipelines.size();

boost::progress_display progress(num_planners * options.runs, std::cout);
boost::timer::progress_display progress(num_planners * options.runs, std::cout);

// Iterate through all planning pipelines
auto planning_pipelines = moveit_cpp_->getPlanningPipelines();
Expand Down

0 comments on commit 3d9a4e2

Please sign in to comment.