Function rclc_add_parameter_constraint_double
Defined in File rclc_parameter.h
Function Documentation
-
rcl_ret_t rclc_add_parameter_constraint_double(rclc_parameter_server_t *parameter_server, const char *parameter_name, double from_value, double to_value, double step)
Sets a constraint on an double parameter. This constraint specification will be returned on describe parameters requests. This method is disabled on user callback execution.
Attribute
Adherence
Allocates Memory
No
Thread-Safe
No
Uses Atomics
No
Lock-Free
No
- Parameters:
parameter_server – [in] preallocated rclc_parameter_server_t
parameter_name – [in] name of the parameter
from_value – [in] start value for valid values, inclusive.
to_value – [in] end value for valid values, inclusive.
step – [in] size of valid steps between the from and to bound.
- Returns:
RCL_RET_OK
if success