Go to the documentation of this file.
3 #include <gtest/gtest.h>
4 #include <Eigen/Geometry>
11 TEST(TesseractURDFUnit, parse_calibration)
14 std::string str = R
"(<calibration rising="1" falling="2" extra="0 0 0"/>)";
16 EXPECT_TRUE(runTest<tesseract_scene_graph::JointCalibration::Ptr>(
23 std::string str = R"(<calibration rising="1"/>)";
25 EXPECT_TRUE(runTest<tesseract_scene_graph::JointCalibration::Ptr>(
32 std::string str = R"(<calibration falling="2"/>)";
34 EXPECT_TRUE(runTest<tesseract_scene_graph::JointCalibration::Ptr>(
41 std::string str = R"(<calibration rising="a" falling="2"/>)";
43 EXPECT_FALSE(runTest<tesseract_scene_graph::JointCalibration::Ptr>(
48 std::string str = R"(<calibration rising="1" falling="b"/>)";
50 EXPECT_FALSE(runTest<tesseract_scene_graph::JointCalibration::Ptr>(
55 std::string str = "<calibration/>";
57 EXPECT_FALSE(runTest<tesseract_scene_graph::JointCalibration::Ptr>(
62 TEST(TesseractURDFUnit, write_calibration)
static constexpr std::string_view CALIBRATION_ELEMENT_NAME
std::shared_ptr< JointCalibration > Ptr
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define EXPECT_TRUE(args)
std::shared_ptr< tesseract_scene_graph::JointCalibration > parseCalibration(const tinyxml2::XMLElement *xml_element)
Parse a xml calibration element.
#define EXPECT_NEAR(a, b, prec)
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH TESSERACT_COMMON_IGNORE_WARNINGS_POP TEST(TesseractURDFUnit, parse_calibration)
Parse calibration from xml string.
tinyxml2::XMLElement * writeCalibration(const std::shared_ptr< const tesseract_scene_graph::JointCalibration > &calibration, tinyxml2::XMLDocument &doc)
#define EXPECT_FALSE(args)
tesseract_urdf
Author(s): Levi Armstrong
autogenerated on Thu Apr 24 2025 03:10:44