Skip to content

Commit

Permalink
Satisfy uncrustify
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
  • Loading branch information
mxgrey committed Apr 14, 2022
1 parent 34e3826 commit f4d82fe
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions rmf_fleet_adapter/src/rmf_fleet_adapter/agv/RobotUpdateHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,20 +576,20 @@ void RobotUpdateHandle::Unstable::declare_holding(
at_position,
for_duration
](const auto&)
{
if (const auto context = w.lock())
{
const auto now = context->now();
const auto zero = Eigen::Vector3d::Zero();
rmf_traffic::Trajectory holding;
holding.insert(now, at_position, zero);
holding.insert(now + for_duration, at_position, zero);

context->itinerary().set(
context->itinerary().assign_plan_id(),
{{std::move(on_map), std::move(holding)}});
}
});
if (const auto context = w.lock())
{
const auto now = context->now();
const auto zero = Eigen::Vector3d::Zero();
rmf_traffic::Trajectory holding;
holding.insert(now, at_position, zero);
holding.insert(now + for_duration, at_position, zero);

context->itinerary().set(
context->itinerary().assign_plan_id(),
{{std::move(on_map), std::move(holding)}});
}
});
}
}

Expand Down

0 comments on commit f4d82fe

Please sign in to comment.