Template Function rsl::element_bounds

Function Documentation

template<typename T>
auto rsl::element_bounds(rclcpp::Parameter const &parameter, 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