Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 43

Code duplication - best practices

$
0
0
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?

Viewing all articles
Browse latest Browse all 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>