Repository navigation
Use urdf::*SharedPtr instead of boost::shared_ptr - #209
Conversation
| #include <fcl/shape/geometric_shapes.h> | ||
| #include <fcl/octree.h> | ||
| #include <boost/thread/mutex.hpp> | ||
| #include <boost/weak_ptr.hpp> |
There was a problem hiding this comment.
What is this #include for?
There was a problem hiding this comment.
I guess it worked fine before due to transitive includes. It's used for example in line 343.
|
Looks like a good idea. Might want to fix the typo in the commit message though. Is this compatible with older urdfdom releases? |
1fb24cc to
e6c6a51
Compare
|
Typo fixed. Should be compatible with urdfdom_headers 0.4 upwards. |
|
+1 in principle Typo still there though. |
e6c6a51 to
0da6e93
Compare
|
Oups, an other typo fixed (not my day today ;) ). |
|
Looks like it needs a bit more work to make CI pass too. |
|
I think |
|
Is this backwards compatible for indigo/jade? Should it be backported? |
| protected: | ||
|
|
||
| boost::shared_ptr<urdf::ModelInterface> urdf_model; | ||
| urdf::ModelInterfaceSharePtr urdf_model; |
urdfdom_headers uses C++ std::shared_ptr. As it exports it as custom *SharedPtr type, we can use them to stay compatible. Note that there is no std:shared_ptr<const urdf::ModelInterface> typedef, so I replaced it with urdf::ModelInterfaceSharedPtr (loosing a const). Also, there is no conversion from boost::shared_ptr<urdf::Model> to std:shared_ptr<urdf::ModelInterface>, so I used a preprocessor directive.
0da6e93 to
6659a6a
Compare
|
Another two typos fixed. @davetcoleman I don't think this needs backporting as it's only relevant for new urdfdom_headers versions. |
|
CI is still failing because it isn't using the latest |
62e4ae8 to
6d583b2
Compare
|
I've reverted the change to the urdf::Model shared pointer for now. We can still change it once CI get updated or ros/robot_model#153 gets accepted. |
|
|
|
MoveIt!'s CI is using the non-shadow-fixed version of kinetic-desktop. This OSRF container is only retriggered when the base Ubuntu container is rebuilt, and it appears its been awhile. The image we're using for ROS is now 2 months old. I think we need to use the main ROS container, instead of OSRF's. The ROS one was updated 10 days ago. The difference is that there isn't a desktop-full version, unlike what OSRF offers. |
|
This should fix the outdated URDFDom: #214 |
|
In principle, I like this. However, package.xml and CMakeLists.txt should be updated to require at least version 0.4 of urdfdom_headers. We ran into issues for srdfdom (moveit/srdfdom#23), because that wasn't declared there. |
|
good point. Added.
|
|
The updated Docker image for our CI from #214 built and I re-triggered this PR, but it is still failing with the same error. I just manually checked what version of Notably the CI is building fine except for the second pass when it builds the tests, which is when |
|
I guess the new CI errors are not related to my pull request. Any other things I need to change? |
|
The changes I made to our CI for this PR (to have the latest URDFDom headers) uncovered some missing dependencies: moveit/moveit_resources#14 |
|
Huh? These changes are still relevant I think? |
|
Yes these changes are still relevant. I'll retrigger travis as soon as the new Docker is done building |
|
Travis finally passes! |
|
@davetcoleman Why did you already merged this? We still don't have a solution for |
|
Because I hadn't realized that was the case, I spent a lot of time updating our CI so this PR would pass (it did), and no one brought it up here until after the merge. I'll updated Travis to test on |
|
I moved the discussion: #222 |
urdfdom_headers uses C++ std::shared_ptr. As it exports it as custom
*SharedPtr type, we can use the to stay compatible.
Not that there is no std:shared_ptr typedef,
so I replaced it with urdf::ModelInterfaceSharedPtr (loosing a const).
Also, there is no conversion from boost::shared_ptrurdf::Model to
std:shared_ptrurdf::ModelInterface, so I used a preprocessor
directive.