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

How to share common lib's in ROS workspace

$
0
0
I'm having several packages in my workspace and I'm currently at the point where a want to avoid code duplicity. At the moment I have package called `myproject_common` in which all `msg` and `srv` files are located. After building the workspace they are properly available in all my other packages. Now I want to my common .py files into the common packages and also make them available. After calling `catkin_make` the `msg` and `srv` classes are available under `./devel/lib/python2.7/dist-packages/` which is quiet nice because this makes them also available in my IDE without the need to import something manually. How can I accomplish this with self written common python files? What do I need to change in my `CMakeLists.txt` to get this working

Viewing all articles
Browse latest Browse all 417

Trending Articles



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