aboutsummaryrefslogtreecommitdiff
path: root/tools/lighthousefind_tori/visualization.h
blob: da69ed21f643f597bb4de45f40aa91497192a6ce (plain)
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

#ifndef __VISUALIZATION_H
#define __VISUALIZATION_H

#include <stdio.h>
#include "tori_includes.h"

extern int pointsWritten;

void writePoint(FILE *file, double x, double y, double z, unsigned int rgb);

void updateHeader(FILE * file);

void writeAxes(FILE * file);

void drawLineBetweenPoints(FILE *file, Point a, Point b, unsigned int color);

void writePcdHeader(FILE * file);

void writePointCloud(FILE *f, Point *pointCloud, unsigned int Color);

void markPointWithStar(FILE *file, Point point, unsigned int color);

#define MAX_COLORS 18
static unsigned int COLORS[] = {
	0x00FFFF,
	0xFF00FF,
	0xFFFF00,
	0xFF0000,
	0x00FF00,
	0x0000FF,
	0x0080FF,
	0x8000FF,
	0x80FF00,
	0x00FF80,
	0xFF0080,
	0xFF8000,
	0x008080,
	0x800080,
	0x808000,
	0x000080,
	0x008000,
	0x800000
};
#endif