15 #ifndef RCLCPP__PARAMETER_HPP_    16 #define RCLCPP__PARAMETER_HPP_    23 #include "rcl_interfaces/msg/parameter.hpp"    24 #include "rcl_interfaces/msg/parameter_type.hpp"    25 #include "rcl_interfaces/msg/parameter_value.hpp"    80   rcl_interfaces::msg::ParameterValue
    85   template<ParameterType type>
    93     return value_.integer_value;
    96   template<ParameterType type>
   104     return value_.double_value;
   107   template<ParameterType type>
   115     return value_.string_value;
   118   template<ParameterType type>
   126     return value_.bool_value;
   129   template<ParameterType type>
   138     return value_.bytes_value;
   143   template<
typename type>
   148     return get_value<ParameterType::PARAMETER_INTEGER>();
   151   template<
typename type>
   155     return get_value<ParameterType::PARAMETER_DOUBLE>();
   158   template<
typename type>
   162     return get_value<ParameterType::PARAMETER_STRING>();
   165   template<
typename type>
   169     return get_value<ParameterType::PARAMETER_BOOL>();
   172   template<
typename type>
   178     return get_value<ParameterType::PARAMETER_BYTES>();
   202   static ParameterVariant
   206   rcl_interfaces::msg::Parameter
   215   rcl_interfaces::msg::ParameterValue value_;
   230 operator<<(std::ostream & os, const std::vector<ParameterVariant> & parameters);
   250 #endif  // RCLCPP__PARAMETER_HPP_ std::ostream & operator<<(std::ostream &os, const rclcpp::parameter::ParameterVariant &pv)
 
const std::string & as_string() const
 
std::enable_if< type==ParameterType::PARAMETER_BYTES, const std::vector< uint8_t > & >::type get_value() const
Definition: parameter.hpp:132
 
rcl_interfaces::msg::ParameterValue get_parameter_value() const
 
std::enable_if< type==ParameterType::PARAMETER_DOUBLE, double >::type get_value() const
Definition: parameter.hpp:98
 
static ParameterVariant from_parameter(const rcl_interfaces::msg::Parameter ¶meter)
 
Definition: parameter.hpp:40
 
std::string get_type_name() const
 
Definition: allocator_common.hpp:24
 
std::enable_if< std::is_floating_point< type >::value, double >::type get_value() const
Definition: parameter.hpp:153
 
std::enable_if< type==ParameterType::PARAMETER_STRING, const std::string & >::type get_value() const
Definition: parameter.hpp:109
 
Definition: parameter.hpp:37
 
std::enable_if< std::is_same< type, bool >::value, bool >::type get_value() const
Definition: parameter.hpp:167
 
std::string to_string(const std::vector< rclcpp::parameter::ParameterVariant > ¶meters)
Return a json encoded version of a vector of parameters, as a string. 
 
std::enable_if< type==ParameterType::PARAMETER_INTEGER, int64_t >::type get_value() const
Definition: parameter.hpp:87
 
Definition: parameter.hpp:41
 
ParameterType
Definition: parameter.hpp:34
 
rcl_interfaces::msg::Parameter to_parameter()
 
std::enable_if< std::is_convertible< type, const std::vector< uint8_t > & >::value, const std::vector< uint8_t > & >::type get_value() const
Definition: parameter.hpp:176
 
std::enable_if< type==ParameterType::PARAMETER_BOOL, bool >::type get_value() const
Definition: parameter.hpp:120
 
std::string _to_json_dict_entry(const ParameterVariant ¶m)
Return a json encoded version of the parameter intended for a dict. 
 
std::string value_to_string() const
 
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
 
std::enable_if< std::is_convertible< type, std::string >::value, const std::string & >::type get_value() const
Definition: parameter.hpp:160
 
const std::vector< uint8_t > & as_bytes() const
 
const std::string & get_name() const
 
std::enable_if< std::is_integral< type >::value &&!std::is_same< type, bool >::value, int64_t >::type get_value() const
Definition: parameter.hpp:146
 
Definition: parameter.hpp:36
 
Definition: parameter.hpp:39
 
ParameterType get_type() const
 
Definition: parameter.hpp:45
 
Definition: parameter.hpp:38