Ask Your Question

ROSexperimentin's profile - activity

2018-04-26 07:29:37 -0500 received badge  Famous Question (source)
2017-10-17 07:33:12 -0500 received badge  Notable Question (source)
2015-11-02 08:45:56 -0500 received badge  Popular Question (source)
2015-11-02 06:38:51 -0500 received badge  Scholar (source)
2015-11-02 06:38:48 -0500 received badge  Supporter (source)
2015-11-02 05:55:00 -0500 commented answer Is it possible to have a header file for a node?

and that's it? no need to explicitly add the .h file in the add_executable section (or is that just a wrong way to add .h files anyway?)

2015-11-02 05:24:03 -0500 asked a question Is it possible to have a header file for a node?

I'm writing a ROS node in C++. I wanted to know if it's possible to have a .h file (in addition to the .cpp file that includes the node's code) for it. The .h file includes just a bunch of other #include-s, a typedef command, and the declaration of all the functions used by the node. This way the .cpp file only has an #include for its .h file. So, is it possible to do that? And what do I need to add to my CMakeLists.txt to make it compile?