19 YARP_LOG_COMPONENT(FrameTransformServerParamsCOMPONENT,
"yarp.device.FrameTransformServer")
30 std::vector<std::string> params;
31 params.push_back(
"testxml_from");
32 params.push_back(
"testxml_context");
33 params.push_back(
"filexml_option");
34 params.push_back(
"local_rpc");
35 params.push_back(
"FrameTransform_verbose_debug");
36 params.push_back(
"period");
44 if (config.
check(
"help"))
49 std::string config_string = config.
toString();
53 if (config.
check(
"testxml_from"))
56 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'testxml_from' using value:" <<
m_testxml_from;
60 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'testxml_from' using DEFAULT value:" <<
m_testxml_from;
62 prop_check.
unput(
"testxml_from");
67 if (config.
check(
"testxml_context"))
74 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'testxml_context' using DEFAULT value:" <<
m_testxml_context;
76 prop_check.
unput(
"testxml_context");
81 if (config.
check(
"filexml_option"))
84 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'filexml_option' using value:" <<
m_filexml_option;
88 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'filexml_option' using DEFAULT value:" <<
m_filexml_option;
90 prop_check.
unput(
"filexml_option");
95 if (config.
check(
"local_rpc"))
98 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'local_rpc' using value:" <<
m_local_rpc;
102 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'local_rpc' using DEFAULT value:" <<
m_local_rpc;
104 prop_check.
unput(
"local_rpc");
109 if (config.
check(
"FrameTransform_verbose_debug"))
118 prop_check.
unput(
"FrameTransform_verbose_debug");
123 if (config.
check(
"period"))
126 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'period' using value:" <<
m_period;
130 yCInfo(FrameTransformServerParamsCOMPONENT) <<
"Parameter 'period' using DEFAULT value:" <<
m_period;
132 prop_check.
unput(
"period");
167 doc = doc + std::string(
"\n=============================================\n");
168 doc = doc + std::string(
"This is the help for device: FrameTransformServer\n");
169 doc = doc + std::string(
"\n");
170 doc = doc + std::string(
"This is the list of the parameters accepted by the device:\n");
171 doc = doc + std::string(
"'testxml_from': xml configuration file name\n");
172 doc = doc + std::string(
"'testxml_context': xml configuration file context\n");
173 doc = doc + std::string(
"'filexml_option': The name of the xml file containing the needed configuration. if used, the name will be appended to config_xml/\n");
174 doc = doc + std::string(
"'local_rpc': Full name of the rpc port\n");
175 doc = doc + std::string(
"'FrameTransform_verbose_debug': Enable debug prints\n");
176 doc = doc + std::string(
"'period': thread period\n");
177 doc = doc + std::string(
"\n");
178 doc = doc + std::string(
"Here are some examples of invocation command with yarpdev, with all params:\n");
179 doc = doc +
" yarpdev --device frameTransformServer --testxml_from <optional_value> --testxml_context <optional_value> --filexml_option fts_yarp_only.xml --local_rpc /ftServer/rpc --FrameTransform_verbose_debug false --period 0.10\n";
180 doc = doc + std::string(
"Using only mandatory params:\n");
181 doc = doc +
" yarpdev --device frameTransformServer\n";
182 doc = doc + std::string(
"=============================================\n\n");
return doc;
A class for storing options and configuration information.
void unput(const std::string &key)
Remove the association from the given key to a value, if present.
A base class for nested structures that can be searched.
virtual bool check(const std::string &key) const =0
Check if there exists a property of the given name.
virtual std::string toString() const =0
Return a standard text representation of the content of the object.
virtual Value & find(const std::string &key) const =0
Gets a value corresponding to a given keyword.
#define yCInfo(component,...)
#define YARP_LOG_COMPONENT(name,...)