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

cleanup declaration of ModelInterface's SharedPtrs #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhaschke
Copy link

I propose to declare the SharedPtrs for ModelInterface together with all other model-related types in urdf_model/types.h instead of urdf_world/types.h.

Currently, even after having included urdf_model/model.h, one also needs to include urdf_world/types.h to get the related SharedPtr definitions.

With this PR, it suffices to include urdf_model/types.h to get all declarations or to include urdf_model/model.h for all declarations and definition of ModelInterface.

Copy link
Contributor

@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.

Looks like a good change to me.

@scpeters is ros:0.4 the right branch for this? The removal of the type ModelInterfaceSharedPtr from urdf_world/types.h and removal of #include "urdf_model/model.h" from urdf_world/world.h looks like potentially breaking changes if 0.4 has already been released.

@rhaschke rhaschke force-pushed the cleanup-modelinterface-declaration branch from f3a88a2 to c1d1f66 Compare September 21, 2022 09:43
@rhaschke rhaschke changed the base branch from 0.4 to master September 21, 2022 09:44
@rhaschke
Copy link
Author

I'm going through my open PRs and just found this 6-years old one, which was already kind-of approved by @sloretz.
I rebased and retargeted against master and kept the file urdf_world/types.h with a deprecation warning indicating to switch to urdf_model/types.h.
Maybe in this form, it can be merged?

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