32 #include <android/log.h> 37 #include <pcl/point_cloud.h> 38 #include <pcl/point_types.h> 39 #include <pcl/Vertices.h> 40 #include <pcl/pcl_base.h> 82 1.0
f, 0.0
f, 0.0
f, 0.0
f,
83 0.0
f, 0.0
f, 1.0
f, 0.0
f,
84 0.0
f, -1.0
f, 0.0
f, 0.0
f);
87 0.0
f, 1.0
f, 0.0
f, 0.0
f,
88 -1.0
f, 0.0
f, 0.0
f, 0.0
f,
89 0.0
f, 0.0
f, 1.0
f, 0.0
f);
92 0.0
f, -1.0
f, 0.0
f, 0.0
f,
93 0.0
f, 0.0
f, 1.0
f, 0.0
f,
94 -1.0
f, 0.0
f, 0.0
f, 0.0
f);
97 0.0
f, -1.0
f, 0.0
f, 0.0
f,
98 0.0
f, 0.0
f, 1.0
f, 0.0
f,
99 -1.0
f, 0.0
f, 0.0
f, 0.0
f);
102 0.0
f, 0.0
f, -1.0
f, 0.0
f,
103 -1.0
f, 0.0
f, 0.0
f, 0.0
f,
104 0.0
f, 1.0
f, 0.0
f, 0.0
f);
110 mat[0][0] = transform(0,0);
111 mat[1][0] = transform(0,1);
112 mat[2][0] = transform(0,2);
113 mat[0][1] = transform(1,0);
114 mat[1][1] = transform(1,1);
115 mat[2][1] = transform(1,2);
116 mat[0][2] = transform(2,0);
117 mat[1][2] = transform(2,1);
118 mat[2][2] = transform(2,2);
120 mat[3][0] = transform(0,3);
121 mat[3][1] = transform(1,3);
122 mat[3][2] = transform(2,3);
130 transform(0,0) = mat[0][0];
131 transform(0,1) = mat[1][0];
132 transform(0,2) = mat[2][0];
133 transform(1,0) = mat[0][1];
134 transform(1,1) = mat[1][1];
135 transform(1,2) = mat[2][1];
136 transform(2,0) = mat[0][2];
137 transform(2,1) = mat[1][2];
138 transform(2,2) = mat[2][2];
140 transform(0,3) = mat[3][0];
141 transform(1,3) = mat[3][1];
142 transform(2,3) = mat[3][2];
151 cloud(new
pcl::PointCloud<
pcl::PointXYZRGB>),
152 normals(new
pcl::PointCloud<
pcl::Normal>),
153 indices(new
std::vector<int>),
156 gains[0] = gains[1] = gains[2] = 1.0f;
159 pcl::PointCloud<pcl::PointXYZRGB>::Ptr
cloud;
168 #if PCL_VERSION_COMPARE(>=, 1, 8, 0) 169 std::vector<Eigen::Vector2f, Eigen::aligned_allocator<Eigen::Vector2f> > texCoords;
static void setPrintThreadId(bool printThreadId)
static const rtabmap::Transform rtabmap_world_T_tango_world(0.0f, 1.0f, 0.0f, 0.0f,-1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f)
pcl::PointCloud< pcl::Normal >::Ptr normals
std::vector< pcl::Vertices > polygons
glm::mat4 glmFromTransform(const rtabmap::Transform &transform)
pcl::PointCloud< pcl::PointXYZRGB >::Ptr cloud
static void setLevel(ULogger::Level level)
std::vector< pcl::Vertices > polygonsLowRes
virtual std::string getClassName() const =0
static void setEventLevel(ULogger::Level eventSentLevel)
static const rtabmap::Transform opengl_world_T_rtabmap_world(0.0f,-1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f,-1.0f, 0.0f, 0.0f, 0.0f)
static const rtabmap::Transform rtabmap_device_T_opengl_device(0.0f, 0.0f,-1.0f, 0.0f,-1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)
static const rtabmap::Transform opengl_world_T_tango_world(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f,-1.0f, 0.0f, 0.0f)
void registerToEventsManager()
ULogger class and convenient macros.
virtual bool handleEvent(UEvent *event)
static const rtabmap::Transform tango_device_T_rtabmap_device(0.0f,-1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f,-1.0f, 0.0f, 0.0f, 0.0f)
rtabmap::Transform glmToTransform(const glm::mat4 &mat)
const std::string & getMsg() const
std::vector< Eigen::Vector2f > texCoords
rtabmap::CameraModel cameraModel