Changed into register factory design pattern. It make code cleaner and more readable.
Register modules in pipeline_manager. It's very convenient to maintain our modules. It also support "one class, more names". Such as ObjectDetection and Facedetection both represent ObjectDetection inference ; ImageTopic and RealSenseCameraTopic both represent imagetopic input .
Defect:
May be REG_MODEL micro is not very suitable or unserstandable if models have many types. Such as ObjectDetection, we can choose SSD or Yolov5, and so on...
I'd like to choose REG_MODEL_TYPE micro, which also contains suffix. But it precompile failed.
New features:
register factory
design pattern. It make code cleaner and more readable.ObjectDetection
andFacedetection
both represent ObjectDetection inference ;ImageTopic
andRealSenseCameraTopic
both represent imagetopic input .Defect:
REG_MODEL
micro is not very suitable or unserstandable if models have many types. Such asObjectDetection
, we can chooseSSD
orYolov5
, and so on... I'd like to chooseREG_MODEL_TYPE
micro, which also contains suffix. But it precompile failed.Note:
I've only test simplely, it seems worked. Maybe we need rigorous inspections.
Thanks for @LewisLiuPub. Thank you for your advices.