Skip to content

Use const& signature for read-only sub callbacks (backport #2297)#2298

Merged
clalancette merged 2 commits intogalacticfrom
mergify/bp/galactic/pr-2297
Feb 9, 2022
Merged

Use const& signature for read-only sub callbacks (backport #2297)#2298
clalancette merged 2 commits intogalacticfrom
mergify/bp/galactic/pr-2297

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Feb 9, 2022

This is an automatic backport of pull request #2297 done by Mergify.
Cherry-pick of e4cd3cb has failed:

On branch mergify/bp/galactic/pr-2297
Your branch is up to date with 'origin/galactic'.

You are currently cherry-picking commit e4cd3cb.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   source/Tutorials/Custom-ROS2-Interfaces.rst
	both modified:   source/Tutorials/FastDDS-Configuration/FastDDS-Configuration.rst
	both modified:   source/Tutorials/Tf2/Writing-A-Tf2-Broadcaster-Cpp.rst
	both modified:   source/Tutorials/Writing-A-Simple-Cpp-Publisher-And-Subscriber.rst

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

The constant reference message signatures should be preferred over the
shared pointer to constant message signatures for read-only subscriber
callbacks, as discussed in ros2/rclcpp#1598.

As such, it makes sense to migrate to said signatures in documentation.

Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
(cherry picked from commit e4cd3cb)

# Conflicts:
#	source/Tutorials/Custom-ROS2-Interfaces.rst
#	source/Tutorials/FastDDS-Configuration/FastDDS-Configuration.rst
#	source/Tutorials/Tf2/Writing-A-Tf2-Broadcaster-Cpp.rst
#	source/Tutorials/Writing-A-Simple-Cpp-Publisher-And-Subscriber.rst
@mergify mergify bot added the conflicts label Feb 9, 2022
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette clalancette merged commit 1e576eb into galactic Feb 9, 2022
@delete-merged-branch delete-merged-branch bot deleted the mergify/bp/galactic/pr-2297 branch February 9, 2022 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants