39 #include <boost/algorithm/string/join.hpp>
48 return static_cast<double>(v);
50 return static_cast<int>(v);
61 << (description.empty() ?
"elements" : description.c_str()));
72 ROS_WARN_STREAM(name <<
" is not a struct with keys " << boost::join(keys,
","));
76 std::vector<std::string> missing;
77 for (
const std::string& key : keys)
79 missing.push_back(key);
81 if (!
name.empty() && !missing.empty())
83 ROS_WARN_STREAM(name <<
" is not a struct with keys " << boost::join(keys,
",") <<
" (misses "
84 << boost::join(missing,
",") <<
")");
88 return missing.empty();