From 215df84f2d1905e23e5c5371f4309beee3887336 Mon Sep 17 00:00:00 2001 From: Myron Rodrigues Date: Mon, 30 Sep 2024 18:54:06 +0000 Subject: [PATCH] load parameter if already set --- .../depthai_ros_driver/param_handlers/nn_param_handler.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai_ros_driver/include/depthai_ros_driver/param_handlers/nn_param_handler.hpp b/depthai_ros_driver/include/depthai_ros_driver/param_handlers/nn_param_handler.hpp index b22fb0de..f16c8d46 100644 --- a/depthai_ros_driver/include/depthai_ros_driver/param_handlers/nn_param_handler.hpp +++ b/depthai_ros_driver/include/depthai_ros_driver/param_handlers/nn_param_handler.hpp @@ -105,7 +105,7 @@ class NNParamHandler : public BaseParamHandler { json data = json::parse(f); if(data.contains("model") && data.contains("nn_config")) { auto modelPath = getModelPath(data); - declareAndLogParam("i_model_path", modelPath); + modelPath = declareAndLogParam("i_model_path", modelPath); if(!getParam("i_disable_resize")) { setImageManip(modelPath, imageManip); }