laser_data_drawing.h
Go to the documentation of this file.
1 #ifndef H_LASER_DATA_DRAWING
2 #define H_LASER_DATA_DRAWING
3 
4 #include "laser_data.h"
5 
6 typedef enum { Invalid = 0, Odometry = 1, Estimate = 2, True_pose = 3 } ld_reference;
7 
9 ld_reference ld_string_to_reference(const char*string);
10 
13 double * ld_get_reference_pose_silent(LDP ld, ld_reference use_reference);
16 double * ld_get_reference_pose(LDP ld, ld_reference use_reference);
17 
18 
19 
20 int ld_read_some_scans_distance(FILE*file, LDP **array, int*num,
21  ld_reference which, double d_xy, double d_th);
22 
23 typedef struct {
25  double pose[3];
27  double size[2];
29 
30 typedef oriented_bbox* BB2;
31 
32 
34 int ld_get_bounding_box(LDP ld, double bb_min[2], double bb_max[2],
35  double pose[3], double horizon);
36 
37 void lda_get_bounding_box(LDP *ld, int nld, double bb_min[2], double bb_max[2],
38  double offset[3], ld_reference use_reference, double horizon);
39 
40 /*void lda_get_bb2(LDP *ld, int nld, BB2 bb2, ld_reference use_reference, double horizon);*/
41 
42 
44  double ul[2], double ur[2], double ll[2], double lr[2]);
45 
46 void ld_get_oriented_bbox(LDP ld, double horizon, BB2);
47 
48 /* Simple API for finding bounding box */
49 struct bbfind_imp;
50 typedef struct bbfind_imp bbfind;
51 bbfind * bbfind_new();
52 
53 int bbfind_add_point(bbfind*, double point[2]);
54 int bbfind_add_point2(bbfind*, double x, double y);
55 int bbfind_add_bbox(bbfind*, const BB2);
56 
58 void bbfind_free(bbfind*);
59 
60 /* For drawing stroke */
61 
65  int valid;
66 
67  double p[2];
68 };
69 
71  double horizon, double connect_threshold);
72 
73 
74 #endif
oriented_bbox * BB2
ld_reference ld_string_to_reference(const char *string)
int bbfind_add_bbox(bbfind *, const BB2)
int ld_get_bounding_box(LDP ld, double bb_min[2], double bb_max[2], double pose[3], double horizon)
ld_reference
void bbfind_free(bbfind *)
void lda_get_bounding_box(LDP *ld, int nld, double bb_min[2], double bb_max[2], double offset[3], ld_reference use_reference, double horizon)
bbfind * bbfind_new()
double * ld_get_reference_pose_silent(LDP ld, ld_reference use_reference)
void oriented_bbox_compute_corners(const BB2, double ul[2], double ur[2], double ll[2], double lr[2])
double * ld_get_reference_pose(LDP ld, ld_reference use_reference)
int bbfind_compute(bbfind *, BB2)
int bbfind_add_point2(bbfind *, double x, double y)
void compute_stroke_sequence(LDP ld, struct stroke_sequence *, double horizon, double connect_threshold)
int bbfind_add_point(bbfind *, double point[2])
int ld_read_some_scans_distance(FILE *file, LDP **array, int *num, ld_reference which, double d_xy, double d_th)
void ld_get_oriented_bbox(LDP ld, double horizon, BB2)
const char * ld_reference_to_string(ld_reference)


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