-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide compile-time ROS2 version information #174
Comments
That sounds like a good idea. Please consider to contribute pull requests for packages where you see the need for it. |
I can do a naive versioninig: plain C/C++ macros that should be upgraded manually before each build. A "grownup", a right way to do versioning is to keep the last built version in some external DB and increment the minor version automatically and major/minor versions in a semi-auto way (via Jenkins commands?). This approach IMO should be implemented by ROS2 insiders who have full access to build infrastructure. @dirk-thomas, should I go ahead with the naive approach pull request? |
Each package already has the version number declared in the |
@dirk-thomas, see #175 |
@clalancette how broad is this issue? rclcpp already generates a version header. Is there also a need for that in rcutils? |
I have no idea, honestly. Maybe @serge-nikulin can weigh in. |
This issue is very old. Back in 2019 ROS2 did not have any version information. Back then I wanted to generate version information for every generated library. |
Based on the previous comment, closing. Feel free to reopen if you change your mind and would like to continue. |
As ROS2 matures and introduces new API, we need ways to conditionally compile code against different, possibly compile-time incompatible, versions of ROS2.
Common ways to do it are:
The text was updated successfully, but these errors were encountered: