Tesseract
Motion Planning Environment
|
#include <tesseract_common/macros.h>
#include <gtest/gtest.h>
#include <Eigen/Geometry>
#include <tesseract_urdf/urdf_parser.h>
#include <tesseract_common/utils.h>
#include <tesseract_urdf/material.h>
#include "tesseract_urdf_common_unit.h"
Functions | |
EXPECT_TRUE (runTest< tesseract_scene_graph::Material::Ptr >(elem, &tesseract_urdf::parseMaterial, str, "material", empty_available_materials, 2, true)) | |
EXPECT_TRUE (elem->getName()=="test_material") | |
EXPECT_TRUE (elem->color.isApprox(Eigen::Vector4d(1,.5,.5, 1), 1e-8)) | |
EXPECT_TRUE (elem->texture_filename==tesseract_common::getTempPath()+"texture.txt") | |
EXPECT_TRUE (elem->texture_filename.empty()) | |
EXPECT_TRUE (runTest< tesseract_scene_graph::Material::Ptr >(elem, &tesseract_urdf::parseMaterial, str, "material", available_materials, 2, true)) | |
EXPECT_FALSE (runTest< tesseract_scene_graph::Material::Ptr >(elem, &tesseract_urdf::parseMaterial, str, "material", empty_available_materials, 2, true)) | |
EXPECT_FALSE (runTest< tesseract_scene_graph::Material::Ptr >(elem, &tesseract_urdf::parseMaterial, str, "material", available_materials, 2, true)) | |
Variables | |
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH | TESSERACT_COMMON_IGNORE_WARNINGS_POP |
m | color = Eigen::Vector4d(1, .5, .5, 1) |
m | texture_filename = tesseract_common::getTempPath() + "texture.txt" |
std::unordered_map< std::string, tesseract_scene_graph::Material::Ptr > | available_materials |
std::string | str |
tesseract_scene_graph::Material::Ptr | elem |
EXPECT_FALSE | ( | runTest< tesseract_scene_graph::Material::Ptr > | elem, &tesseract_urdf::parseMaterial, str, "material", available_materials, 2, true | ) |
EXPECT_FALSE | ( | runTest< tesseract_scene_graph::Material::Ptr > | elem, &tesseract_urdf::parseMaterial, str, "material", empty_available_materials, 2, true | ) |
EXPECT_TRUE | ( | elem->color. | isApproxEigen::Vector4d(1,.5,.5, 1), 1e-8 | ) |
EXPECT_TRUE | ( | elem-> | getName() = ="test_material" | ) |
EXPECT_TRUE | ( | elem->texture_filename. | empty() | ) |
EXPECT_TRUE | ( | elem-> | texture_filename = =tesseract_common::getTempPath()+"texture.txt" | ) |
EXPECT_TRUE | ( | runTest< tesseract_scene_graph::Material::Ptr > | elem, &tesseract_urdf::parseMaterial, str, "material", available_materials, 2, true | ) |
EXPECT_TRUE | ( | runTest< tesseract_scene_graph::Material::Ptr > | elem, &tesseract_urdf::parseMaterial, str, "material", empty_available_materials, 2, true | ) |
std::unordered_map< std::string, tesseract_scene_graph::Material::Ptr > available_materials |
m color = Eigen::Vector4d(1, .5, .5, 1) |
std::string str |
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH TESSERACT_COMMON_IGNORE_WARNINGS_POP |
m texture_filename = tesseract_common::getTempPath() + "texture.txt" |