moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
test_planning_scene.cpp File Reference
#include <cstdint>
#include <gtest/gtest.h>
#include <moveit/collision_detection_fcl/collision_detector_allocator_fcl.hpp>
#include <moveit/planning_scene/planning_scene.hpp>
#include <moveit/utils/message_checks.hpp>
#include <moveit/utils/robot_model_test_utils.hpp>
#include <urdf_parser/urdf_parser.h>
#include <fstream>
#include <sstream>
#include <string>
#include <tf2_eigen/tf2_eigen.hpp>
#include <octomap_msgs/conversions.h>
#include <octomap/octomap.h>
#include <moveit/collision_detection/collision_common.hpp>
#include <moveit/collision_detection/collision_plugin_cache.hpp>
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(...)

Functions

 TEST (PlanningScene, TestOneShapeObjectPose)
 TEST (PlanningScene, LoadRestore)
 TEST (PlanningScene, LoadOctomap)
 TEST (PlanningScene, LoadRestoreDiff)
 TEST (PlanningScene, MakeAttachedDiff)
 TEST (PlanningScene, isStateValid)
 TEST (PlanningScene, loadGoodSceneGeometryNewFormat)
 TEST (PlanningScene, loadGoodSceneGeometryOldFormat)
 TEST (PlanningScene, loadBadSceneGeometry)
 TEST (PlanningScene, switchCollisionDetectorType)
 TEST (PlanningScene, FailRetrievingNonExistentObject)
 TEST_P (CollisionDetectorTests, ClearDiff)
moveit_msgs::msg::PlanningScene createPlanningSceneDiff (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::string > getCollisionObjectsNames (const planning_scene::PlanningScene &ps)
std::set< std::string > getAttachedCollisionObjectsNames (const planning_scene::PlanningScene &ps)
 TEST (PlanningScene, RobotStateDiffBug)
 TEST (PlanningScene, UpdateACMAfterObjectRemoval)
 INSTANTIATE_TEST_SUITE_P (PluginTests, CollisionDetectorTests, testing::Values("FCL", "Bullet"))
int main (int argc, char **argv)

Macro Definition Documentation

◆ INSTANTIATE_TEST_SUITE_P

#define INSTANTIATE_TEST_SUITE_P ( ...)
Value:
INSTANTIATE_TEST_CASE_P(float_test, MeshFilterTestFloat, ::testing::Range< double >(0.0f, 6.0f, 0.5f))

Definition at line 669 of file test_planning_scene.cpp.

Function Documentation

◆ createPlanningSceneDiff()

moveit_msgs::msg::PlanningScene createPlanningSceneDiff ( 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 451 of file test_planning_scene.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAttachedCollisionObjectsNames()

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

Definition at line 508 of file test_planning_scene.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCollisionObjectsNames()

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

Definition at line 497 of file test_planning_scene.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ INSTANTIATE_TEST_SUITE_P()

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

◆ main()

int main ( int argc,
char ** argv )

Definition at line 675 of file test_planning_scene.cpp.

◆ TEST() [1/13]

TEST ( PlanningScene ,
FailRetrievingNonExistentObject  )

Definition at line 354 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [2/13]

TEST ( PlanningScene ,
isStateValid  )

Definition at line 239 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [3/13]

TEST ( PlanningScene ,
loadBadSceneGeometry  )

Definition at line 311 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [4/13]

TEST ( PlanningScene ,
loadGoodSceneGeometryNewFormat  )

Definition at line 250 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [5/13]

TEST ( PlanningScene ,
loadGoodSceneGeometryOldFormat  )

Definition at line 285 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [6/13]

TEST ( PlanningScene ,
LoadOctomap  )

Definition at line 95 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [7/13]

TEST ( PlanningScene ,
LoadRestore  )

Definition at line 81 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [8/13]

TEST ( PlanningScene ,
LoadRestoreDiff  )

Definition at line 148 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [9/13]

TEST ( PlanningScene ,
MakeAttachedDiff  )

Definition at line 208 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [10/13]

TEST ( PlanningScene ,
RobotStateDiffBug  )

Definition at line 518 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [11/13]

TEST ( PlanningScene ,
switchCollisionDetectorType  )

Definition at line 337 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [12/13]

TEST ( PlanningScene ,
TestOneShapeObjectPose  )

Definition at line 55 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST() [13/13]

TEST ( PlanningScene ,
UpdateACMAfterObjectRemoval  )

Definition at line 594 of file test_planning_scene.cpp.

Here is the call graph for this function:

◆ TEST_P()

TEST_P ( CollisionDetectorTests ,
ClearDiff  )

Definition at line 365 of file test_planning_scene.cpp.

Here is the call graph for this function: