37 #include <gtest/gtest.h> 63 for (
int i = 1; i <
g_argc - 2; i++) {
72 ASSERT_EQ((
unsigned int)1, my_tree.
getRootSegment()->second.children.size());
74 ASSERT_EQ(10.0, my_tree.
getSegment(
"base_link")->second.segment.getInertia().getMass());
76 "base_link")->second.segment.getInertia().getRotationalInertia().data[0], 0.001);
80 int main(
int argc,
char ** argv)
82 testing::InitGoogleTest(&argc, argv);
86 return RUN_ALL_TESTS();
SegmentMap::const_iterator getSegment(const std::string &segment_name) const
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
KDL_PARSER_PUBLIC bool treeFromFile(const std::string &file, KDL::Tree &tree)
SegmentMap::const_iterator getRootSegment() const
unsigned int getNrOfSegments() const
unsigned int getNrOfJoints() const