Template Function rsl::element_bounds
Defined in File parameter_validators.hpp
Function Documentation
-
template<typename T>
auto rsl::element_bounds(rclcpp::Parameter const ¶meter, T const &lower, T const &upper) -> tl::expected<void, std::string> Are all elements of parameter within the bounds (inclusive)?
- Template Parameters:
T – Interior type of array; e.g. for parameter type double_array, T = double
- Pre:
rclcpp::Parameter must be an array type
- Returns:
Help string if the parameter is invalid, otherwise void