Go to the documentation of this file.
3 #include <gtest/gtest.h>
5 #include <ros/package.h>
13 std::string path = ros::package::getPath(
"tue_config");
14 path +=
"/test/model.sdf";
30 EXPECT_STREQ(
"robotics_testlabs_sdf/battery_table", name.
c_str());
41 EXPECT_DOUBLE_EQ(1.6, version);
60 double linknameD = 0.;
71 int main(
int argc,
char **argv)
73 testing::InitGoogleTest(&argc, argv);
74 return RUN_ALL_TESTS();
bool readArray(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
readArray read the child with key 'name', which should be an array
bool loadFromSDFFile(const std::string &filename, ReaderWriter &config)
loadFromSDFFile loads a sdf file into a ReaderWriter class
bool endArray()
endArray go to parrent of current array, wrapping end() for readibility
int main(int argc, char **argv)
bool value(const std::string &name, T &value, RequiredOrOptional opt=REQUIRED)
value read value of child with key 'name'
bool readGroup(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
readGroup read the child with key 'name', which should be a group
bool nextArrayItem()
nextArrayItem go to the next item in the array, wrapping next() for readbility
tue::config::ReaderWriter config