moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
test_distance_field.cpp File Reference
#include <gtest/gtest.h>
#include <moveit/distance_field/voxel_grid.hpp>
#include <moveit/distance_field/propagation_distance_field.hpp>
#include <moveit/distance_field/find_internal_points.hpp>
#include <geometric_shapes/body_operations.h>
#include <tf2_eigen/tf2_eigen.hpp>
#include <octomap/octomap.h>
#include <memory>
Include dependency graph for test_distance_field.cpp:

Go to the source code of this file.

Functions

int distanceSequence (int x, int y, int z)
void print (PropagationDistanceField &pdf, int numX, int numY, int numZ)
void printNeg (PropagationDistanceField &pdf, int numX, int numY, int numZ)
void printPointCoords (const Eigen::Vector3i &p)
void printBoth (PropagationDistanceField &pdf, int numX, int numY, int numZ)
bool areDistanceFieldsDistancesEqual (const PropagationDistanceField &df1, const PropagationDistanceField &df2)
bool checkOctomapVersusDistanceField (const PropagationDistanceField &df, const octomap::OcTree &octree)
unsigned int countOccupiedCells (const PropagationDistanceField &df)
unsigned int countLeafNodes (const octomap::OcTree &octree)
void checkDistanceField (const PropagationDistanceField &df, const EigenSTL::vector_Vector3d &points, int numX, int numY, int numZ, bool do_negs)
 TEST (TestPropagationDistanceField, TestAddRemovePoints)
 TEST (TestSignedPropagationDistanceField, TestSignedAddRemovePoints)
 TEST (TestSignedPropagationDistanceField, TestShape)
 TEST (TestSignedPropagationDistanceField, TestPerformance)
 TEST (TestSignedPropagationDistanceField, TestOcTree)
 TEST (TestSignedPropagationDistanceField, TestReadWrite)
int main (int argc, char **argv)

Function Documentation

◆ areDistanceFieldsDistancesEqual()

bool areDistanceFieldsDistancesEqual ( const PropagationDistanceField & df1,
const PropagationDistanceField & df2 )

Definition at line 177 of file test_distance_field.cpp.

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

◆ checkDistanceField()

void checkDistanceField ( const PropagationDistanceField & df,
const EigenSTL::vector_Vector3d & points,
int numX,
int numY,
int numZ,
bool do_negs )

Definition at line 298 of file test_distance_field.cpp.

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

◆ checkOctomapVersusDistanceField()

bool checkOctomapVersusDistanceField ( const PropagationDistanceField & df,
const octomap::OcTree & octree )

Definition at line 209 of file test_distance_field.cpp.

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

◆ countLeafNodes()

unsigned int countLeafNodes ( const octomap::OcTree & octree)

Definition at line 283 of file test_distance_field.cpp.

Here is the caller graph for this function:

◆ countOccupiedCells()

unsigned int countOccupiedCells ( const PropagationDistanceField & df)

Definition at line 264 of file test_distance_field.cpp.

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

◆ distanceSequence()

int distanceSequence ( int x,
int y,
int z )

Definition at line 62 of file test_distance_field.cpp.

◆ main()

int main ( int argc,
char ** argv )

Definition at line 985 of file test_distance_field.cpp.

◆ print()

void print ( PropagationDistanceField & pdf,
int numX,
int numY,
int numZ )

Definition at line 67 of file test_distance_field.cpp.

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

◆ printBoth()

void printBoth ( PropagationDistanceField & pdf,
int numX,
int numY,
int numZ )

Definition at line 144 of file test_distance_field.cpp.

Here is the call graph for this function:

◆ printNeg()

void printNeg ( PropagationDistanceField & pdf,
int numX,
int numY,
int numZ )

Definition at line 96 of file test_distance_field.cpp.

Here is the call graph for this function:

◆ printPointCoords()

void printPointCoords ( const Eigen::Vector3i & p)

Definition at line 112 of file test_distance_field.cpp.

Here is the caller graph for this function:

◆ TEST() [1/6]

TEST ( TestPropagationDistanceField ,
TestAddRemovePoints  )

Definition at line 339 of file test_distance_field.cpp.

Here is the call graph for this function:

◆ TEST() [2/6]

TEST ( TestSignedPropagationDistanceField ,
TestOcTree  )

Definition at line 840 of file test_distance_field.cpp.

Here is the call graph for this function:

◆ TEST() [3/6]

TEST ( TestSignedPropagationDistanceField ,
TestPerformance  )

Definition at line 670 of file test_distance_field.cpp.

Here is the call graph for this function:

◆ TEST() [4/6]

TEST ( TestSignedPropagationDistanceField ,
TestReadWrite  )

Definition at line 937 of file test_distance_field.cpp.

Here is the call graph for this function:

◆ TEST() [5/6]

TEST ( TestSignedPropagationDistanceField ,
TestShape  )

Definition at line 610 of file test_distance_field.cpp.

Here is the call graph for this function:

◆ TEST() [6/6]

TEST ( TestSignedPropagationDistanceField ,
TestSignedAddRemovePoints  )

Definition at line 441 of file test_distance_field.cpp.

Here is the call graph for this function: