Commit 1275f6f 1 parent e8d80c0 commit 1275f6f Copy full SHA for 1275f6f
File tree 1 file changed +6
-5
lines changed
map/map_loader/src/lanelet2_map_loader
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,16 @@ Lanelet2MapLoaderNode::Lanelet2MapLoaderNode(const rclcpp::NodeOptions & options
83
83
declare_parameter (" lanelet2_map_path" , " " );
84
84
declare_parameter (" center_line_resolution" );
85
85
86
- std::vector<std::string> tmp_lanelet2_paths_or_directory =
87
- declare_parameter<std::vector<std::string>>(" lanelet2_map_folder_path" );
88
- std::string tmp_lanelet2_map_metadata_path =
89
- declare_parameter<std::string>(" lanelet2_map_metadata_path" );
90
86
if (declare_parameter<bool >(" enabled_dynamic_lanelet_loading" )) {
87
+ std::vector<std::string> lanelet2_paths_or_directory =
88
+ declare_parameter<std::vector<std::string>>(" lanelet2_map_folder_path" );
89
+ std::string lanelet2_map_metadata_path =
90
+ declare_parameter<std::string>(" lanelet2_map_metadata_path" );
91
+
91
92
std::map<std::string, Lanelet2FileMetaData> lanelet2_metadata_dict;
92
93
try {
93
94
lanelet2_metadata_dict = getLanelet2Metadata (
94
- tmp_lanelet2_map_metadata_path , getLanelet2Paths (tmp_lanelet2_paths_or_directory ));
95
+ lanelet2_map_metadata_path , getLanelet2Paths (lanelet2_paths_or_directory ));
95
96
} catch (std::runtime_error & e) {
96
97
RCLCPP_ERROR_STREAM (get_logger (), " Failed to load lanelet2 metadata" );
97
98
}
You can’t perform that action at this time.
0 commit comments