ed_sensor_integration
Classes | Functions | Variables
fitter_gui.cpp File Reference
#include "ed_sensor_integration/FitModel.h"
#include "ed_sensor_integration/GetModels.h"
#include "ed_sensor_integration/GetSnapshots.h"
#include <ros/init.h>
#include <ros/node_handle.h>
#include <ros/service_client.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "ed_sensor_integration/GUIAction.h"
Include dependency graph for fitter_gui.cpp:

Go to the source code of this file.

Classes

struct  Model
 
struct  View
 

Functions

void cbGUIAction (const ed_sensor_integration::GUIAction::ConstPtr &msg)
 
void DrawAction ()
 
void DrawModels (cv::Mat &img, unsigned int i_start)
 
void DrawSnapshot (cv::Mat &img)
 
int main (int argc, char **argv)
 
void mouseCallback (int event, int x, int y, int flags, void *ptr)
 

Variables

double BORDER_SIZE = 10
 
double BUTTON_SIZE = 30
 
ros::ServiceClient cl_fit_model_
 
std::string current_image_id_
 
ed_sensor_integration::GUIAction::ConstPtr gui_action_
 
int i_model_selected = -1
 
unsigned int i_model_start = 0
 
double MODEL_SIZE = 180
 
View model_view
 
std::vector< Modelmodels_
 
bool models_requested_ = false
 
unsigned int revision_ = 0
 
View snapshot_view
 
std::map< std::string, cv::Mat > snapshots_
 

Function Documentation

◆ cbGUIAction()

void cbGUIAction ( const ed_sensor_integration::GUIAction::ConstPtr &  msg)

Definition at line 186 of file fitter_gui.cpp.

◆ DrawAction()

void DrawAction ( )

Definition at line 179 of file fitter_gui.cpp.

◆ DrawModels()

void DrawModels ( cv::Mat &  img,
unsigned int  i_start 
)

Definition at line 116 of file fitter_gui.cpp.

◆ DrawSnapshot()

void DrawSnapshot ( cv::Mat &  img)

Definition at line 156 of file fitter_gui.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 206 of file fitter_gui.cpp.

◆ mouseCallback()

void mouseCallback ( int  event,
int  x,
int  y,
int  flags,
void *  ptr 
)

Definition at line 62 of file fitter_gui.cpp.

Variable Documentation

◆ BORDER_SIZE

double BORDER_SIZE = 10

Definition at line 18 of file fitter_gui.cpp.

◆ BUTTON_SIZE

double BUTTON_SIZE = 30

Definition at line 16 of file fitter_gui.cpp.

◆ cl_fit_model_

ros::ServiceClient cl_fit_model_

Definition at line 43 of file fitter_gui.cpp.

◆ current_image_id_

std::string current_image_id_

Definition at line 44 of file fitter_gui.cpp.

◆ gui_action_

ed_sensor_integration::GUIAction::ConstPtr gui_action_

Definition at line 56 of file fitter_gui.cpp.

◆ i_model_selected

int i_model_selected = -1

Definition at line 50 of file fitter_gui.cpp.

◆ i_model_start

unsigned int i_model_start = 0

Definition at line 49 of file fitter_gui.cpp.

◆ MODEL_SIZE

double MODEL_SIZE = 180

Definition at line 17 of file fitter_gui.cpp.

◆ model_view

View model_view

Definition at line 53 of file fitter_gui.cpp.

◆ models_

std::vector<Model> models_

Definition at line 48 of file fitter_gui.cpp.

◆ models_requested_

bool models_requested_ = false

Definition at line 47 of file fitter_gui.cpp.

◆ revision_

unsigned int revision_ = 0

Definition at line 41 of file fitter_gui.cpp.

◆ snapshot_view

View snapshot_view

Definition at line 52 of file fitter_gui.cpp.

◆ snapshots_

std::map<std::string, cv::Mat> snapshots_

Definition at line 42 of file fitter_gui.cpp.