Skip to content

Commit

Permalink
Fix uninitialized value (#3651)
Browse files Browse the repository at this point in the history
* In NAV2, this warning is treated as an error

Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 authored Jun 24, 2023
1 parent b4c17f6 commit 4d060c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nav2_costmap_2d/plugins/costmap_filters/costmap_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void CostmapFilter::onInitialize()
// Get parameters
node->get_parameter(name_ + "." + "enabled", enabled_);
filter_info_topic_ = node->get_parameter(name_ + "." + "filter_info_topic").as_string();
double transform_tolerance;
double transform_tolerance {};
node->get_parameter(name_ + "." + "transform_tolerance", transform_tolerance);
transform_tolerance_ = tf2::durationFromSec(transform_tolerance);

Expand Down

0 comments on commit 4d060c3

Please sign in to comment.