Skip to content

Conversation

@fujitatomoya
Copy link
Collaborator

Description

Fixes #6115

Did you use Generative AI?

Yes, Claude Sonnet 4.5

Additional Information

@fujitatomoya fujitatomoya self-assigned this Dec 26, 2025
@fujitatomoya fujitatomoya added the backport-all backport at reviewers discretion; from rolling to all versions label Dec 26, 2025
Copy link
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahcorde @cottsay what do you think about this additional explanation of ament cmake version management? i though that this is useful to manage the API version control in user application especially when users are using rolling branch.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive documentation for API Version Management to the Ament CMake page. The new section explains how to use ament_generate_version_header for managing API versions in C/C++ packages through compile-time macros, which is useful for maintaining backward compatibility across different ROS 2 distributions and patch releases.

Key changes:

  • Documentation of auto-generated version macros and their naming conventions
  • Instructions for generating version headers in user packages
  • Best practices for using version macros for API compatibility checking

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/20519103241/artifacts/4970003841.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. Open html-artifacts-6116/index.html in your favorite browser

@fujitatomoya fujitatomoya merged commit d40b914 into rolling Dec 27, 2025
11 checks passed
@fujitatomoya fujitatomoya deleted the fujitatomoya/ament-api-version-generated-macros branch December 27, 2025 10:09
mergify bot pushed a commit that referenced this pull request Dec 27, 2025
Signed-off-by: Tomoya.Fujita <[email protected]>
(cherry picked from commit d40b914)
mergify bot pushed a commit that referenced this pull request Dec 27, 2025
Signed-off-by: Tomoya.Fujita <[email protected]>
(cherry picked from commit d40b914)
mergify bot pushed a commit that referenced this pull request Dec 27, 2025
Signed-off-by: Tomoya.Fujita <[email protected]>
(cherry picked from commit d40b914)
fujitatomoya added a commit that referenced this pull request Dec 27, 2025
(cherry picked from commit d40b914)

Signed-off-by: Tomoya.Fujita <[email protected]>
Co-authored-by: Tomoya Fujita <[email protected]>
fujitatomoya added a commit that referenced this pull request Dec 27, 2025
(cherry picked from commit d40b914)

Signed-off-by: Tomoya.Fujita <[email protected]>
Co-authored-by: Tomoya Fujita <[email protected]>
fujitatomoya added a commit that referenced this pull request Dec 27, 2025
(cherry picked from commit d40b914)

Signed-off-by: Tomoya.Fujita <[email protected]>
Co-authored-by: Tomoya Fujita <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-all backport at reviewers discretion; from rolling to all versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📝 adding how to use ament_generate_version_header

3 participants