Functions | Variables
test_distance_field.cpp File Reference
#include <gtest/gtest.h>
#include <distance_field/voxel_grid.h>
#include <distance_field/propagation_distance_field.h>
#include <ros/ros.h>
Include dependency graph for test_distance_field.cpp:

Go to the source code of this file.

Functions

void check_distance_field (const PropagationDistanceField &df, const std::vector< tf::Vector3 > &points, int numX, int numY, int numZ)
int dist_sq (int x, int y, int z)
int main (int argc, char **argv)
static const tf::Vector3 point1 (0.0, 0.0, 0.0)
static const tf::Vector3 point2 (0.2, 0.2, 0.2)
void print (PropagationDistanceField &pdf, int numX, int numY, int numZ)
 TEST (TestPropagationDistanceField, TestAddPoints)

Variables

static const double depth = 0.5
static const double height = 0.5
static const double max_dist = 0.3
static const int max_dist_in_voxels = max_dist/resolution+0.5
static const int max_dist_sq_in_voxels = max_dist_in_voxels*max_dist_in_voxels
static const double origin_x = 0.0
static const double origin_y = 0.0
static const double origin_z = 0.0
static const double resolution = 0.1
static const double width = 0.5

Function Documentation

void check_distance_field ( const PropagationDistanceField df,
const std::vector< tf::Vector3 > &  points,
int  numX,
int  numY,
int  numZ 
)

Definition at line 80 of file test_distance_field.cpp.

int dist_sq ( int  x,
int  y,
int  z 
)

Definition at line 61 of file test_distance_field.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 153 of file test_distance_field.cpp.

static const tf::Vector3 point1 ( 0.  0,
0.  0,
0.  0 
) [static]
static const tf::Vector3 point2 ( 0.  2,
0.  2,
0.  2 
) [static]
void print ( PropagationDistanceField pdf,
int  numX,
int  numY,
int  numZ 
)

Definition at line 66 of file test_distance_field.cpp.

TEST ( TestPropagationDistanceField  ,
TestAddPoints   
)

Definition at line 102 of file test_distance_field.cpp.


Variable Documentation

const double depth = 0.5 [static]

Definition at line 47 of file test_distance_field.cpp.

const double height = 0.5 [static]

Definition at line 46 of file test_distance_field.cpp.

const double max_dist = 0.3 [static]

Definition at line 52 of file test_distance_field.cpp.

const int max_dist_in_voxels = max_dist/resolution+0.5 [static]

Definition at line 54 of file test_distance_field.cpp.

Definition at line 55 of file test_distance_field.cpp.

const double origin_x = 0.0 [static]

Definition at line 49 of file test_distance_field.cpp.

const double origin_y = 0.0 [static]

Definition at line 50 of file test_distance_field.cpp.

const double origin_z = 0.0 [static]

Definition at line 51 of file test_distance_field.cpp.

const double resolution = 0.1 [static]

Definition at line 48 of file test_distance_field.cpp.

const double width = 0.5 [static]

Definition at line 45 of file test_distance_field.cpp.



distance_field
Author(s): Mrinal Kalakrishnan / mail@mrinal.net
autogenerated on Thu Dec 12 2013 11:08:36