ed
Classes | Enumerations | Functions | Variables
gui_plugin.cpp File Reference
#include "gui_plugin.h"
#include <ed/entity.h>
#include <ed/measurement.h>
#include <ed/world_model.h>
#include <rgbd/Image.h>
#include <rgbd/View.h>
#include <ros/node_handle.h>
#include <ros/advertise_service_options.h>
#include <geolib/Shape.h>
#include <opencv2/highgui/highgui.hpp>
#include <map>
#include <vector>
Include dependency graph for gui_plugin.cpp:

Go to the source code of this file.

Classes

class  ColorRenderResult
 

Enumerations

enum  ImageCompressionType { IMAGE_COMPRESSION_JPG, IMAGE_COMPRESSION_PNG }
 

Functions

int hash (const char *str, int max_val)
 
cv::Scalar idToColor (const ed::UUID &id)
 
bool imageToBinary (const cv::Mat &image, std::vector< unsigned char > &data, ImageCompressionType compression_type)
 
bool inPolygon (const std::vector< cv::Point2i > &points_list, const cv::Point2i &point)
 
bool parseParam (const std::map< std::string, std::string > &params, const std::string &key, float &value)
 
bool parseParam (const std::map< std::string, std::string > &params, const std::string &key, std::string &value)
 

Variables

int BLUES [] = { 255, 255, 255, 255, 0, 0, 0 }
 
int GREENS [] = { 255, 255, 0 , 0, 255, 255, 0 }
 
int REDS [] = { 255, 0 , 255, 0, 255, 0 , 255}
 

Enumeration Type Documentation

◆ ImageCompressionType

Enumerator
IMAGE_COMPRESSION_JPG 
IMAGE_COMPRESSION_PNG 

Definition at line 111 of file gui_plugin.cpp.

Function Documentation

◆ hash()

int hash ( const char *  str,
int  max_val 
)

Definition at line 90 of file gui_plugin.cpp.

◆ idToColor()

cv::Scalar idToColor ( const ed::UUID id)

Definition at line 103 of file gui_plugin.cpp.

◆ imageToBinary()

bool imageToBinary ( const cv::Mat &  image,
std::vector< unsigned char > &  data,
ImageCompressionType  compression_type 
)

Definition at line 117 of file gui_plugin.cpp.

◆ inPolygon()

bool inPolygon ( const std::vector< cv::Point2i > &  points_list,
const cv::Point2i &  point 
)

Definition at line 59 of file gui_plugin.cpp.

◆ parseParam() [1/2]

bool parseParam ( const std::map< std::string, std::string > &  params,
const std::string key,
float &  value 
)

Definition at line 535 of file gui_plugin.cpp.

◆ parseParam() [2/2]

bool parseParam ( const std::map< std::string, std::string > &  params,
const std::string key,
std::string value 
)

Definition at line 546 of file gui_plugin.cpp.

Variable Documentation

◆ BLUES

int BLUES[] = { 255, 255, 255, 255, 0, 0, 0 }

Definition at line 86 of file gui_plugin.cpp.

◆ GREENS

int GREENS[] = { 255, 255, 0 , 0, 255, 255, 0 }

Definition at line 85 of file gui_plugin.cpp.

◆ REDS

int REDS[] = { 255, 0 , 255, 0, 255, 0 , 255}

Definition at line 84 of file gui_plugin.cpp.