19 YARP_LOG_COMPONENT(FrameTransformSet_nwc_ros2ParamsCOMPONENT,
"yarp.device.FrameTransformSet_nwc_ros2")
30 std::vector<std::string> params;
31 params.push_back(
"GENERAL::refresh_interval");
32 params.push_back(
"GENERAL::period");
33 params.push_back(
"GENERAL::asynch_pub");
34 params.push_back(
"ROS2::ft_node");
35 params.push_back(
"ROS2::namespace");
36 params.push_back(
"ROS2::ft_topic");
37 params.push_back(
"ROS2::ft_topic_static");
44 if (paramName ==
"GENERAL::refresh_interval")
49 if (paramName ==
"GENERAL::period")
54 if (paramName ==
"GENERAL::asynch_pub")
59 if (paramName ==
"ROS2::ft_node")
64 if (paramName ==
"ROS2::namespace")
69 if (paramName ==
"ROS2::ft_topic")
74 if (paramName ==
"ROS2::ft_topic_static")
80 yError() <<
"parameter '" << paramName <<
"' was not found";
99 if (config.
check(
"help"))
110 if (sectionp.
check(
"refresh_interval"))
119 prop_check.
unput(
"GENERAL::refresh_interval");
126 if (sectionp.
check(
"period"))
129 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'GENERAL::period' using value:" <<
m_GENERAL_period;
133 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'GENERAL::period' using DEFAULT value:" <<
m_GENERAL_period;
135 prop_check.
unput(
"GENERAL::period");
142 if (sectionp.
check(
"asynch_pub"))
149 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'GENERAL::asynch_pub' using DEFAULT value:" <<
m_GENERAL_asynch_pub;
151 prop_check.
unput(
"GENERAL::asynch_pub");
158 if (sectionp.
check(
"ft_node"))
161 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_node' using value:" <<
m_ROS2_ft_node;
165 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_node' using DEFAULT value:" <<
m_ROS2_ft_node;
167 prop_check.
unput(
"ROS2::ft_node");
174 if (sectionp.
check(
"namespace"))
177 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::namespace' using value:" <<
m_ROS2_namespace;
181 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::namespace' using DEFAULT value:" <<
m_ROS2_namespace;
183 prop_check.
unput(
"ROS2::namespace");
190 if (sectionp.
check(
"ft_topic"))
193 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_topic' using value:" <<
m_ROS2_ft_topic;
197 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_topic' using DEFAULT value:" <<
m_ROS2_ft_topic;
199 prop_check.
unput(
"ROS2::ft_topic");
206 if (sectionp.
check(
"ft_topic_static"))
213 yCInfo(FrameTransformSet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_topic_static' using DEFAULT value:" <<
m_ROS2_ft_topic_static;
215 prop_check.
unput(
"ROS2::ft_topic_static");
250 doc = doc + std::string(
"\n=============================================\n");
251 doc = doc + std::string(
"This is the help for device: FrameTransformSet_nwc_ros2\n");
252 doc = doc + std::string(
"\n");
253 doc = doc + std::string(
"This is the list of the parameters accepted by the device:\n");
254 doc = doc + std::string(
"'GENERAL::refresh_interval': The time interval outside which timed ft will be deleted\n");
255 doc = doc + std::string(
"'GENERAL::period': The PeriodicThread period in seconds\n");
256 doc = doc + std::string(
"'GENERAL::asynch_pub': If 1, the fts will be published not only every \"period\" seconds but also when set functions are called\n");
257 doc = doc + std::string(
"'ROS2::ft_node': The name of the ROS2 node\n");
258 doc = doc + std::string(
"'ROS2::namespace': optional namespace for ros2 node\n");
259 doc = doc + std::string(
"'ROS2::ft_topic': The name of the ROS2 topic from which fts will be received\n");
260 doc = doc + std::string(
"'ROS2::ft_topic_static': The name of the ROS2 topic from which static fts will be received\n");
261 doc = doc + std::string(
"\n");
262 doc = doc + std::string(
"Here are some examples of invocation command with yarpdev, with all params:\n");
263 doc = doc +
" yarpdev --device frameTransformSet_nwc_ros2 --GENERAL::refresh_interval 0.1 --GENERAL::period 0.01 --GENERAL::asynch_pub 1 --ROS2::ft_node tfNodeSet --ROS2::namespace <optional_value> --ROS2::ft_topic /tf --ROS2::ft_topic_static /tf_static\n";
264 doc = doc + std::string(
"Using only mandatory params:\n");
265 doc = doc +
" yarpdev --device frameTransformSet_nwc_ros2\n";
266 doc = doc + std::string(
"=============================================\n\n");
return doc;
A simple collection of objects that can be described and transmitted in a portable way.
bool check(const std::string &key) const override
Check if there exists a property of the given name.
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
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 Bottle & findGroup(const std::string &key) const =0
Gets a list corresponding to a given keyword.
virtual yarp::conf::float64_t asFloat64() const
Get 64-bit floating point value.
virtual std::int64_t asInt64() const
Get 64-bit integer value.
virtual std::string asString() const
Get string value.
#define yCInfo(component,...)
#define YARP_LOG_COMPONENT(name,...)