laser_data_cairo.h
Go to the documentation of this file.
1 #ifndef H_LASER_DATA_CAIRO
2 #define H_LASER_DATA_CAIRO
3 
4 #include <cairo.h>
5 #include <options/options.h>
6 #include "../csm/csm_all.h"
7 #include "../csm/laser_data_drawing.h"
8 
9 typedef struct {
10  /* should we draw it? */
11  int draw;
12 
13  double width;
14  const char* color;
15 
16 } line_style ;
17 
18 typedef struct {
19  line_style rays, countour;
21  double points_radius;
22 
25 
26  /* A circle at the pose */
28  double pose_radius;
29 
30 
33 
35  double horizon;
36 } ld_style;
37 
39 void lds_set_defaults(ld_style*lds);
40 
41 void ls_add_options(line_style*ls, struct option*ops,
42  const char*prefix, const char*desc_prefix);
43 
44 void lds_add_options(ld_style*lds, struct option*ops,
45  const char*prefix, const char*desc_prefix);
46 
47 void cr_set_color(cairo_t *cr, const char* color);
48 void cr_set_style(cairo_t*cr, line_style*);
49 void cr_ld_draw(cairo_t* cr, LDP ld, ld_style *p);
50 void cr_ld_draw_corr(cairo_t*cr, LDP laser_ref, LDP laser_sens);
51 void cr_ld_draw_sigma(cairo_t*cr, LDP ld, double multiplier);
52 void cr_set_reference(cairo_t*cr,double*pose);
53 
54 void cr_lda_draw_pose_path(cairo_t*cr, LDP*lda, int nscans, ld_reference use_reference);
55 
56 int create_pdf_surface(const char*file, int max_width_points, int max_height_points,
57  double bb_min[2], double bb_max[2], cairo_surface_t**surface_p, cairo_t **cr);
58 
59 int create_image_surface(int width, int height,
60  double bb_min[2], double bb_max[2], cairo_surface_t**surface_p, cairo_t **cr);
61 
62 
63 
64 #endif
65 
void cr_ld_draw_sigma(cairo_t *cr, LDP ld, double multiplier)
int create_image_surface(int width, int height, double bb_min[2], double bb_max[2], cairo_surface_t **surface_p, cairo_t **cr)
double horizon
line_style points
void cr_set_color(cairo_t *cr, const char *color)
void cr_set_style(cairo_t *cr, line_style *)
double pose_radius
double connect_threshold
void cr_lda_draw_pose_path(cairo_t *cr, LDP *lda, int nscans, ld_reference use_reference)
double points_radius
line_style rays
ld_reference
int create_pdf_surface(const char *file, int max_width_points, int max_height_points, double bb_min[2], double bb_max[2], cairo_surface_t **surface_p, cairo_t **cr)
const char * color
void cr_ld_draw_corr(cairo_t *cr, LDP laser_ref, LDP laser_sens)
struct option * ops
Definition: rb_sm.c:31
double sigma_multiplier
void cr_set_reference(cairo_t *cr, double *pose)
void cr_ld_draw(cairo_t *cr, LDP ld, ld_style *p)
Definition: options.h:49
line_style normals
line_style sigma
void ls_set_defaults(line_style *ls)
const char * prefix
Definition: hsm_test00.c:17
double normals_length
void lds_add_options(ld_style *lds, struct option *ops, const char *prefix, const char *desc_prefix)
void lds_set_defaults(ld_style *lds)
void ls_add_options(line_style *ls, struct option *ops, const char *prefix, const char *desc_prefix)
line_style pose


csm
Author(s): Andrea Censi
autogenerated on Tue May 11 2021 02:18:23