Skip to content

Commit 296f992

Browse files
committed
improve documentation of the helper methods
1 parent 08f09eb commit 296f992

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

joint_limits/include/joint_limits/joint_limits_helpers.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ bool is_limited(double value, double min, double max);
4444
* @param act_vel The actual velocity of the joint.
4545
* @param prev_command_pos The previous commanded position of the joint.
4646
* @param dt The time step.
47-
* @return The position limits.
47+
* @return The position limits, first is the lower limit and second is the upper limit.
4848
*/
4949
std::pair<double, double> compute_position_limits(
5050
const joint_limits::JointLimits & limits, const std::optional<double> & act_vel,
@@ -57,7 +57,7 @@ std::pair<double, double> compute_position_limits(
5757
* @param act_pos The actual position of the joint.
5858
* @param prev_command_vel The previous commanded velocity of the joint.
5959
* @param dt The time step.
60-
* @return The velocity limits.
60+
* @return The velocity limits, first is the lower limit and second is the upper limit.
6161
*/
6262
std::pair<double, double> compute_velocity_limits(
6363
const std::string & joint_name, const joint_limits::JointLimits & limits,
@@ -70,7 +70,7 @@ std::pair<double, double> compute_velocity_limits(
7070
* @param act_pos The actual position of the joint.
7171
* @param act_vel The actual velocity of the joint.
7272
* @param dt The time step.
73-
* @return The effort limits.
73+
* @return The effort limits, first is the lower limit and second is the upper limit.
7474
*/
7575
std::pair<double, double> compute_effort_limits(
7676
const joint_limits::JointLimits & limits, const std::optional<double> & act_pos,
@@ -82,7 +82,7 @@ std::pair<double, double> compute_effort_limits(
8282
* @param limits The joint limits.
8383
* @param desired_acceleration The desired acceleration.
8484
* @param actual_velocity The actual velocity of the joint.
85-
* @return The acceleration limits.
85+
* @return The acceleration limits, first is the lower limit and second is the upper limit.
8686
*/
8787
std::pair<double, double> compute_acceleration_limits(
8888
const JointLimits & limits, double desired_acceleration, std::optional<double> actual_velocity);

0 commit comments

Comments
 (0)