I was wondering what the best practices is for duplication of code between nodes.
For example:
I grouped together two packages with a metapackage called *perception*, namely; *object detection* and *localization*.
*object detection* package has a node -> **ballDetection**
*localization* package has a node -> **linesDetection**
As you can already assume, there is a lot of code duplication in these nodes. For example, if I want to display images in both nodes to the screen, I have the exact same code in both nodes.
Should I create a library that both nodes can use to display images to the screen? Or should I use nodes for everything? What is the best practice for situations like this?
↧