Repository navigation
Use MOVEIT_CLASS_FORWARD for the last shared_ptrs to moveit types - #193
Conversation
| { | ||
| public: | ||
| MOVEIT_DECLARE_PTR_MEMBER(VoxelGrid); | ||
|
|
There was a problem hiding this comment.
Since VoxelGrid<T> is a class template, the only way to sensibly make shared_ptr typedefs available is as by declaring them as member types. I also had to add a MOVEIT_DECLARE_PTR_MEMBER macro for that.
There was a problem hiding this comment.
I don't really see a reason why we should not have just call the member type VoxelGridPtr instead of Ptr, but then I suppose it does not really matter.
There was a problem hiding this comment.
Well, VoxelGrid<T>::VoxelGridPtr is a bit long. VoxelGrid<T>::Ptr is also closer to the non-template case.
e8ab06f to
77a3bc5
Compare
|
Turns out I removed all of them and switched to the appropriate |
| return true; | ||
| } | ||
| typedef boost::shared_ptr<MoveItControllerManager> Ptr; | ||
| typedef MoveItControllerManagerPtr Ptr; |
There was a problem hiding this comment.
This is a source file and no exposed interface. Wouldn't it make sense to get rid of the Ptr typedef here altogether?
There was a problem hiding this comment.
Good point. I was on autopilot here.
|
+1 looks good to me. This too should be picked to indigo/jade |
77a3bc5 to
2959650
Compare
|
Unneeded, unexposed typedef removed, as per line comments. |
| using shapes::Mesh; | ||
| using boost::shared_ptr; | ||
| using boost::unique_lock; | ||
| using boost::mutex; |
|
+1 thanks for your continued effort |
This PR uses MOVEIT_CLASS_FORWARD (and friend) to remove the last explicit use of
boost::shared_ptrto any moveit type in this repository, with the exception ofmoveit_experimental/*and the chomp and sbpl planners.I looked for any remaining explicit
shared_ptrsto moveit types with this pretty one-liner: