Skip to content

Commit

Permalink
change boost::shared_ptr<urdf::Link> to std::shared_ptr<urdf::Link> s…
Browse files Browse the repository at this point in the history
…o that it can compile on melodic. Related info from ros-industrial/fanuc#241
  • Loading branch information
MeiyingQin committed Jul 9, 2020
1 parent 869f756 commit 34ba286
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ bool KinematicsPlugin::extractKinematicData(const urdf::Model &robot_model,
std::vector<double> &lower_limits,
std::vector<double> &upper_limits) const
{
boost::shared_ptr<urdf::Link> link = boost::const_pointer_cast<urdf::Link>(
std::shared_ptr<urdf::Link> link = std::const_pointer_cast<urdf::Link>(
robot_model.getLink(tip_frame));

while ((link) && (link->name != base_frame)) {
link_names.push_back(link->name);
boost::shared_ptr<urdf::Joint> joint = link->parent_joint;
std::shared_ptr<urdf::Joint> joint = link->parent_joint;

// Don't consider invalid, unknown or fixed joints
if ((!joint) || (joint->type == urdf::Joint::UNKNOWN)
Expand Down

0 comments on commit 34ba286

Please sign in to comment.