Skip to content

Commit

Permalink
Fix clang-tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Nov 7, 2023
1 parent ff6aa76 commit 5f07014
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions tesseract_task_composer/core/src/task_composer_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ TaskComposerGraph::TaskComposerGraph(std::string name,
throw std::runtime_error("YAML entry 'abort_terminal' is only supported for GRAPH and PIPELINE types");
}

if (tc["input_remapping"])
if (tc["input_remapping"]) // NOLINT
throw std::runtime_error("TaskComposerGraph, input_remapping is no longer supported use 'remapping'");

if (tc["output_remapping"])
if (tc["output_remapping"]) // NOLINT
throw std::runtime_error("TaskComposerGraph, output_remapping is no longer supported use 'remapping'");

if (YAML::Node n = tc["remapping"])
Expand Down
24 changes: 12 additions & 12 deletions tesseract_task_composer/planning/src/nodes/raster_motion_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,19 @@ RasterMotionTask::RasterMotionTask(std::string name,
abort_terminal_index = n.as<int>();
}

if (task_config["input_remapping"])
if (task_config["input_remapping"]) // NOLINT
throw std::runtime_error("RasterMotionTask, input_remapping is no longer supported use 'remapping'");

if (task_config["output_remapping"])
if (task_config["output_remapping"]) // NOLINT
throw std::runtime_error("RasterMotionTask, output_remapping is no longer supported use 'remapping'");

if (YAML::Node n = task_config["remapping"])
remapping = n.as<std::map<std::string, std::string>>();

if (task_config["input_indexing"])
if (task_config["input_indexing"]) // NOLINT
throw std::runtime_error("RasterMotionTask, input_indexing is no longer supported use 'indexing'");

if (task_config["output_indexing"])
if (task_config["output_indexing"]) // NOLINT
throw std::runtime_error("RasterMotionTask, output_indexing is no longer supported use 'indexing'");

if (YAML::Node n = task_config["indexing"])
Expand Down Expand Up @@ -205,19 +205,19 @@ RasterMotionTask::RasterMotionTask(std::string name,
abort_terminal_index = n.as<int>();
}

if (task_config["input_remapping"])
if (task_config["input_remapping"]) // NOLINT
throw std::runtime_error("RasterMotionTask, input_remapping is no longer supported use 'remapping'");

if (task_config["output_remapping"])
if (task_config["output_remapping"]) // NOLINT
throw std::runtime_error("RasterMotionTask, output_remapping is no longer supported use 'remapping'");

if (YAML::Node n = task_config["remapping"])
remapping = n.as<std::map<std::string, std::string>>();

if (task_config["input_indexing"])
if (task_config["input_indexing"]) // NOLINT
throw std::runtime_error("RasterMotionTask, input_indexing is no longer supported use 'indexing'");

if (task_config["output_indexing"])
if (task_config["output_indexing"]) // NOLINT
throw std::runtime_error("RasterMotionTask, output_indexing is no longer supported use 'indexing'");

if (YAML::Node n = task_config["indexing"])
Expand Down Expand Up @@ -273,19 +273,19 @@ RasterMotionTask::RasterMotionTask(std::string name,
abort_terminal_index = n.as<int>();
}

if (task_config["input_remapping"])
if (task_config["input_remapping"]) // NOLINT
throw std::runtime_error("RasterMotionTask, input_remapping is no longer supported use 'remapping'");

if (task_config["output_remapping"])
if (task_config["output_remapping"]) // NOLINT
throw std::runtime_error("RasterMotionTask, output_remapping is no longer supported use 'remapping'");

if (YAML::Node n = task_config["remapping"])
remapping = n.as<std::map<std::string, std::string>>();

if (task_config["input_indexing"])
if (task_config["input_indexing"]) // NOLINT
throw std::runtime_error("RasterMotionTask, input_indexing is no longer supported use 'indexing'");

if (task_config["output_indexing"])
if (task_config["output_indexing"]) // NOLINT
throw std::runtime_error("RasterMotionTask, output_indexing is no longer supported use 'indexing'");

if (YAML::Node n = task_config["indexing"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,19 @@ RasterOnlyMotionTask::RasterOnlyMotionTask(std::string name,
abort_terminal_index = n.as<int>();
}

if (task_config["input_remapping"])
if (task_config["input_remapping"]) // NOLINT
throw std::runtime_error("RasterOnlyMotionTask, input_remapping is no longer supported use 'remapping'");

if (task_config["output_remapping"])
if (task_config["output_remapping"]) // NOLINT
throw std::runtime_error("RasterOnlyMotionTask, output_remapping is no longer supported use 'remapping'");

if (YAML::Node n = task_config["remapping"])
remapping = n.as<std::map<std::string, std::string>>();

if (task_config["input_indexing"])
if (task_config["input_indexing"]) // NOLINT
throw std::runtime_error("RasterOnlyMotionTask, input_indexing is no longer supported use 'indexing'");

if (task_config["output_indexing"])
if (task_config["output_indexing"]) // NOLINT
throw std::runtime_error("RasterOnlyMotionTask, output_indexing is no longer supported use 'indexing'");

if (YAML::Node n = task_config["indexing"])
Expand Down Expand Up @@ -206,19 +206,19 @@ RasterOnlyMotionTask::RasterOnlyMotionTask(std::string name,
abort_terminal_index = n.as<int>();
}

if (task_config["input_remapping"])
if (task_config["input_remapping"]) // NOLINT
throw std::runtime_error("RasterOnlyMotionTask, input_remapping is no longer supported use 'remapping'");

if (task_config["output_remapping"])
if (task_config["output_remapping"]) // NOLINT
throw std::runtime_error("RasterOnlyMotionTask, output_remapping is no longer supported use 'remapping'");

if (YAML::Node n = task_config["remapping"])
remapping = n.as<std::map<std::string, std::string>>();

if (task_config["input_indexing"])
if (task_config["input_indexing"]) // NOLINT
throw std::runtime_error("RasterOnlyMotionTask, input_indexing is no longer supported use 'indexing'");

if (task_config["output_indexing"])
if (task_config["output_indexing"]) // NOLINT
throw std::runtime_error("RasterOnlyMotionTask, output_indexing is no longer supported use 'indexing'");

if (YAML::Node n = task_config["indexing"])
Expand Down

0 comments on commit 5f07014

Please sign in to comment.