[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Backport - Provide copy and move constructors for model (#33) #41

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

kbrameld
Copy link
@kbrameld kbrameld commented Aug 21, 2024

Backport of #33, so copy and move are available in humble too.

These changes should be API/ABI compatible.

These constructors are available in ros 1 noetic and ros 2 iron onwards, just missing in humble

In 4b73ae2 the copy and move
constructors were accidentally disabled.
This means that one must always wrap a `urdf::Model` into some form of
pointer in order to pass it around or have it as a member.

This commit restores the copy and move constructors, such that one is
able to pass the `urdf::Model` around as a normal variable.

See also:
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rc-five

Co-authored-by: Shane Loretz <sloretz@osrfoundation.org>
@kbrameld kbrameld changed the base branch from rolling to humble August 21, 2024 15:36
Copy link
@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit e36c2d9 into ros2:humble Aug 22, 2024
3 checks passed
@kbrameld kbrameld deleted the backport-33-humble branch August 23, 2024 15:40
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.

3 participants