15 #ifndef RCLCPP__PARAMETER_HPP_ 16 #define RCLCPP__PARAMETER_HPP_ 24 #include "rcl_interfaces/msg/parameter.hpp" 41 template<
typename ValueTypeT>
60 rcl_interfaces::msg::ParameterValue
64 template<ParameterType ParamT>
68 return value_.
get<ParamT>();
76 return value_.
get<T>();
120 rcl_interfaces::msg::Parameter
143 operator<<(std::ostream & os, const std::vector<Parameter> & parameters);
162 #endif // RCLCPP__PARAMETER_HPP_ decltype(auto) get_value() const
Get value of parameter using rclcpp::ParameterType as template argument.
Definition: parameter.hpp:66
const std::string & get_name() const
std::enable_if< type==ParameterType::PARAMETER_BOOL, bool >::type get() const
Definition: parameter_value.hpp:136
Store the type and value of a parameter.
Definition: parameter_value.hpp:70
rcl_interfaces::msg::ParameterValue get_value_message() const
const std::vector< bool > & as_bool_array() const
Definition: allocator_common.hpp:24
const std::vector< double > & as_double_array() const
Structure to store an arbitrary parameter with templated get/set methods.
Definition: parameter.hpp:32
Parameter(const std::string &name, ValueTypeT value)
Definition: parameter.hpp:42
const std::vector< uint8_t > & as_byte_array() const
ParameterType
Definition: parameter_value.hpp:31
static Parameter from_parameter_msg(const rcl_interfaces::msg::Parameter ¶meter)
rcl_interfaces::msg::Parameter to_parameter_msg() const
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
ParameterType get_type() const
std::ostream & operator<<(std::ostream &os, const rclcpp::Parameter &pv)
std::string _to_json_dict_entry(const Parameter ¶m)
Return a json encoded version of the parameter intended for a dict.
const std::vector< std::string > & as_string_array() const
const std::string & as_string() const
std::string value_to_string() const
const std::vector< int64_t > & as_integer_array() const
std::string get_type_name() const