global header file.
I wanted to make a header in cpp that just contains all my topics names as "const string"s. I want this header file to be visible globally to all stacks and packages. What is the best way to do this?
I don't think there is one way to do this. Why do you need that header, for which purpose ? It would help to know that kind of things to give a solution.
@Maya I wanted to store all my topic names as strings in a .h file so that I'll able be using it for two or more packages instead of defining the topic names in a cpp file this would be better.
This is not how you usually do it. I don't really think it's going to make your projects any easier and people will not be able to use them because of that. Usually one define a very generic topic name and then use remapping (either in launch file or command line) to rename them.
okay! but is there a way to do that?
Not that I know.