17#ifndef JOINT_LIMITS__JOINT_SOFT_LIMITER_HPP_
18#define JOINT_LIMITS__JOINT_SOFT_LIMITER_HPP_
21#include "joint_limits/data_structures.hpp"
22#include "joint_limits/joint_limits_helpers.hpp"
23#include "joint_limits/joint_saturation_limiter.hpp"
25constexpr double VALUE_CONSIDERED_ZERO = 1e-10;
35 const bool result = (number_of_joints_ == 1);
39 node_logging_itf_->get_logger(),
40 "JointInterfacesSaturationLimiter: Expects the number of joints to be 1, but given : "
50 const rclcpp::Duration & dt)
override;
54 return std::isfinite(soft_joint_limits.min_position) &&
55 std::isfinite(soft_joint_limits.max_position) &&
56 (soft_joint_limits.max_position - soft_joint_limits.min_position) >
57 VALUE_CONSIDERED_ZERO;
62 return has_soft_position_limits(soft_joint_limits) &&
63 std::isfinite(soft_joint_limits.k_position) &&
64 std::abs(soft_joint_limits.k_position) > VALUE_CONSIDERED_ZERO;
bool has_logging_interface() const
Checks if the logging interface is set.
Definition joint_limiter_interface.hpp:246
Definition joint_saturation_limiter.hpp:38
Definition joint_soft_limiter.hpp:31
bool on_init() override
Method is realized by an implementation.
Definition joint_soft_limiter.hpp:33
Definition data_structures.hpp:37
Definition data_structures.hpp:45
Definition joint_limits.hpp:113