Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The question is what you mean with "ROS version".

Each package has its own version number. After calling find_package() to find a catkin package foo you can access the version variables for it (as it is recommended CMake standard):

  • ${foo_VERSION}
  • ${roscpp_VERSION_MAJOR}
  • ${roscpp_VERSION_MINOR}
  • ${roscpp_VERSION_PATCH}

The question is what you mean with "ROS version".

Each package has its own version number. number and they level independently. After calling find_package() to find a catkin package foo you can access the version variables for it (as it is recommended CMake standard):

  • ${foo_VERSION}
  • ${roscpp_VERSION_MAJOR}
  • ${roscpp_VERSION_MINOR}
  • ${roscpp_VERSION_PATCH}