Go to the documentation of this file.
5 #include <gtest/gtest.h>
29 swri::param(pnh,
"used_bool_var_2", bool_var,
true);
33 ASSERT_EQ(4, unused.size());
34 ASSERT_EQ(ns +
"/unused_bool_var", unused[0]);
35 ASSERT_EQ(ns +
"/unused_dbl_var", unused[1]);
36 ASSERT_EQ(ns +
"/unused_int_var", unused[2]);
37 ASSERT_EQ(ns +
"/unused_str_var", unused[3]);
40 int main(
int argc,
char **argv)
43 testing::InitGoogleTest(&argc, argv);
44 return RUN_ALL_TESTS();
ROSCPP_DECL void init(const M_string &remappings, const std::string &name, uint32_t options=0)
TEST(ParamTests, getUnusedParamKeys)
static std::vector< std::string > getUnusedParamKeys(ros::NodeHandle const &n)
int main(int argc, char **argv)
bool getParam(swri::NodeHandle &nh, const std::string name, T &value, const std::string description)
void param(swri::NodeHandle &nh, const std::string name, std::string &value, const std::string def, const std::string description)
const std::string & getNamespace() const
swri_roscpp
Author(s): P. J. Reed
autogenerated on Fri Aug 2 2024 08:39:15