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_environment/environment.h>
#include <tesseract_environment/utils.h>
#include <tesseract_support/tesseract_support_resource_locator.h>
Functions | |
SceneGraph::UPtr | getSceneGraph () |
SRDFModel::Ptr | getSRDFModel (const SceneGraph &scene_graph) |
template<typename ManagerType > | |
void | checkIsAllowedFnOverride (std::unique_ptr< ManagerType > manager) |
EXPECT_TRUE (scene_graph !=nullptr) | |
EXPECT_TRUE (srdf !=nullptr) | |
EXPECT_TRUE (success) | |
checkIsAllowedFnOverride< DiscreteContactManager > (env->getDiscreteContactManager()) | |
checkIsAllowedFnOverride< ContinuousContactManager > (env->getContinuousContactManager()) | |
manager | setActiveCollisionObjects (active_links) |
tmap["test_box_link"] | translate (Eigen::Vector3d(0.9, 0, 0)) |
checkTrajectoryState (contacts, *manager, tmap, config) | |
EXPECT_FALSE (contacts.empty()) | |
manager | applyContactManagerConfig (config.contact_manager_config) |
contacts | clear () |
EXPECT_TRUE (contacts.empty()) | |
tmap1["test_box_link"] | translate (Eigen::Vector3d(0.9, 2, 0)) |
tmap2["test_box_link"] | translate (Eigen::Vector3d(0.9, -2, 0)) |
checkTrajectorySegment (contacts, *manager, tmap1, tmap2, config.contact_request) | |
tmap["test_box_link"] | translate (Eigen::Vector3d(1.05, 0, 0)) |
checkTrajectoryState (contacts, *manager, tmap, config.contact_request) | |
tmap1["test_box_link"] | translate (Eigen::Vector3d(1.05, 2, 0)) |
tmap2["test_box_link"] | translate (Eigen::Vector3d(1.05, -2, 0)) |
checkTrajectorySegment (contacts, *manager, tmap1, tmap2, config) | |
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) |
CollisionCheckConfig | mCollisionCheckConfig |
mCollisionCheckConfig | longest_valid_segment_length = 0.1 |
mCollisionCheckConfig contact_request | type = tesseract_collision::ContactTestType::FIRST |
tesseract_collision::CollisionMarginData | margin_data (0.0) = margin_data |
CollisionCheckConfig | default_config |
default_config contact_manager_config | margin_data_override_type |
tesseract_collision::ContactResultMap | contacts |
DiscreteContactManager::Ptr | manager = env->getDiscreteContactManager() |
std::vector< std::string > | active_links = { "boxbot_link", "test_box_link" } |
tesseract_common::TransformMap | tmap = Eigen::Isometry3d::Identity() |
tesseract_common::TransformMap | tmap1 = Eigen::Isometry3d::Identity() |
tesseract_common::TransformMap | tmap2 = Eigen::Isometry3d::Identity() |
manager applyContactManagerConfig | ( | config. | contact_manager_config | ) |
void checkIsAllowedFnOverride | ( | std::unique_ptr< ManagerType > | manager | ) |
checkIsAllowedFnOverride< ContinuousContactManager > | ( | env-> | getContinuousContactManager() | ) |
checkIsAllowedFnOverride< DiscreteContactManager > | ( | env-> | getDiscreteContactManager() | ) |
contacts clear | ( | ) |
EXPECT_FALSE | ( | contacts. | empty() | ) |
EXPECT_TRUE | ( | contacts. | empty() | ) |
EXPECT_TRUE | ( | scene_graph ! | = nullptr | ) |
EXPECT_TRUE | ( | srdf ! | = nullptr | ) |
EXPECT_TRUE | ( | success | ) |
SceneGraph::UPtr getSceneGraph | ( | ) |
SRDFModel::Ptr getSRDFModel | ( | const SceneGraph & | scene_graph | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
manager setActiveCollisionObjects | ( | active_links | ) |
tmap2["test_box_link"] translate | ( | Eigen::Vector3d(0.9, -2, 0) | ) |
tmap["test_box_link"] translate | ( | Eigen::Vector3d(0.9, 0, 0) | ) |
tmap1["test_box_link"] translate | ( | Eigen::Vector3d(0.9, 2, 0) | ) |
tmap2["test_box_link"] translate | ( | Eigen::Vector3d(1.05, -2, 0) | ) |
tmap["test_box_link"] translate | ( | Eigen::Vector3d(1.05, 0, 0) | ) |
tmap1["test_box_link"] translate | ( | Eigen::Vector3d(1.05, 2, 0) | ) |
std::vector<std::string> active_links = { "boxbot_link", "test_box_link" } |
CollisionCheckConfig default_config |
auto env = std::make_shared<Environment>() |
default_config longest_valid_segment_length = 0.1 |
ContinuousContactManager::Ptr manager = env->getDiscreteContactManager() |
default_config contact_manager_config margin_data | ( | 0. | 0 | ) | = margin_data |
default_config contact_manager_config margin_data_override_type |
CollisionCheckConfig mCollisionCheckConfig |
auto srdf = getSRDFModel(*scene_graph) |
bool success = env->init(*scene_graph, srdf) |
tesseract_common::TransformMap tmap = Eigen::Isometry3d::Identity() |
tesseract_common::TransformMap tmap1 = Eigen::Isometry3d::Identity() |
tesseract_common::TransformMap tmap2 = Eigen::Isometry3d::Identity() |