Skip to content

Commit

Permalink
fix(costmap_generator): wait for lanelet map (#2765)
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 authored Jan 27, 2023
1 parent 28f6c1f commit 45079b5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ void CostmapGenerator::onTimer()

bool CostmapGenerator::isActive()
{
if (!lanelet_map_) {
return false;
}

if (activate_by_scenario_) {
if (scenario_) {
const auto & s = scenario_->activating_scenarios;
Expand Down

0 comments on commit 45079b5

Please sign in to comment.