Classes | Macros | Functions
test_planning_scene.cpp File Reference
#include <gtest/gtest.h>
#include <moveit/planning_scene/planning_scene.h>
#include <moveit/utils/message_checks.h>
#include <moveit/utils/robot_model_test_utils.h>
#include <urdf_parser/urdf_parser.h>
#include <fstream>
#include <sstream>
#include <string>
#include <boost/filesystem/path.hpp>
#include <ros/package.h>
#include <moveit/collision_detection/collision_common.h>
#include <moveit/collision_detection/collision_plugin_cache.h>
Include dependency graph for test_planning_scene.cpp:

Go to the source code of this file.

Classes

class  CollisionDetectorTests
 

Macros

#define INSTANTIATE_TEST_SUITE_P(...)   INSTANTIATE_TEST_CASE_P(__VA_ARGS__)
 

Functions

moveit_msgs::PlanningScene create_planning_scene_diff (const planning_scene::PlanningScene &ps, const std::string &object_name, const int8_t operation, const bool attach_object=false, const bool create_object=true)
 
std::set< std::stringget_attached_collision_objects_names (const planning_scene::PlanningScene &ps)
 
std::set< std::stringget_collision_objects_names (const planning_scene::PlanningScene &ps)
 
 INSTANTIATE_TEST_SUITE_P (PluginTests, CollisionDetectorTests, testing::Values("FCL", "Bullet"))
 
int main (int argc, char **argv)
 
 TEST (PlanningScene, FailRetrievingNonExistentObject)
 
 TEST (PlanningScene, isStateValid)
 
 TEST (PlanningScene, loadBadSceneGeometry)
 
 TEST (PlanningScene, loadGoodSceneGeometryNewFormat)
 
 TEST (PlanningScene, loadGoodSceneGeometryOldFormat)
 
 TEST (PlanningScene, LoadRestore)
 
 TEST (PlanningScene, LoadRestoreDiff)
 
 TEST (PlanningScene, MakeAttachedDiff)
 
 TEST (PlanningScene, RobotStateDiffBug)
 
 TEST_P (CollisionDetectorTests, ClearDiff)
 

Macro Definition Documentation

◆ INSTANTIATE_TEST_SUITE_P

#define INSTANTIATE_TEST_SUITE_P (   ...)    INSTANTIATE_TEST_CASE_P(__VA_ARGS__)

Definition at line 491 of file test_planning_scene.cpp.

Function Documentation

◆ create_planning_scene_diff()

moveit_msgs::PlanningScene create_planning_scene_diff ( const planning_scene::PlanningScene ps,
const std::string object_name,
const int8_t  operation,
const bool  attach_object = false,
const bool  create_object = true 
)

Definition at line 349 of file test_planning_scene.cpp.

◆ get_attached_collision_objects_names()

std::set<std::string> get_attached_collision_objects_names ( const planning_scene::PlanningScene ps)

Definition at line 405 of file test_planning_scene.cpp.

◆ get_collision_objects_names()

std::set<std::string> get_collision_objects_names ( const planning_scene::PlanningScene ps)

Definition at line 394 of file test_planning_scene.cpp.

◆ INSTANTIATE_TEST_SUITE_P()

INSTANTIATE_TEST_SUITE_P ( PluginTests  ,
CollisionDetectorTests  ,
testing::Values("FCL", "Bullet")   
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 497 of file test_planning_scene.cpp.

◆ TEST() [1/9]

TEST ( PlanningScene  ,
FailRetrievingNonExistentObject   
)

Definition at line 252 of file test_planning_scene.cpp.

◆ TEST() [2/9]

TEST ( PlanningScene  ,
isStateValid   
)

Definition at line 156 of file test_planning_scene.cpp.

◆ TEST() [3/9]

TEST ( PlanningScene  ,
loadBadSceneGeometry   
)

Definition at line 228 of file test_planning_scene.cpp.

◆ TEST() [4/9]

TEST ( PlanningScene  ,
loadGoodSceneGeometryNewFormat   
)

Definition at line 167 of file test_planning_scene.cpp.

◆ TEST() [5/9]

TEST ( PlanningScene  ,
loadGoodSceneGeometryOldFormat   
)

Definition at line 202 of file test_planning_scene.cpp.

◆ TEST() [6/9]

TEST ( PlanningScene  ,
LoadRestore   
)

Definition at line 51 of file test_planning_scene.cpp.

◆ TEST() [7/9]

TEST ( PlanningScene  ,
LoadRestoreDiff   
)

Definition at line 65 of file test_planning_scene.cpp.

◆ TEST() [8/9]

TEST ( PlanningScene  ,
MakeAttachedDiff   
)

Definition at line 125 of file test_planning_scene.cpp.

◆ TEST() [9/9]

TEST ( PlanningScene  ,
RobotStateDiffBug   
)

Definition at line 415 of file test_planning_scene.cpp.

◆ TEST_P()

TEST_P ( CollisionDetectorTests  ,
ClearDiff   
)

Definition at line 263 of file test_planning_scene.cpp.



moveit_core
Author(s): Ioan Sucan , Sachin Chitta , Acorn Pooley
autogenerated on Sun Sep 18 2022 02:26:16