build: make #include <angles/angles.h> internal to cpp file #117
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.
PR Type
Related Links
Description
before this PR,
angles/angles.h
is included in a public header file ofvelodyne_scan_decoder.hpp
, so that any project that uses this repo needs to includeangles
as well.After this PR,
angles/angles.h
is moved to .cpp files, so it's internal to this repo. Other project that uses this repo does not need to find and includeangles
.This can reduce compile time for both colcon/cmake and gcc.
Another minor change is the
which is not necessary if
angles
is installed according to https://github.com/ros/rosdistro/blob/master/humble/distribution.yaml#L403Many other ros2 projects are not using
#if/#endif
for humble like https://github.com/ros-planning/navigation2/blob/humble/nav2_controller/plugins/pose_progress_checker.cpp#L20Review Procedure
build this project
Remarks
Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.
Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.
Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.
CI Checks