1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- // / \ author Denis Stogl
15+ // / @ author Denis Stogl
1616
1717#ifndef JOINT_LIMITS__JOINT_LIMITER_INTERFACE_HPP_
1818#define JOINT_LIMITS__JOINT_LIMITER_INTERFACE_HPP_
@@ -38,18 +38,19 @@ class JointLimiterInterface
3838
3939 virtual ~JointLimiterInterface () = default ;
4040
41- // / Initialization of every JointLimiter.
4241 /* *
42+ * @brief Initialize every JointLimiter.
43+ *
4344 * Initialization of JointLimiter for defined joints with their names.
4445 * Robot description topic provides a topic name where URDF of the robot can be found.
4546 * This is needed to use joint limits from URDF (not implemented yet!).
4647 * Override this method only if initialization and reading joint limits should be adapted.
4748 * Otherwise, initialize your custom limiter in `on_init` method.
4849 *
49- * \ param[in] joint_names names of joints where limits should be applied.
50- * \ param[in] param_itf node parameters interface object to access parameters.
51- * \ param[in] logging_itf node logging interface to log if error happens.
52- * \ param[in] robot_description_topic string of a topic where robot description is accessible.
50+ * @ param[in] joint_names names of joints where limits should be applied.
51+ * @ param[in] param_itf node parameters interface object to access parameters.
52+ * @ param[in] logging_itf node logging interface to log if error happens.
53+ * @ param[in] robot_description_topic string of a topic where robot description is accessible.
5354 */
5455 virtual bool init (
5556 const std::vector<std::string> & joint_names,
@@ -132,7 +133,7 @@ class JointLimiterInterface
132133 }
133134
134135 /* *
135- * Wrapper init method that accepts the joint names and their limits directly
136+ * @brief Initialize joints from directly provided names and limits.
136137 */
137138 virtual bool init (
138139 const std::vector<std::string> & joint_names,
@@ -160,7 +161,8 @@ class JointLimiterInterface
160161 }
161162
162163 /* *
163- * Wrapper init method that accepts pointer to the Node.
164+ * @brief Initialize joints using a Node pointer.
165+ *
164166 * For details see other init method.
165167 */
166168 virtual bool init (
@@ -173,7 +175,8 @@ class JointLimiterInterface
173175 }
174176
175177 /* *
176- * Wrapper init method that accepts pointer to the LifecycleNode.
178+ * @brief Initialize joints using a LifecycleNode pointer.
179+ *
177180 * For details see other init method.
178181 */
179182 virtual bool init (
@@ -191,14 +194,15 @@ class JointLimiterInterface
191194 return on_configure (current_joint_states);
192195 }
193196
194- /* * \brief Enforce joint limits to desired joint state for multiple physical quantities.
197+ /* *
198+ * @brief Enforce joint limits to desired joint state for multiple physical quantities.
195199 *
196200 * Generic enforce method that calls implementation-specific `on_enforce` method.
197201 *
198- * \ param[in] current_joint_states current joint states a robot is in.
199- * \ param[in,out] desired_joint_states joint state that should be adjusted to obey the limits.
200- * \ param[in] dt time delta to calculate missing integrals and derivation in joint limits.
201- * \returns true if limits are enforced, otherwise false.
202+ * @ param[in] current_joint_states current joint states a robot is in.
203+ * @ param[in,out] desired_joint_states joint state that should be adjusted to obey the limits.
204+ * @ param[in] dt time delta to calculate missing integrals and derivation in joint limits.
205+ * @return true if limits are enforced, otherwise false.
202206 */
203207 virtual bool enforce (
204208 const JointLimitsStateDataType & current_joint_states,
@@ -211,46 +215,53 @@ class JointLimiterInterface
211215 virtual void reset_internals () = 0;
212216
213217protected:
214- /* * \brief Method is realized by an implementation.
218+ /* *
219+ * @brief Initialize the limiter's internal states and libraries.
215220 *
216221 * Implementation-specific initialization of limiter's internal states and libraries.
217- * \returns true if initialization was successful, otherwise false.
222+ * @return true if initialization was successful, otherwise false.
218223 */
219224 virtual bool on_init () = 0;
220225
221- /* * \brief Method is realized by an implementation.
226+ /* *
227+ * @brief Configure the limiter's internal states and libraries.
222228 *
223229 * Implementation-specific configuration of limiter's internal states and libraries.
224- * \returns true if initialization was successful, otherwise false.
230+ * @return true if initialization was successful, otherwise false.
225231 */
226232 virtual bool on_configure (const JointLimitsStateDataType & current_joint_states) = 0;
227233
228- /* * \brief Method is realized by an implementation.
234+ /* *
235+ * @brief Enforce joint limits for multiple dependent physical quantities.
229236 *
230237 * Filter-specific implementation of the joint limits enforce algorithm for multiple dependent
231238 * physical quantities.
232239 *
233- * \ param[in] current_joint_states current joint states a robot is in.
234- * \ param[in,out] desired_joint_states joint state that should be adjusted to obey the limits.
235- * \ param[in] dt time delta to calculate missing integrals and derivation in joint limits.
236- * \returns true if limits are enforced, otherwise false.
240+ * @ param[in] current_joint_states current joint states a robot is in.
241+ * @ param[in,out] desired_joint_states joint state that should be adjusted to obey the limits.
242+ * @ param[in] dt time delta to calculate missing integrals and derivation in joint limits.
243+ * @return true if limits are enforced, otherwise false.
237244 */
238245 virtual bool on_enforce (
239246 const JointLimitsStateDataType & current_joint_states,
240247 JointLimitsStateDataType & desired_joint_states, const rclcpp::Duration & dt) = 0;
241248
242- /* * \brief Checks if the logging interface is set.
243- * \returns true if the logging interface is available, otherwise false.
249+ /* *
250+ * @brief Checks if the logging interface is set.
251+ *
252+ * @return true if the logging interface is available, otherwise false.
244253 *
245- * \ note this way of interfacing would be useful for instances where the logging interface is not
254+ * @ note this way of interfacing would be useful for instances where the logging interface is not
246255 * available, for example in the ResourceManager or ResourceStorage classes.
247256 */
248257 bool has_logging_interface () const { return node_logging_itf_ != nullptr ; }
249258
250- /* * \brief Checks if the parameter interface is set.
251- * \returns true if the parameter interface is available, otherwise false.
259+ /* *
260+ * @brief Checks if the parameter interface is set.
261+ *
262+ * @return true if the parameter interface is available, otherwise false.
252263 *
253- * * \ note this way of interfacing would be useful for instances where the logging interface is
264+ * @ note this way of interfacing would be useful for instances where the logging interface is
254265 * not available, for example in the ResourceManager or ResourceStorage classes.
255266 */
256267 bool has_parameter_interface () const { return node_param_itf_ != nullptr ; }
0 commit comments