Skip to content

Commit

Permalink
Adding same logs to batch optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLocus committed Jul 17, 2024
1 parent c673d9f commit 769c5c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuse_optimizers/src/batch_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,15 @@ bool BatchOptimizer::startServiceCallback(std_srvs::Empty::Request&, std_srvs::E

void BatchOptimizer::start()
{
ROS_INFO_STREAM("Starting optimizer.");
// Tell all the plugins to start
startPlugins();
ROS_INFO_STREAM("Starting optimizer complete.");
}

void BatchOptimizer::stop()
{
ROS_INFO_STREAM("Stopping optimizer.");
// Tell all the plugins to stop
stopPlugins();
// Reset the optimizer state
Expand Down Expand Up @@ -315,6 +318,7 @@ void BatchOptimizer::stop()
std::lock_guard<std::mutex> lock(pending_transactions_mutex_);
pending_transactions_.clear();
}
ROS_INFO_STREAM("Optimizer stopping complete.");
}

} // namespace fuse_optimizers

0 comments on commit 769c5c4

Please sign in to comment.