19 YARP_LOG_COMPONENT(FrameTransformGet_nwc_ros2ParamsCOMPONENT,
"yarp.device.FrameTransformGet_nwc_ros2")
30 std::vector<std::string> params;
31 params.push_back(
"GENERAL::refresh_interval");
32 params.push_back(
"ROS2::ft_node");
33 params.push_back(
"ROS2::namespace");
34 params.push_back(
"ROS2::ft_topic");
35 params.push_back(
"ROS2::ft_topic_static");
42 if (paramName ==
"GENERAL::refresh_interval")
47 if (paramName ==
"ROS2::ft_node")
52 if (paramName ==
"ROS2::namespace")
57 if (paramName ==
"ROS2::ft_topic")
62 if (paramName ==
"ROS2::ft_topic_static")
68 yError() <<
"parameter '" << paramName <<
"' was not found";
87 if (config.
check(
"help"))
98 if (sectionp.
check(
"refresh_interval"))
107 prop_check.
unput(
"GENERAL::refresh_interval");
114 if (sectionp.
check(
"ft_node"))
117 yCInfo(FrameTransformGet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_node' using value:" <<
m_ROS2_ft_node;
121 yCInfo(FrameTransformGet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_node' using DEFAULT value:" <<
m_ROS2_ft_node;
123 prop_check.
unput(
"ROS2::ft_node");
130 if (sectionp.
check(
"namespace"))
133 yCInfo(FrameTransformGet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::namespace' using value:" <<
m_ROS2_namespace;
137 yCInfo(FrameTransformGet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::namespace' using DEFAULT value:" <<
m_ROS2_namespace;
139 prop_check.
unput(
"ROS2::namespace");
146 if (sectionp.
check(
"ft_topic"))
149 yCInfo(FrameTransformGet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_topic' using value:" <<
m_ROS2_ft_topic;
153 yCInfo(FrameTransformGet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_topic' using DEFAULT value:" <<
m_ROS2_ft_topic;
155 prop_check.
unput(
"ROS2::ft_topic");
162 if (sectionp.
check(
"ft_topic_static"))
169 yCInfo(FrameTransformGet_nwc_ros2ParamsCOMPONENT) <<
"Parameter 'ROS2::ft_topic_static' using DEFAULT value:" <<
m_ROS2_ft_topic_static;
171 prop_check.
unput(
"ROS2::ft_topic_static");
206 doc = doc + std::string(
"\n=============================================\n");
207 doc = doc + std::string(
"This is the help for device: FrameTransformGet_nwc_ros2\n");
208 doc = doc + std::string(
"\n");
209 doc = doc + std::string(
"This is the list of the parameters accepted by the device:\n");
210 doc = doc + std::string(
"'GENERAL::refresh_interval': The time interval outside which timed ft will be deleted\n");
211 doc = doc + std::string(
"'ROS2::ft_node': The name of the ROS2 node\n");
212 doc = doc + std::string(
"'ROS2::namespace': optional namespace for ros2 node\n");
213 doc = doc + std::string(
"'ROS2::ft_topic': The name of the ROS2 topic from which fts will be received\n");
214 doc = doc + std::string(
"'ROS2::ft_topic_static': The name of the ROS2 topic from which static fts will be received\n");
215 doc = doc + std::string(
"\n");
216 doc = doc + std::string(
"Here are some examples of invocation command with yarpdev, with all params:\n");
217 doc = doc +
" yarpdev --device frameTransformGet_nwc_ros2 --GENERAL::refresh_interval 0.1 --ROS2::ft_node tfNodeGet --ROS2::namespace <optional_value> --ROS2::ft_topic /tf --ROS2::ft_topic_static /tf_static\n";
218 doc = doc + std::string(
"Using only mandatory params:\n");
219 doc = doc +
" yarpdev --device frameTransformGet_nwc_ros2\n";
220 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::string asString() const
Get string value.
#define yCInfo(component,...)
#define YARP_LOG_COMPONENT(name,...)