Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Functions | Variables
tesseract_urdf_visual_unit.cpp File Reference
#include <tesseract_common/macros.h>
#include <gtest/gtest.h>
#include <Eigen/Geometry>
#include <tesseract_geometry/impl/box.h>
#include <tesseract_urdf/box.h>
#include <tesseract_urdf/visual.h>
#include <tesseract_support/tesseract_support_resource_locator.h>
#include "tesseract_urdf_common_unit.h"
Include dependency graph for tesseract_urdf_visual_unit.cpp:

Functions

 EXPECT_TRUE (runTest< std::vector< tesseract_scene_graph::Visual::Ptr > >(elem, &tesseract_urdf::parseVisual, str, "visual", resource_locator, empty_available_materials, 2))
 
 EXPECT_TRUE (elem.size()==1)
 
 EXPECT_TRUE (elem[0]->geometry !=nullptr)
 
 EXPECT_TRUE (elem[0]->material !=nullptr)
 
 EXPECT_FALSE (elem[0]->origin.isApprox(Eigen::Isometry3d::Identity(), 1e-8))
 
 EXPECT_TRUE (elem[0]->origin.isApprox(Eigen::Isometry3d::Identity(), 1e-8))
 
 EXPECT_FALSE (runTest< std::vector< tesseract_scene_graph::Visual::Ptr > >(elem, &tesseract_urdf::parseVisual, str, "visual", resource_locator, empty_available_materials, 2))
 

Variables

TESSERACT_COMMON_IGNORE_WARNINGS_PUSH TESSERACT_COMMON_IGNORE_WARNINGS_POP
 
std::string str
 
std::vector< tesseract_scene_graph::Visual::Ptrelem
 

Function Documentation

◆ EXPECT_FALSE() [1/2]

EXPECT_FALSE ( elem->origin.  isApprox(Eigen::Isometry3d::Identity(), 1e-8)[0])

◆ EXPECT_FALSE() [2/2]

EXPECT_FALSE ( runTest< std::vector< tesseract_scene_graph::Visual::Ptr > >  elem, &tesseract_urdf::parseVisual, str, "visual", resource_locator, empty_available_materials, 2)

◆ EXPECT_TRUE() [1/5]

EXPECT_TRUE ( elem.  size() = =1)

◆ EXPECT_TRUE() [2/5]

EXPECT_TRUE ( elem->geometry [0] = nullptr)

◆ EXPECT_TRUE() [3/5]

EXPECT_TRUE ( elem->material [0] = nullptr)

◆ EXPECT_TRUE() [4/5]

EXPECT_TRUE ( elem->origin.  isApprox(Eigen::Isometry3d::Identity(), 1e-8)[0])

◆ EXPECT_TRUE() [5/5]

EXPECT_TRUE ( runTest< std::vector< tesseract_scene_graph::Visual::Ptr > >  elem, &tesseract_urdf::parseVisual, str, "visual", resource_locator, empty_available_materials, 2)

Variable Documentation

◆ elem

◆ str

std::string str
Initial value:
= R"(<visual extra="0 0 0">
<origin xyz="1 2 3" rpy="0 0 0" />
<geometry>
<box size="1 2 3" />
</geometry>
<material name="Cyan">
<color rgba="0 1.0 1.0 1.0"/>
</material>
</visual>)"

◆ TESSERACT_COMMON_IGNORE_WARNINGS_POP

TESSERACT_COMMON_IGNORE_WARNINGS_PUSH TESSERACT_COMMON_IGNORE_WARNINGS_POP
Initial value:
{
Abstract class for resource loaders.
Definition: tesseract_support_resource_locator.h:42