Skip to content

Replace RCLCPP_*_STREAM macros with RCLCPP_*#1600

Merged
saikishor merged 2 commits intoros-controls:masterfrom
Vedant87:Replace_RCLCPP_ERROR_STREAM_with_RCLCPP_ERROR
Mar 20, 2025
Merged

Replace RCLCPP_*_STREAM macros with RCLCPP_*#1600
saikishor merged 2 commits intoros-controls:masterfrom
Vedant87:Replace_RCLCPP_ERROR_STREAM_with_RCLCPP_ERROR

Conversation

@Vedant87
Copy link
Copy Markdown
Contributor

Closes issue #337

Copy link
Copy Markdown
Member

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution.

However, please install pre-commit beforehand so that you get the errors at the time of the commit. Now you can fix them by running pre-commit run --all.

Can I ask you to also change the RCLCPP_INFO_STREAM methods, not only the ERROR log level?

@Vedant87
Copy link
Copy Markdown
Contributor Author

Thanks for your contribution.

However, please install pre-commit beforehand so that you get the errors at the time of the commit. Now you can fix them by running pre-commit run --all.

Can I ask you to also change the RCLCPP_INFO_STREAM methods, not only the ERROR log level?

Sure, I can work on changing the RCLCPP_INFO_STREAM methods should I open a new PR or add the commits in this PR itself.

@christophfroehlich
Copy link
Copy Markdown
Member

Please do in the same PR, and ensure that the code builds successfully before you push.

   /home/runner/work/ros2_controllers/ros2_controllers/.work/target_ws/src/ros2_controllers/parallel_gripper_controller/include/parallel_gripper_controller/parallel_gripper_action_controller_impl.hpp:263:5: error: ‘CLCPP_ERROR’ was not declared in this scope; did you mean ‘RCLCPP_ERROR’?
    263 |     CLCPP_ERROR(
        |     ^~~~~~~~~~~
        |     RCLCPP_ERROR

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 19, 2025

Codecov Report

Attention: Patch coverage is 20.00000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 85.09%. Comparing base (ac35696) to head (73863b1).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...per_controllers/gripper_action_controller_impl.hpp 0.00% 5 Missing ⚠️
...roller/parallel_gripper_action_controller_impl.hpp 0.00% 5 Missing ⚠️
...dmittance_controller/src/admittance_controller.cpp 0.00% 1 Missing ⚠️
...nt_trajectory_controller/interpolation_methods.hpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1600      +/-   ##
==========================================
+ Coverage   85.08%   85.09%   +0.01%     
==========================================
  Files         123      123              
  Lines       11703    11701       -2     
  Branches      999      997       -2     
==========================================
  Hits         9957     9957              
  Misses       1430     1430              
+ Partials      316      314       -2     
Flag Coverage Δ
unittests 85.09% <20.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...include/joint_trajectory_controller/tolerances.hpp 79.79% <100.00%> (ø)
...dmittance_controller/src/admittance_controller.cpp 76.17% <0.00%> (ø)
...nt_trajectory_controller/interpolation_methods.hpp 55.55% <0.00%> (ø)
...per_controllers/gripper_action_controller_impl.hpp 32.11% <0.00%> (ø)
...roller/parallel_gripper_action_controller_impl.hpp 29.76% <0.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

Thanks!

@christophfroehlich christophfroehlich changed the title Replace RCLCPP_ERROR_STREAM with RCLCPP_ERROR in gripper action controller Replace RCLCPP_*_STREAM macros with RCLCPP_* Mar 19, 2025
Copy link
Copy Markdown
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

Looks good :)

@saikishor saikishor merged commit eca84fa into ros-controls:master Mar 20, 2025
24 of 25 checks passed
@christophfroehlich christophfroehlich added the backport-humble Triggers PR backport to ROS 2 humble. label Mar 20, 2025
mergify bot pushed a commit that referenced this pull request Mar 20, 2025
(cherry picked from commit eca84fa)

# Conflicts:
#	admittance_controller/src/admittance_controller.cpp
#	parallel_gripper_controller/include/parallel_gripper_controller/parallel_gripper_action_controller_impl.hpp
@Vedant87 Vedant87 deleted the Replace_RCLCPP_ERROR_STREAM_with_RCLCPP_ERROR branch March 20, 2025 10:36
@bmagyar
Copy link
Copy Markdown
Member

bmagyar commented Mar 20, 2025

Thank you!!

Juliaj pushed a commit to Juliaj/ros2_controllers that referenced this pull request Mar 26, 2025
@Vedant87 Vedant87 restored the Replace_RCLCPP_ERROR_STREAM_with_RCLCPP_ERROR branch March 31, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-humble Triggers PR backport to ROS 2 humble.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace RCLCPP_ERROR_STREAM with RCLCPP_ERROR in gripper action controller

4 participants