Classes | Typedefs | Functions | Variables
voxel_markers.cpp File Reference
#include <ros/ros.h>
#include <visualization_msgs/MarkerArray.h>
#include <costmap_2d/VoxelGrid.h>
#include <voxel_grid/voxel_grid.h>
Include dependency graph for voxel_markers.cpp:

Go to the source code of this file.

Classes

struct  Cell
 

Typedefs

typedef std::vector< CellV_Cell
 

Functions

void connectCb ()
 
void disconnectCb ()
 
int main (int argc, char **argv)
 
void voxelCallback (const ros::Publisher &pub, const costmap_2d::VoxelGridConstPtr &grid)
 

Variables

int g_cell_type
 
V_Cell g_cells
 
float g_colors_a [] = {0.5f, 0.1f, 0.5f}
 
float g_colors_b [] = {1.0f, 1.0f, 0.0f}
 
float g_colors_g [] = {1.0f, 1.0f, 0.0f}
 
float g_colors_r [] = {0.0f, 1.0f, 1.0f}
 
std::string g_marker_ns
 
ros::Publisher pub
 
ros::Subscriber sub
 

Typedef Documentation

◆ V_Cell

typedef std::vector<Cell> V_Cell

Definition at line 56 of file voxel_markers.cpp.

Function Documentation

◆ connectCb()

void connectCb ( )

Definition at line 149 of file voxel_markers.cpp.

◆ disconnectCb()

void disconnectCb ( )

Definition at line 155 of file voxel_markers.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 161 of file voxel_markers.cpp.

◆ voxelCallback()

void voxelCallback ( const ros::Publisher pub,
const costmap_2d::VoxelGridConstPtr &  grid 
)

Definition at line 66 of file voxel_markers.cpp.

Variable Documentation

◆ g_cell_type

int g_cell_type

Definition at line 65 of file voxel_markers.cpp.

◆ g_cells

V_Cell g_cells

Definition at line 64 of file voxel_markers.cpp.

◆ g_colors_a

float g_colors_a[] = {0.5f, 0.1f, 0.5f}

Definition at line 61 of file voxel_markers.cpp.

◆ g_colors_b

float g_colors_b[] = {1.0f, 1.0f, 0.0f}

Definition at line 60 of file voxel_markers.cpp.

◆ g_colors_g

float g_colors_g[] = {1.0f, 1.0f, 0.0f}

Definition at line 59 of file voxel_markers.cpp.

◆ g_colors_r

float g_colors_r[] = {0.0f, 1.0f, 1.0f}

Definition at line 58 of file voxel_markers.cpp.

◆ g_marker_ns

std::string g_marker_ns

Definition at line 63 of file voxel_markers.cpp.

◆ pub

Definition at line 147 of file voxel_markers.cpp.

◆ sub

Definition at line 148 of file voxel_markers.cpp.



rtabmap_ros
Author(s): Mathieu Labbe
autogenerated on Tue Jan 24 2023 04:04:40