Skip to content

Commit

Permalink
fix(costmap_generator): wait for lanelet map (autowarefoundation#2765)
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
  • Loading branch information
kosuke55 committed Feb 14, 2023
1 parent c2adf26 commit b344236
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 b344236

Please sign in to comment.