17#ifndef CYBER_PYTHON_INTERNAL_PY_PARAMETER_H_
18#define CYBER_PYTHON_INTERNAL_PY_PARAMETER_H_
41 : parameter_(
name, int_value) {}
43 : parameter_(
name, double_value) {}
45 : parameter_(
name, string_value) {}
47 const std::string& full_name,
const std::string& proto_desc)
48 : parameter_(
name, msg_str, full_name, proto_desc) {}
56 std::string
name() {
return parameter_.
Name(); }
72 const std::string& service_node_name)
73 : parameter_clt_(node, service_node_name) {}
79 return parameter_clt_.
GetParameter(param_name, parameter);
92 : parameter_srv_(node) {}
98 return parameter_srv_.
GetParameter(param_name, parameter);
Parameter Client is used to set/get/list parameter(s) by sending a request to ParameterServer
bool ListParameters(std::vector< Parameter > *parameters)
Get all the Parameter objects
bool SetParameter(const Parameter ¶meter)
Set the Parameter object
bool GetParameter(const std::string ¶m_name, Parameter *parameter)
Get the Parameter object
Parameter Service is a very important function of auto-driving.
void ListParameters(std::vector< Parameter > *parameters)
get all the parameters
bool GetParameter(const std::string ¶meter_name, Parameter *parameter)
Get the Parameter object
void SetParameter(const Parameter &parmeter)
Set the Parameter object
A Parameter holds an apollo::cyber::proto::Param, It's more human-readable, you can use basic-value t...
std::string TypeName() const
Get Paramter's type name, i.e.
double AsDouble() const
et Paramter as a double value
std::string DebugString() const
show debug string
int64_t AsInt64() const
Get Paramter as an int64_t value
ParamType Type() const
Get the cyber:parameter::ParamType of this object
std::string Descriptor() const
Get Paramter's descriptor, only work on protobuf types
const std::string AsString() const
Get Paramter as a string value
const std::string Name() const
Get the Parameter name
bool list_parameters(std::vector< Parameter > *parameters)
PyParameterClient(const std::shared_ptr< Node > &node, const std::string &service_node_name)
bool set_parameter(const Parameter ¶meter)
bool get_parameter(const std::string ¶m_name, Parameter *parameter)
bool get_parameter(const std::string ¶m_name, Parameter *parameter)
void list_parameters(std::vector< Parameter > *parameters)
void set_parameter(const Parameter ¶meter)
PyParameterServer(const std::shared_ptr< Node > &node)
PyParameter(const std::string &name, const double double_value)
std::string debug_string()
PyParameter(const std::string &name, const std::string &string_value)
PyParameter(const std::string &name, const std::string &msg_str, const std::string &full_name, const std::string &proto_desc)
PyParameter(const std::string &name, const int64_t int_value)
PyParameter(Parameter *param)