moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
test_multi_threaded.cpp File Reference
Include dependency graph for test_multi_threaded.cpp:

Go to the source code of this file.

Classes

class  CollisionDetectorTests

Macros

#define INSTANTIATE_TEST_SUITE_P(...)

Functions

bool runCollisionDetection (unsigned int, unsigned int trials, const planning_scene::PlanningScene &scene, const moveit::core::RobotState &state)
void runCollisionDetectionAssert (unsigned int id, unsigned int trials, const planning_scene::PlanningScene &scene, const moveit::core::RobotState &state, bool expected_result)
 TEST_P (CollisionDetectorTests, Threaded)
 Tests the collision detector in multiple threads.
 INSTANTIATE_TEST_SUITE_P (PluginTests, CollisionDetectorTests, testing::Values("FCL", "Bullet"))
int main (int argc, char **argv)

Variables

const int TRIALS = 1000
const int THREADS = 2

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 145 of file test_multi_threaded.cpp.

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P()

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

◆ main()

int main ( int argc,
char ** argv )

Definition at line 151 of file test_multi_threaded.cpp.

◆ runCollisionDetection()

bool runCollisionDetection ( unsigned int ,
unsigned int trials,
const planning_scene::PlanningScene & scene,
const moveit::core::RobotState & state )

Definition at line 50 of file test_multi_threaded.cpp.

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

◆ runCollisionDetectionAssert()

void runCollisionDetectionAssert ( unsigned int id,
unsigned int trials,
const planning_scene::PlanningScene & scene,
const moveit::core::RobotState & state,
bool expected_result )

Definition at line 63 of file test_multi_threaded.cpp.

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

◆ TEST_P()

TEST_P ( CollisionDetectorTests ,
Threaded  )

Tests the collision detector in multiple threads.

Definition at line 99 of file test_multi_threaded.cpp.

Here is the call graph for this function:

Variable Documentation

◆ THREADS

const int THREADS = 2

Definition at line 48 of file test_multi_threaded.cpp.

◆ TRIALS

const int TRIALS = 1000

Definition at line 47 of file test_multi_threaded.cpp.