Skip to content

Commit

Permalink
Don't allow a running instance to be started. Instance must be stoppe…
Browse files Browse the repository at this point in the history
…d first.
  • Loading branch information
svwilliams committed Jul 30, 2024
1 parent 2c709db commit 7a52098
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fuse_optimizers/src/fixed_lag_smoother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ bool FixedLagSmoother::startServiceCallback(std_srvs::Empty::Request&, std_srvs:

void FixedLagSmoother::start()
{
if (started_)
{
ROS_WARN_STREAM("Requested to start the optimizer while it is already running. Ignoring request.");
return;
}

ROS_INFO_STREAM("Starting optimizer.");
// Tell all the plugins to start
startPlugins();
Expand Down

0 comments on commit 7a52098

Please sign in to comment.