rsl 1.1.0
ROS Support Library
|
#include <rsl/algorithm.hpp>
#include <rsl/export.hpp>
#include <rsl/static_string.hpp>
#include <rsl/static_vector.hpp>
#include <rcl_interfaces/msg/set_parameters_result.hpp>
#include <rclcpp/parameter.hpp>
#include <tl_expected/expected.hpp>
#include <fmt/ranges.h>
Go to the source code of this file.
Functions | |
template<typename T > | |
auto | rsl::unique (rclcpp::Parameter const ¶meter) -> tl::expected< void, std::string > |
Is every element of rclcpp::Parameter unique? | |
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<typename T > | |
auto | rsl::fixed_size (rclcpp::Parameter const ¶meter, size_t const size) |
Is the array size of parameter equal to passed in size? | |
template<typename T > | |
auto | rsl::size_gt (rclcpp::Parameter const ¶meter, size_t const size) |
Is the array size of parameter greater than passed in size? | |
template<typename T > | |
auto | rsl::size_lt (rclcpp::Parameter const ¶meter, size_t const size) |
Is the array size of parameter less than passed in size? | |
template<typename T > | |
auto | rsl::not_empty (rclcpp::Parameter const ¶meter) -> tl::expected< void, std::string > |
Is the size of the value passed in not zero? | |
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<typename T > | |
auto | rsl::lower_element_bounds (rclcpp::Parameter const ¶meter, T const &lower) -> tl::expected< void, std::string > |
Are all elements of parameter greater than lower bound? | |
template<typename T > | |
auto | rsl::upper_element_bounds (rclcpp::Parameter const ¶meter, T const &upper) -> tl::expected< void, std::string > |
Are all elements of parameter less than some upper bound? | |
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<typename T > | |
auto | rsl::lower_bounds (rclcpp::Parameter const ¶meter, T const &value) |
Is parameter within some lower bound (same as gt_eq)? | |
template<typename T > | |
auto | rsl::upper_bounds (rclcpp::Parameter const ¶meter, T const &value) |
Is parameter within some upper bound (same as lt_eq)? | |
template<typename T > | |
auto | rsl::lt (rclcpp::Parameter const ¶meter, T const &value) |
Is parameter less than some value? | |
template<typename T > | |
auto | rsl::gt (rclcpp::Parameter const ¶meter, T const &value) |
Is parameter greater than some value? | |
template<typename T > | |
auto | rsl::lt_eq (rclcpp::Parameter const ¶meter, T const &value) |
Is parameter less than or equal to some value? | |
template<typename T > | |
auto | rsl::gt_eq (rclcpp::Parameter const ¶meter, T const &value) |
Is parameter greater than or equal to some value? | |
template<typename T > | |
auto | rsl::one_of (rclcpp::Parameter const ¶meter, std::vector< T > const &collection) -> tl::expected< void, std::string > |
Is the parameter value one of a set of values? | |
RSL_EXPORT auto | rsl::to_parameter_result_msg (tl::expected< void, std::string > const &result) -> rcl_interfaces::msg::SetParametersResult |
Convert the result of a validator function into a SetParametersResult msg. | |
auto rsl::bounds | ( | rclcpp::Parameter const & | parameter, |
T const & | lower, | ||
T const & | upper | ||
) | -> tl::expected<void, std::string> |
Is parameter within bounds (inclusive)?
T | Interior type of parameter; e.g. for parameter type int, T = int64_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)?
T | Interior type of array; e.g. for parameter type double_array, T = double |
auto rsl::fixed_size | ( | rclcpp::Parameter const & | parameter, |
size_t const | size | ||
) |
Is the array size of parameter equal to passed in size?
T | Interior type of array; e.g. for parameter type double_array, T = double |
auto rsl::gt | ( | rclcpp::Parameter const & | parameter, |
T const & | value | ||
) |
Is parameter greater than some value?
T | Interior type of parameter; e.g. for parameter type int, T = int64_t |
auto rsl::gt_eq | ( | rclcpp::Parameter const & | parameter, |
T const & | value | ||
) |
Is parameter greater than or equal to some value?
T | Interior type of parameter; e.g. for parameter type int, T = int64_t |
auto rsl::lower_bounds | ( | rclcpp::Parameter const & | parameter, |
T const & | value | ||
) |
Is parameter within some lower bound (same as gt_eq)?
T | Interior type of parameter; e.g. for parameter type int, T = int64_t |
auto rsl::lower_element_bounds | ( | rclcpp::Parameter const & | parameter, |
T const & | lower | ||
) | -> tl::expected<void, std::string> |
Are all elements of parameter greater than lower bound?
T | Interior type of array; e.g. for parameter type double_array, T = double |
auto rsl::lt | ( | rclcpp::Parameter const & | parameter, |
T const & | value | ||
) |
Is parameter less than some value?
T | Interior type of parameter; e.g. for parameter type int, T = int64_t |
auto rsl::lt_eq | ( | rclcpp::Parameter const & | parameter, |
T const & | value | ||
) |
Is parameter less than or equal to some value?
T | Interior type of parameter; e.g. for parameter type int, T = int64_t |
auto rsl::not_empty | ( | rclcpp::Parameter const & | parameter | ) | -> tl::expected<void, std::string> |
Is the size of the value passed in not zero?
T | Interior type of array or std::string; e.g. for parameter type double_array, T = double |
auto rsl::one_of | ( | rclcpp::Parameter const & | parameter, |
std::vector< T > const & | collection | ||
) | -> tl::expected<void, std::string> |
Is the parameter value one of a set of values?
T | Interior type of parameter; e.g. for parameter type int, T = int64_t |
auto rsl::size_gt | ( | rclcpp::Parameter const & | parameter, |
size_t const | size | ||
) |
Is the array size of parameter greater than passed in size?
T | Interior type of array; e.g. for parameter type double_array, T = double |
auto rsl::size_lt | ( | rclcpp::Parameter const & | parameter, |
size_t const | size | ||
) |
Is the array size of parameter less than passed in size?
T | Interior type of array; e.g. for parameter type double_array, T = double |
auto rsl::subset_of | ( | rclcpp::Parameter const & | parameter, |
std::vector< T > const & | valid_values | ||
) | -> tl::expected<void, std::string> |
Are the values in parameter a subset of the valid values?
T | Interior type of array; e.g. for parameter type double_array, T = double |
auto rsl::unique | ( | rclcpp::Parameter const & | parameter | ) | -> tl::expected<void, std::string> |
Is every element of rclcpp::Parameter unique?
T | Interior type of array; e.g. for parameter type double_array, T = double |
auto rsl::upper_bounds | ( | rclcpp::Parameter const & | parameter, |
T const & | value | ||
) |
Is parameter within some upper bound (same as lt_eq)?
T | Interior type of parameter; e.g. for parameter type int, T = int64_t |
auto rsl::upper_element_bounds | ( | rclcpp::Parameter const & | parameter, |
T const & | upper | ||
) | -> tl::expected<void, std::string> |
Are all elements of parameter less than some upper bound?
T | Interior type of array; e.g. for parameter type double_array, T = double |