-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVisualizer.h
More file actions
50 lines (32 loc) · 1.11 KB
/
Copy pathVisualizer.h
File metadata and controls
50 lines (32 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#pragma once
#include <pcl/visualization/pcl_visualizer.h>
#include "SwitchControl.h"
class Visualizer {
public:
Visualizer();
void run();
void runOnce();
void setCameraPose(Eigen::Matrix4f* pose);
void setJohnPcl(pcl::PointCloud<pcl::PointXYZRGB>::Ptr johnPcl);
void setJohnFeatures(pcl::PointCloud<pcl::PointXYZRGB>::Ptr johnFeatures);
void setStevePcl(pcl::PointCloud<pcl::PointXYZRGB>::Ptr stevePcl);
void setSteveVertices(std::vector<pcl::Vertices> steveVertices);
void addSwitch(SwitchControl* newSwitch);
private:
static int c_vpLeft;
static int c_vpRight;
static int c_vpBoth;
int m_vpJohn;
int m_vpSteve;
bool m_changed;
boost::mutex m_mutex;
pcl::visualization::PCLVisualizer m_viewer;
Eigen::Matrix4f* m_pose;
pcl::PointCloud<pcl::PointXYZRGB>::Ptr m_johnPcl;
pcl::PointCloud<pcl::PointXYZRGB>::Ptr m_johnFeatures;
pcl::PointCloud<pcl::PointXYZRGB>::Ptr m_stevePcl;
std::vector<pcl::Vertices> m_steveVertices;
std::vector<SwitchControl*> m_switches;
SwitchControl* m_viewportSwitch;
void createViewports();
};