diff --git a/src/behavior_server.cpp b/src/behavior_server.cpp index d6f7568..0d2c4ae 100644 --- a/src/behavior_server.cpp +++ b/src/behavior_server.cpp @@ -77,7 +77,7 @@ BehaviorServer::on_configure(const rclcpp_lifecycle::State & /*state*/) transform_listener_ = std::make_shared(*tf_); std::string costmap_topic, footprint_topic, robot_base_frame; - double transform_tolerance; + double transform_tolerance = 0.0; this->get_parameter("costmap_topic", costmap_topic); this->get_parameter("footprint_topic", footprint_topic); this->get_parameter("transform_tolerance", transform_tolerance);