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
easylyou and Kai-Tao Xie authored Sep 7, 2021
1 parent edffb4d commit 2e6594c
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 2e6594c

Please sign in to comment.