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