Tesseract
Motion Planning Environment
|
#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>
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) |
void addLink | ( | Environment & | env | ) |
EXPECT_EQ | ( | cache. | getCacheSize(), |
10 | |||
) |
EXPECT_EQ | ( | cache. | getCacheSize(), |
5 | |||
) |
EXPECT_TRUE | ( | scene_graph ! | = nullptr | ) |
EXPECT_TRUE | ( | srdf ! | = nullptr | ) |
EXPECT_TRUE | ( | success | ) |
for | ( | ) |
SceneGraph::UPtr getSceneGraph | ( | ) |
SRDFModel::Ptr getSRDFModel | ( | const SceneGraph & | scene_graph | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
cache refreshCache | ( | ) |
cache setCacheSize | ( | 5 | ) |
DefaultEnvironmentCache cache(env, 10) | ( | env | , |
10 | |||
) |
auto env = std::make_shared<Environment>() |
SRDFModel srdf = getSRDFModel(*scene_graph) |
bool success = env->init(*scene_graph, srdf) |