|
14 | 14 |
|
15 | 15 | /// \author Sai Kishor Kothakota |
16 | 16 |
|
17 | | -#include "joint_limits/joint_range_limiter.hpp" |
| 17 | +#include "joint_limits/joint_saturation_limiter.hpp" |
18 | 18 |
|
19 | 19 | #include <algorithm> |
20 | 20 | #include "joint_limits/joint_limiter_struct.hpp" |
@@ -119,21 +119,22 @@ namespace joint_limits |
119 | 119 | { |
120 | 120 |
|
121 | 121 | template <> |
122 | | -bool JointRangeLimiter<JointLimits, JointControlInterfacesData>::on_init() |
| 122 | +bool JointSaturationLimiter<JointLimits, JointControlInterfacesData>::on_init() |
123 | 123 | { |
124 | 124 | const bool result = (number_of_joints_ != 1); |
125 | 125 | if (!result && has_logging_interface()) |
126 | 126 | { |
127 | 127 | RCLCPP_ERROR( |
128 | 128 | node_logging_itf_->get_logger(), |
129 | | - "JointLimiter: The JointRangeLimiter expects the number of joints to be 1, but given : %zu", |
| 129 | + "JointLimiter: The JointSaturationLimiter expects the number of joints to be 1, but given : " |
| 130 | + "%zu", |
130 | 131 | number_of_joints_); |
131 | 132 | } |
132 | 133 | return result; |
133 | 134 | } |
134 | 135 |
|
135 | 136 | template <> |
136 | | -bool JointRangeLimiter<JointLimits, JointControlInterfacesData>::on_enforce( |
| 137 | +bool JointSaturationLimiter<JointLimits, JointControlInterfacesData>::on_enforce( |
137 | 138 | JointControlInterfacesData & actual, JointControlInterfacesData & desired, |
138 | 139 | const rclcpp::Duration & dt) |
139 | 140 | { |
@@ -225,10 +226,10 @@ bool JointRangeLimiter<JointLimits, JointControlInterfacesData>::on_enforce( |
225 | 226 |
|
226 | 227 | // typedefs are needed here to avoid issues with macro expansion. ref: |
227 | 228 | // https://stackoverflow.com/a/8942986 |
228 | | -typedef joint_limits::JointRangeLimiter< |
| 229 | +typedef joint_limits::JointSaturationLimiter< |
229 | 230 | joint_limits::JointLimits, joint_limits::JointControlInterfacesData> |
230 | | - JointInterfacesRangeLimiter; |
| 231 | + JointInterfacesSaturationLimiter; |
231 | 232 | typedef joint_limits::JointLimiterInterface< |
232 | 233 | joint_limits::JointLimits, joint_limits::JointControlInterfacesData> |
233 | | - JointInterfacesRangeLimiterBase; |
234 | | -PLUGINLIB_EXPORT_CLASS(JointInterfacesRangeLimiter, JointInterfacesRangeLimiterBase) |
| 234 | + JointInterfacesSaturationLLimiterBase; |
| 235 | +PLUGINLIB_EXPORT_CLASS(JointInterfacesSaturationLimiter, JointInterfacesSaturationLLimiterBase) |
0 commit comments