Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enables this repository to be compiled on melodic.
On melodic, C++14 is standard (see https://www.ros.org/reps/rep-0003.html#c).We have to use
std::shared_ptr
andstd::const_pointer_cast
instead ofboost::
ones when C++ is upper than C++11, so this PR makes the software to usestd::
ones only when C++ is upper than C++11.On melodic, C++14 is standard (see https://www.ros.org/reps/rep-0003.html#c) and urdf uses
std::shared_ptr
instead ofboost::shared_ptr
.urdf::Model::getLink
returnsstd::shared_ptr
(see getLink declaration and LinkConstSharedPtr declaration)urdf::Link::parent_joint
which storesurdf::Joint
isstd::shared_ptr
(see parent_joint declaration and JointSharedPtr declaration)So on melodic, we have to use
std::const_pointer_cast
to handle the returned value ofurdf::Model::getLink
and usestd::shared_ptr
to storeurdf::Link::parent_joint
.Related issue: ros-industrial/fanuc#241