diff --git a/joint_limits_interface/include/joint_limits_interface/joint_limits_rosparam.h b/joint_limits_interface/include/joint_limits_interface/joint_limits_rosparam.h index 8f21dbc4f..7a8e3a7e7 100644 --- a/joint_limits_interface/include/joint_limits_interface/joint_limits_rosparam.h +++ b/joint_limits_interface/include/joint_limits_interface/joint_limits_rosparam.h @@ -72,7 +72,7 @@ namespace joint_limits_interface * existing values. Values in \p limits not specified in the parameter server remain unchanged. * \return True if a limits specification is found (ie. the \p joint_limits/joint_name parameter exists in \p nh), false otherwise. */ -bool getJointLimits(const std::string& joint_name, const ros::NodeHandle& nh, JointLimits& limits) +inline bool getJointLimits(const std::string& joint_name, const ros::NodeHandle& nh, JointLimits& limits) { // Node handle scoped where the joint limits are defined ros::NodeHandle limits_nh; diff --git a/joint_limits_interface/include/joint_limits_interface/joint_limits_urdf.h b/joint_limits_interface/include/joint_limits_interface/joint_limits_urdf.h index e5f8a2270..6723d3c3e 100644 --- a/joint_limits_interface/include/joint_limits_interface/joint_limits_urdf.h +++ b/joint_limits_interface/include/joint_limits_interface/joint_limits_urdf.h @@ -48,7 +48,7 @@ namespace joint_limits_interface * values. Values in \e limits not present in \e urdf_joint remain unchanged. * \return True if \e urdf_joint has a valid limits specification, false otherwise. */ -bool getJointLimits(boost::shared_ptr urdf_joint, JointLimits& limits) +inline bool getJointLimits(boost::shared_ptr urdf_joint, JointLimits& limits) { if (!urdf_joint || !urdf_joint->limits) { @@ -84,7 +84,7 @@ bool getJointLimits(boost::shared_ptr urdf_joint, JointLimits * \param[out] soft_limits Where URDF soft joint limit data gets written into. * \return True if \e urdf_joint has a valid soft limits specification, false otherwise. */ -bool getSoftJointLimits(boost::shared_ptr urdf_joint, SoftJointLimits& soft_limits) +inline bool getSoftJointLimits(boost::shared_ptr urdf_joint, SoftJointLimits& soft_limits) { if (!urdf_joint || !urdf_joint->safety) {