print debug message in runCompute

so that it prints from all containers
This commit is contained in:
v4hn 2021-09-01 14:53:14 +02:00
parent f51f6eb982
commit fa8d21741c
2 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,8 @@
#include <moveit/task_constructor/cost_terms.h>
#include <moveit/task_constructor/cost_queue.h>
#include <ros/console.h>
#include <ostream>
#include <chrono>
@ -148,6 +150,7 @@ public:
void newSolution(const SolutionBasePtr& solution);
bool storeFailures() const { return introspection_ != nullptr; }
void runCompute() {
ROS_DEBUG_STREAM_NAMED("Stage", "Computing stage '" << name() << "'");
auto compute_start_time = std::chrono::steady_clock::now();
compute();
auto compute_stop_time = std::chrono::steady_clock::now();

View File

@ -640,7 +640,6 @@ void SerialContainer::compute() {
if (!stage->pimpl()->canCompute())
continue;
ROS_DEBUG("Computing stage '%s'", stage->name().c_str());
stage->pimpl()->runCompute();
} catch (const Property::error& e) {
stage->reportPropertyError(e);