Robotics StackExchange | Archived questions

C++ define for ros-version: ifdef ROS_MELODIC

I have some problems with some planner plugins a implemented for the navigation stack. They now are not compatible with melodic because several parts of the API changed, ie:

I think this issue could be easily solved using some precompilation directives on the c++ code that enables some code for MELODIC and some other for PREVIOUS versions.

Does that define variable exist?

Asked by Pablo IƱigo Blasco on 2019-02-01 13:15:25 UTC

Comments

See whether #q9562 is sufficient. It's not #if ROS_MELODIC though.

Another option: CMake defines: #q148831.

Asked by gvdhoorn on 2019-02-01 14:24:36 UTC

Answers