Repository navigation
Reduce explicit mention of boost::shared_ptr in moveit_planners and moveit_experimental - #97
Conversation
|
On Sun, Aug 21, 2016 at 07:36:21AM -0700, Maarten de Vries wrote:
I don't think we should merge untested (and actually at the moment untestable) patches. |
| @@ -0,0 +1,55 @@ | |||
| /********************************************************************* | |||
There was a problem hiding this comment.
Why did you create a second file for this, instead of keeping in class_forward.h? these files are already very small
There was a problem hiding this comment.
It didn't seem logical to put something for declaring shared_ptr types in a file called class_forward.h. It has nothing to do with forward declaring a class, it just creates two type aliases. I suppose a different name could logically house both macros (though I can't think of one right now), but I'm guessing that would require keeping a backwards compatibility header for the old name for a while.
I figured this was the cleanest solution.
There was a problem hiding this comment.
class_forward has always been somewhat miss-named by also declaring shared_ptrs. I don't mind too much either way how we do it, just seemed slightly more complicated your way.
There was a problem hiding this comment.
I'm also not too picky here, but I do feel the separate file is somewhat more clean. If you (or another maintainer) really prefers it I'll move it to the class_forward.h header, but otherwise I'll keep it as is.
That is partly because is is intended as a internal public macro, and not as an implementation detail of CLASS_FORWARD, so good naming is somewhat important. If it was just an implementation detail of CLASS_FORWARD, I wouldn't have hesitated to put it in the same file as CLASS_FORWARD.
There was a problem hiding this comment.
+1 to declare_ptr.h.
The "class forward" header/macro is miss-named.
We could provide a combined header for both in kinetic and deprecate the class_forward.h header there,
but then I don't think it is worth the effort...
|
@v4hn since the uncatkinized packages (untouched and untested for several years) are basically dead code at the moment, I don't see the harm in helping it a long by applying simple changes across the whole code base to it as well. i think @de-vri-es efforts with it are unnecessary, but if he's so inclined why not? otherwise it'll just be more hurdles to revive it in the future |
|
On Sun, Aug 21, 2016 at 10:21:51PM -0700, Dave Coleman wrote:
If you're playing compiler to be 100% sure they do not introduce new compiler errors, fine by me... I'd say leave them out until somebody cares for them enough to actually update and test them. |
|
I can't guarantee there are no new compiler errors of course. I'm fine with removing the changes to the uncompiled code. I could give a short stab at getting the code to compile if nobody else is working on that, but I don't think that should be in this PR then. Plus I don't know what the things in there are supposed to do, so the best I could do is get it to compile, without any guarantee that it does what it should do. It's probably more logical if someone who can verify correctness works on something like that. |
|
I only noticed it wasn't actually getting compiled when I was half way in by the way, otherwise I wouldn't have started on it in the first place. I could have known, but still it might be worth moving the disabled bits to some obvious place like |
|
On Mon, Aug 22, 2016 at 04:27:07AM -0700, Maarten de Vries wrote:
Feel free to file a request. Honestly speaking, I do not really care... |
|
The unification of moveit repos is the perfect opportunity to leave old and untested (let alone unwanted) code behind. |
FYI we are discussing two old planning plugins right now: sbpl I've been in email communication with Dr. Likhachev and one of his students @aurone about reviving this plugin for MoveIt!. They are interested in continuing it, perhaps starting tomorrow (World MoveIt! Day) and I've just created an issue to track progress for it: #101 chomp @ksatyaki and perhaps @jrgnicho have been working on reviving this in this issue. I'm hoping they can share back their progress through a PR. a good starting PR would be one that simply catkinizes the folder. |
ff951cf to
711aaab
Compare
|
Removed the changes to sbpl, chomp and moveit_experimental. For posterity, the old branch is still available here: https://github.com/delftrobotics/moveit/tree/experimental_shared_ptr |
|
Created two PRs to I/J |
|
@davetcoleman I have two separate repos containing my changes + @jrgnicho 's changes (moveit_planners and moveit_experimental). How do I merge these? Once I merge the changes from the "Reduce explicit mention of boost::shared_ptr ..." issue, I could test my code and then issue a pull request? Is this (using shared_ptr <>) a mistake or simply something to make code look cleaner? |
|
@ksatyaki: I would say there is no need to merge the changes regarding the The reason for using Also, I'm willing to redo the /edit: To summarize: feel free to completely ignore the whole |
|
@de-vri-es , Ah okay. I have been trying to revive CHOMP with some help from @jrgnicho. You can find some information on it here ##15. Any help is appreciated! :-) |
|
So I'm getting some issues compiling after this is merged: |
|
i am having this same problem |
|
doing geometric_shapes from source fixes this |
|
i actually had it installed from source, per the moveit.rosinstall, but i also had it installed from debian with an older version and it was conflicting. i added a note to help future users: |
|
I also encountered this FCL issue when building from source. I have Regardless, even grabbing those uninstalled packages back in my workspace source, and trying to build again, I still have the FCL issue. |
|
Interesting that it got triggered after this PR though, it should be caused by the FCL At any rate, I will look at improving the error message by adding a static assert. |
|
The geometric_shapes problems should be fixed today(?) once @wjwwood released robot_model |
|
It was just merged: ros/rosdistro#12469 |
I'm working down grep results for
boost::shared_ptrin pretty much arbitrary order. This PR tacklesmoveit_planners/*andmoveit_experimental/*.Additionally, I added a macro
MOVEIT_STRUCT_FORWARD. When compiling with-Wall -Wextra, gcc will emit a warning when a forward declaration and definition mismatch in use ofstructorclass. The extra macro can avoid that warning.I also added
MOVEIT_DECLARE_PTR(and modified the other macros to use it) to support declaringshared_ptrtypes for more complex types. For example, there was atypedef boost::shared_ptr<std::vector<ConstraintApproximation> > ConstraintApproximations. That becomesMOVEIT_DELCARE_PTR(ConstraintApproximations, std::vector<ConstraintApproximation>)with the new macro (order of arguments chosen to match the newusing x = y;type aliases rather than the oldtypedefsyntax).Note that only the ompl code is actually compiled as far as I can tell. The rest has not been migrated to catkin, so I did not compile it. If that is a reason to hold off this type of work until it is actually compiling, I can understand. Then I'll strip the PR of everything but the changes to the ompl code.