Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
Functions | Variables
tesseract_environment_cache_unit.cpp File Reference
#include <tesseract_common/macros.h>
#include <gtest/gtest.h>
#include <algorithm>
#include <vector>
#include <tesseract_urdf/urdf_parser.h>
#include <tesseract_common/resource_locator.h>
#include <tesseract_common/utils.h>
#include <tesseract_geometry/impl/box.h>
#include <tesseract_environment/environment.h>
#include <tesseract_environment/environment_cache.h>
#include <tesseract_support/tesseract_support_resource_locator.h>
Include dependency graph for tesseract_environment_cache_unit.cpp:

Functions

SceneGraph::UPtr getSceneGraph ()
 
SRDFModel::Ptr getSRDFModel (const SceneGraph &scene_graph)
 
void addLink (Environment &env)
 
 EXPECT_TRUE (scene_graph !=nullptr)
 
 EXPECT_TRUE (srdf !=nullptr)
 
 EXPECT_TRUE (success)
 
 EXPECT_EQ (cache.getCacheSize(), 10)
 
cache setCacheSize (5)
 
 EXPECT_EQ (cache.getCacheSize(), 5)
 
 for (int i=0;i< 20;++i)
 
cache refreshCache ()
 
int main (int argc, char **argv)
 

Variables

auto srdf = getSRDFModel(*scene_graph)
 
auto env = std::make_shared<Environment>()
 
bool success = env->init(*scene_graph, srdf)
 
DefaultEnvironmentCache cache (env, 10)
 

Function Documentation

◆ addLink()

void addLink ( Environment env)

◆ EXPECT_EQ() [1/2]

EXPECT_EQ ( cache.  getCacheSize(),
10   
)

◆ EXPECT_EQ() [2/2]

EXPECT_EQ ( cache.  getCacheSize(),
 
)

◆ EXPECT_TRUE() [1/3]

EXPECT_TRUE ( scene_graph = nullptr)
Initial value:
{
auto scene_graph
Definition: ikfast_kinematics_7dof_unit.cpp:51
SceneGraph::UPtr getSceneGraph()
Definition: tesseract_environment_cache_unit.cpp:21

◆ EXPECT_TRUE() [2/3]

EXPECT_TRUE ( srdf = nullptr)

◆ EXPECT_TRUE() [3/3]

EXPECT_TRUE ( success  )

◆ for()

for ( )

◆ getSceneGraph()

SceneGraph::UPtr getSceneGraph ( )

◆ getSRDFModel()

SRDFModel::Ptr getSRDFModel ( const SceneGraph scene_graph)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ refreshCache()

cache refreshCache ( )

◆ setCacheSize()

cache setCacheSize ( )

Variable Documentation

◆ cache

DefaultEnvironmentCache cache(env, 10) ( env  ,
10   
)

◆ env

auto env = std::make_shared<Environment>()

◆ srdf

◆ success

bool success = env->init(*scene_graph, srdf)