urdfdom_headers icon indicating copy to clipboard operation
urdfdom_headers copied to clipboard

cleanup declaration of ModelInterface's SharedPtrs

Open rhaschke opened this issue 9 years ago • 1 comments

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.

rhaschke avatar Oct 27 '16 12:10 rhaschke

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?

rhaschke avatar Sep 21 '22 09:09 rhaschke