Template Function rsl::subset_of
Defined in File parameter_validators.hpp
Function Documentation
-
template<typename T>
auto rsl::subset_of(rclcpp::Parameter const ¶meter, std::vector<T> const &valid_values) -> tl::expected<void, std::string> Are the values in parameter a subset of the valid values?
- 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