Add dependency on ament_index_cpp to resolve build error in ROS 2 #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a dependency on ament_index_cpp to the package to resolve a build error encountered in ROS 2.
The missing dependency was causing issues during the build process, specifically related to including headers from
ament_index_cpp
.Adding this dependency ensures that the necessary components are available for successful compilation.
Testing Environment
OS: Ubuntu 24.04 (Docker)
ROS 2: Jazzy
Build Error Log
The following is the build error log that prompted this change:
Changes
Updated package.xml and CMakeLists.txt to include ament_index_cpp as a dependency.
Testing
Successfully built and tested the package with the new dependency included.
Verified that the build error is no longer present after the addition of the dependency.