Hello,
I have some ROS C++ packages that share many common functions.
They are identical functions so I was thinking to put them all in another file.hpp and include this file in each package is needing them.
I'm using catkin to create my workspace and all the packages I develop. They are all in src directory starting from the main one, as the tutorials said.
But where do I must save this file.hpp in the workspace and which path I have to #include in each file that is using it? Do I have to modify the CMakeLists.txt?
This is a scheme of my workspace:
build
devel
src
package 1
CMakeLists.txt
src (file.cpp are here)
include
package1.xml
package 2
...
Thanks in advance.
Originally posted by eds on ROS Answers with karma: 101 on 2013-12-11
Post score: 0