@@ -120,7 +120,8 @@ void Lanelet2MapLoaderNode::on_map_projector_info(
120
120
// get lanelet2 paths
121
121
const std::vector<std::string> lanelet2_paths = get_lanelet2_paths (lanelet2_paths_or_directory);
122
122
if (lanelet2_paths.empty ()) {
123
- RCLCPP_ERROR (get_logger (), " No lanelet2 map files found from %s" , lanelet2_paths_or_directory[0 ].c_str ());
123
+ RCLCPP_ERROR (
124
+ get_logger (), " No lanelet2 map files found from %s" , lanelet2_paths_or_directory[0 ].c_str ());
124
125
return ;
125
126
}
126
127
@@ -129,12 +130,13 @@ void Lanelet2MapLoaderNode::on_map_projector_info(
129
130
RCLCPP_INFO (get_logger (), " Differential lanelet2 map loading is enabled." );
130
131
131
132
// generate metadata
132
- const auto lanelet2_metadata_path = declare_parameter<std::string>(" lanelet2_map_metadata_path" );
133
+ const auto lanelet2_metadata_path =
134
+ declare_parameter<std::string>(" lanelet2_map_metadata_path" );
133
135
double x_resolution, y_resolution;
134
136
std::map<std::string, Lanelet2FileMetaData> lanelet2_metadata_dict;
135
137
if (std::filesystem::exists (lanelet2_metadata_path)) {
136
- lanelet2_metadata_dict = get_lanelet2_metadata (
137
- lanelet2_metadata_path, lanelet2_paths, x_resolution, y_resolution);
138
+ lanelet2_metadata_dict =
139
+ get_lanelet2_metadata ( lanelet2_metadata_path, lanelet2_paths, x_resolution, y_resolution);
138
140
} else {
139
141
throw std::runtime_error (" Lanelet2 metadata file not found: " + lanelet2_metadata_path);
140
142
}
@@ -205,7 +207,8 @@ void Lanelet2MapLoaderNode::on_map_projector_info(
205
207
206
208
/* *
207
209
* @brief Get list of lanelet2 map file paths from input paths/directories
208
- * @param lanelet2_paths_or_directory Vector of paths that can be either lanelet2 map files or directories containing them
210
+ * @param lanelet2_paths_or_directory Vector of paths that can be either lanelet2 map files or
211
+ * directories containing them
209
212
* @return Vector of absolute paths to lanelet2 map files
210
213
*/
211
214
std::vector<std::string> Lanelet2MapLoaderNode::get_lanelet2_paths (
@@ -241,7 +244,8 @@ std::map<std::string, Lanelet2FileMetaData> Lanelet2MapLoaderNode::get_lanelet2_
241
244
double & x_resolution, double & y_resolution) const
242
245
{
243
246
std::map<std::string, Lanelet2FileMetaData> lanelet2_metadata_dict;
244
- lanelet2_metadata_dict = utils::loadLanelet2Metadata (lanelet2_metadata_path, x_resolution, y_resolution);
247
+ lanelet2_metadata_dict =
248
+ utils::loadLanelet2Metadata (lanelet2_metadata_path, x_resolution, y_resolution);
245
249
lanelet2_metadata_dict = utils::replaceWithAbsolutePath (lanelet2_metadata_dict, lanelet2_paths);
246
250
RCLCPP_INFO_STREAM (get_logger (), " Loaded Lanelet2 metadata: " << lanelet2_metadata_path);
247
251
0 commit comments