kth-ros-pkg/yumi

catkin_make error in ros-melodic

Closed this issue · 0 comments

I have published this issue but I delete it by mistake.so I publish again.
I tried to build this project in ros-melodic. Everything goes well until I ran "catkin_make -DCMAKE_BUILD_TYPE=Release". I got errors following.

/home/hit605/yumi_depends_ws/src/industrial_core/industrial_utils/src/param_utils.cpp:147:65: error: conversion from ‘urdf::JointLimitsSharedPtr {aka std::shared_ptr<urdf::JointLimits>}’ to non-scalar type ‘boost::shared_ptr<urdf::JointLimits>’ requested
     boost::shared_ptr<urdf::JointLimits> limits = iter->second->limits;
                                                   ~~~~~~~~~~~~~~^~~~~~

/home/hit605/yumi_depends_ws/src/yumi/yumi_hw/src/yumi_hw.cpp:185:79: error: conversion from ‘urdf::JointConstSharedPtr {aka std::shared_ptr<const urdf::Joint>}’ to non-scalar type ‘const boost::shared_ptr<const urdf::Joint>’ requested
   const boost::shared_ptr<const urdf::Joint> urdf_joint = urdf_model->getJoint(joint_name);
                                                           ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~

/home/hit605/yumi_depends_ws/src/yumi/yumi_hw/src/yumi_hw.cpp:186:89: error: conversion from ‘urdf::JointConstSharedPtr {aka std::shared_ptr<const urdf::Joint>}’ to non-scalar type ‘const boost::shared_ptr<const urdf::Joint>’ requested
   const boost::shared_ptr<const urdf::Joint> urdf_joint_sitffness = urdf_model->getJoint(joint_name + std::string("_stiffness"));
                                                                     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/hit605/yumi_depends_ws/src/yumi/yumi_hw/src/yumi_hw.cpp:190:65: error: no matching function for call to ‘getJointLimits(const boost::shared_ptr<const urdf::Joint>&, joint_limits_interface::JointLimits&)’
    if (joint_limits_interface::getJointLimits(urdf_joint, limits))

/home/hit605/yumi_depends_ws/src/yumi/yumi_hw/src/yumi_hw.cpp:192:74: error: no matching function for call to ‘getSoftJointLimits(const boost::shared_ptr<const urdf::Joint>&, joint_limits_interface::SoftJointLimits&)’
    if (joint_limits_interface::getSoftJointLimits(urdf_joint, soft_limits))
                                                                          ^
_plugin.cpp:48:18: error: ‘DisconnectWorldUpdateBegin’ is not a member of ‘gazebo::event::Events’
   event::Events::DisconnectWorldUpdateBegin(this->updateConnection);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~

/home/hit605/yumi_depends_ws/src/yumi/gazebo_mimic/src/gazebo_mimic_plugin/mimic_plugin.cpp:88:42: error: ‘class gazebo::physics::Joint’ has no member named ‘GetAngle’; did you mean ‘GetForce’?
     mimic_joint_->SetPosition(0, joint_->GetAngle(0).Radian()*multiplier_);
                                          ^~~~~~~~
                                          GetForce

Invoking "make -j4 -l4" failed

I'm not sure if the error occors because of un-matching ros version, and I want to get some advice.
Besides,I didn't find the melodic-branch in this github page. Thank you very much if any advices.