Go to the documentation of this file.
3 #include <gtest/gtest.h>
4 #include <Eigen/Geometry>
11 TEST(TesseractURDFUnit, parse_sphere)
14 std::string str = R
"(<sphere radius="1" extra="0 0 0"/>)";
16 EXPECT_TRUE(runTest<tesseract_geometry::Sphere::Ptr>(
22 std::string str = R
"(<sphere radius="0.25" extra="0 0 0"/>)";
24 EXPECT_TRUE(runTest<tesseract_geometry::Sphere::Ptr>(
30 std::string str = R"(<sphere radius="-1" extra="0 0 0"/>)";
37 std::string str = R"(<sphere radius="a"/>)";
53 std::string str = R
"(<sphere />)";
60 TEST(TesseractURDFUnit, write_sphere)
std::shared_ptr< tesseract_geometry::Sphere > parseSphere(const tinyxml2::XMLElement *xml_element)
Parse a xml sphere element.
static constexpr std::string_view SPHERE_ELEMENT_NAME
Parse sphere from xml string.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define EXPECT_TRUE(args)
#define EXPECT_NEAR(a, b, prec)
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH TESSERACT_COMMON_IGNORE_WARNINGS_POP TEST(TesseractURDFUnit, parse_sphere)
tinyxml2::XMLElement * writeSphere(const std::shared_ptr< const tesseract_geometry::Sphere > &sphere, tinyxml2::XMLDocument &doc)
std::shared_ptr< Sphere > Ptr
#define EXPECT_FALSE(args)
tesseract_urdf
Author(s): Levi Armstrong
autogenerated on Thu Apr 24 2025 03:10:44