Go to the documentation of this file.
3 #include <gtest/gtest.h>
4 #include <Eigen/Geometry>
11 TEST(TesseractURDFUnit, parse_cone)
14 std::string str = R
"(<tesseract:cone radius="1" length="2" extra="0 0 0"/>)";
23 std::string str = R
"(<tesseract:cone radius="0.25" length="0.5" extra="0 0 0"/>)";
32 std::string str = R"(<tesseract:cone radius="-1" length="2" extra="0 0 0"/>)";
39 std::string str = R"(<tesseract:cone radius="1" length="-2" extra="0 0 0"/>)";
46 std::string str = R"(<tesseract:cone radius="a" length="2"/>)";
53 std::string str = R"(<tesseract:cone radius="1" length="a"/>)";
69 std::string str = R
"(<tesseract:cone radius="1"/>)";
76 std::string str = R"(<tesseract:cone length="2"/>)";
83 std::string str = "<tesseract:cone />";
90 TEST(TesseractURDFUnit, write_cone)
tinyxml2::XMLElement * writeCone(const std::shared_ptr< const tesseract_geometry::Cone > &cone, tinyxml2::XMLDocument &doc)
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define EXPECT_TRUE(args)
Parse cone from xml string.
#define EXPECT_NEAR(a, b, prec)
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH TESSERACT_COMMON_IGNORE_WARNINGS_POP TEST(TesseractURDFUnit, parse_cone)
std::shared_ptr< tesseract_geometry::Cone > parseCone(const tinyxml2::XMLElement *xml_element)
Parse a xml cone element.
std::shared_ptr< Cone > Ptr
#define EXPECT_FALSE(args)
static constexpr std::string_view CONE_ELEMENT_NAME
tesseract_urdf
Author(s): Levi Armstrong
autogenerated on Thu Apr 24 2025 03:10:44