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

Provide copy and move constructors for model #33

Merged
merged 2 commits into from
Jul 25, 2022

Conversation

dreuter
Copy link

@dreuter dreuter commented Jun 2, 2022

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

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
@clalancette clalancette self-assigned this Jun 23, 2022
@clalancette clalancette changed the base branch from humble to ros2 June 23, 2022 12:53
@audrow audrow changed the base branch from ros2 to rolling June 28, 2022 14:26
Copy link

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

LGTM with green CI

@sloretz
Copy link

sloretz commented Jul 18, 2022

CI (repos file build: --packages-above-and-dependencies urdf test: --packages-select urdf urdf_parser_plugin)

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

@sloretz sloretz merged commit 88bb52e into ros2:rolling Jul 25, 2022
@sloretz
Copy link

sloretz commented Jul 25, 2022

Thanks for the PR!

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.

None yet

3 participants