Skip to content
Snippets Groups Projects
Commit 5f67b52e authored by Matthew Hansen's avatar Matthew Hansen Committed by Matt Hansen
Browse files

Remove publishing map every 2 seconds

parent 74dd39fd
No related branches found
No related tags found
No related merge requests found
......@@ -183,10 +183,6 @@ nav2_util::CallbackReturn OccGridLoader::on_activate(const rclcpp_lifecycle::Sta
occ_pub_->on_activate();
occ_pub_->publish(*msg_);
// due to timing / discovery issues, need to republish map
auto timer_callback = [this]() -> void {occ_pub_->publish(*msg_);};
timer_ = node_->create_wall_timer(2s, timer_callback);
return nav2_util::CallbackReturn::SUCCESS;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment