Skip to content

Commit

Permalink
Add example for version.h
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Apr 8, 2024
1 parent 2c40402 commit f42b02f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/migration/Iron.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ Iron to Jazzy

General
*******
* A ``version.h`` file will be generated per package using the ament_generate_version_header (`#1449 <https://github.com/ros-controls/ros2_control/issues/1449>`_)
* A ``version.h`` file will be generated per package using the ament_generate_version_header (`#1449 <https://github.com/ros-controls/ros2_control/issues/1449>`_). For example, you can include the version of the package in the logs.

.. code-block:: cpp
#include <controller_manager/version.h>
...
RCLCPP_INFO(get_logger(), "controller_manager version: %s", CONTROLLER_MANAGER_VERSION_STR);
controller_interface
********************
Expand Down

0 comments on commit f42b02f

Please sign in to comment.