Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor optimization to avoid dynamic casting in Gazebo callbacks #692

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Feb 10, 2025

🎉 New feature

Summary

The casting is done prior to creating the callback so it's done only once instead of in every invocation of the callback.

Test it

Should be covered by existing tests.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@azeey azeey requested a review from ahcorde as a code owner February 10, 2025 22:47
@ahcorde ahcorde merged commit f646d5c into gazebosim:ros2 Feb 11, 2025
5 checks passed
@ahcorde
Copy link
Collaborator

ahcorde commented Feb 11, 2025

https://github.com/Mergifyio backport jazzy humble

Copy link
Contributor

mergify bot commented Feb 11, 2025

backport jazzy humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Feb 11, 2025
Signed-off-by: Addisu Z. Taddese <[email protected]>
(cherry picked from commit f646d5c)
mergify bot pushed a commit that referenced this pull request Feb 11, 2025
Signed-off-by: Addisu Z. Taddese <[email protected]>
(cherry picked from commit f646d5c)

# Conflicts:
#	ros_gz_bridge/src/factory.hpp
ahcorde pushed a commit that referenced this pull request Feb 12, 2025
#693)

Signed-off-by: Addisu Z. Taddese <[email protected]>
(cherry picked from commit f646d5c)

Co-authored-by: Addisu Z. Taddese <[email protected]>
Dyst-0 pushed a commit to Dyst-0/ros_gz that referenced this pull request Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants