-
Notifications
You must be signed in to change notification settings - Fork 939
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
remove robot_model:: and robot_state:: #2135
Conversation
Removing robot_model and robot_state requires changes in downstream packages like |
Shouldn't there be a deprecation warning for some time before "removing" API? There are many places using |
754f375
to
b605938
Compare
It's funny how @davetcoleman was the one complaining about the aliased namespaces, when his own projects use them. 😄 The problem with API deprecations in Given the amount of usage of these namespaces, I switched to deprecation. |
What projects specifically? I'm sure at one point I took some snippets from other places that used that type of namespace, yes. So what? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis needs to be fixed before merging - although we have a lot of approvals already!
moveit_core/robot_model/include/moveit/robot_model/robot_model.h
Outdated
Show resolved
Hide resolved
b605938
to
6ad39fb
Compare
6ad39fb
to
42edc1f
Compare
I noticed But among other things the tutorials also use them a lot.
True. It turns out namespace aliases (
and does not recognize the deprecation. Clang just does the right thing. That simply leaves us with no way of deprecating the namespaces without removing them. I added a decent hint to |
Is the commit you cite actually accepted syntax by our CI? You didn't get CI to succeed yet.
After all it's also an alias declaration, even if for a class.
@v4hn can't we just deprecate the corresponding types using aliases
We did similar things in the past for `MoveGroup` -> `MoveGroupInterface`, but in this case it would mean deprecating **every single class** in `moveit::core` for two namespaces.
That's fragile *and* a bulk of explicit definitions nobody will ever look at.
To me, that approach plus the inconvenience for users is not worth it to me to remove this hidden alias declaration...
|
Codecov Report
@@ Coverage Diff @@
## master #2135 +/- ##
==========================================
- Coverage 57.82% 57.41% -0.41%
==========================================
Files 328 328
Lines 25700 25700
==========================================
- Hits 14860 14755 -105
- Misses 10840 10945 +105
Continue to review full report at Codecov.
|
I see you already did the tutorials. Here's MVT: moveit/moveit_visual_tools#65 |
Fixes #1878 .
Please merge this as two commits, as we should only backport the internal usage, but not the API change.