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_ const std::vector< int64_t > & as_integer_array() const
std::string get_type_name() const
Structure to store an arbitrary parameter with templated get/set methods.
Definition: parameter.hpp:32
std::string to_string(const ParameterType type)
Return the name of a parameter type.
Definition: allocator_common.hpp:24
const std::vector< double > & as_double_array() const
static Parameter from_parameter_msg(const rcl_interfaces::msg::Parameter ¶meter)
decltype(auto) get_value() const
Get value of parameter using rclcpp::ParameterType as template argument.
Definition: parameter.hpp:66
rcl_interfaces::msg::Parameter to_parameter_msg() const
ParameterType
Definition: parameter_value.hpp:31
const std::vector< bool > & as_bool_array() const
std::enable_if< type==ParameterType::PARAMETER_BOOL, bool >::type get() const
Definition: parameter_value.hpp:136
ParameterType get_type() const
Parameter(const std::string &name, ValueTypeT value)
Definition: parameter.hpp:42
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Store the type and value of a parameter.
Definition: parameter_value.hpp:70
std::ostream & operator<<(std::ostream &os, const rclcpp::Parameter &pv)
const std::string & get_name() const
std::string _to_json_dict_entry(const Parameter ¶m)
Return a json encoded version of the parameter intended for a dict.
std::string value_to_string() const
const std::vector< uint8_t > & as_byte_array() const
const std::string & as_string() const
const std::vector< std::string > & as_string_array() const
rcl_interfaces::msg::ParameterValue get_value_message() const