Skip to content

Commit

Permalink
fix pf_ use-before-initial in laserReceived() callback (#2550)
Browse files Browse the repository at this point in the history
Co-authored-by: Kai-Tao Xie <[email protected]>
  • Loading branch information
2 people authored and SteveMacenski committed Sep 14, 2021
1 parent 6ce9462 commit f4b65b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nav2_amcl/src/amcl_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ AmclNode::on_configure(const rclcpp_lifecycle::State & /*state*/)

initParameters();
initTransforms();
initParticleFilter();
initLaserScan();
initMessageFilters();
initPubSub();
initServices();
initOdometry();
initParticleFilter();
initLaserScan();

return nav2_util::CallbackReturn::SUCCESS;
}
Expand Down

0 comments on commit f4b65b0

Please sign in to comment.