Function joint_limits::check_for_limits_update(const std::string&, const std::vector<rclcpp::Parameter>&, const rclcpp::node_interfaces::NodeLoggingInterface::SharedPtr&, JointLimits&)
Defined in File joint_limits_rosparam.hpp
Function Documentation
-
inline bool joint_limits::check_for_limits_update(const std::string &joint_name, const std::vector<rclcpp::Parameter> ¶meters, const rclcpp::node_interfaces::NodeLoggingInterface::SharedPtr &logging_itf, JointLimits &updated_limits)
Check if any of updated parameters are related to JointLimits.
This method is intended to be used in the parameters update callback. It is recommended that it’s result is temporarily stored and synchronized with the JointLimits structure in the main loop.
- Parameters:
joint_name – [in] Name of the joint whose limits should be checked.
parameters – [in] List of the parameters that should be checked if they belong to this structure and that are used for updating the internal values.
logging_itf – [in] node logging interface to provide log errors.
updated_limits – [out] structure with updated JointLimits. It is recommended that the currently used limits are stored into this structure before calling this method.