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); }