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
ld_get_reference_pose_silent
double * ld_get_reference_pose_silent(LDP ld, ld_reference use_reference)
Definition: laser_data_drawing.c:90
bbfind_compute
int bbfind_compute(bbfind *, BB2)
Definition: laser_data_bbox.c:85
bbfind_imp
Definition: laser_data_bbox.c:22
stroke_sequence::end_stroke
int end_stroke
Definition: laser_data_drawing.h:64
bbfind_add_point
int bbfind_add_point(bbfind *, double point[2])
Definition: laser_data_bbox.c:42
oriented_bbox
Definition: laser_data_drawing.h:23
ld_get_reference_pose
double * ld_get_reference_pose(LDP ld, ld_reference use_reference)
Definition: laser_data_drawing.c:103
Invalid
@ Invalid
Definition: laser_data_drawing.h:6
stroke_sequence::p
double p[2]
Definition: laser_data_drawing.h:67
ld_reference_to_string
const char * ld_reference_to_string(ld_reference)
Definition: laser_data_drawing.c:9
lda_get_bounding_box
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)
Definition: laser_data_drawing.c:60
ld_read_some_scans_distance
int ld_read_some_scans_distance(FILE *file, LDP **array, int *num, ld_reference which, double d_xy, double d_th)
Definition: laser_data_load.c:115
compute_stroke_sequence
void compute_stroke_sequence(LDP ld, struct stroke_sequence *, double horizon, double connect_threshold)
Definition: laser_data_drawing.c:114
bbfind_add_point2
int bbfind_add_point2(bbfind *, double x, double y)
Definition: laser_data_bbox.c:46
ld_get_bounding_box
int ld_get_bounding_box(LDP ld, double bb_min[2], double bb_max[2], double pose[3], double horizon)
Definition: laser_data_drawing.c:22
oriented_bbox_compute_corners
void oriented_bbox_compute_corners(const BB2, double ul[2], double ur[2], double ll[2], double lr[2])
Definition: laser_data_bbox.c:60
stroke_sequence::valid
int valid
Definition: laser_data_drawing.h:65
stroke_sequence::begin_new_stroke
int begin_new_stroke
Definition: laser_data_drawing.h:63
True_pose
@ True_pose
Definition: laser_data_drawing.h:6
ld_get_oriented_bbox
void ld_get_oriented_bbox(LDP ld, double horizon, BB2)
ld_reference
ld_reference
Definition: laser_data_drawing.h:6
laser_data.h
Odometry
@ Odometry
Definition: laser_data_drawing.h:6
stroke_sequence
Definition: laser_data_drawing.h:62
laser_data
Definition: laser_data.h:16
BB2
oriented_bbox * BB2
Definition: laser_data_drawing.h:30
bbfind_new
bbfind * bbfind_new()
Definition: laser_data_bbox.c:34
bbfind_add_bbox
int bbfind_add_bbox(bbfind *, const BB2)
Definition: laser_data_bbox.c:74
bbfind_free
void bbfind_free(bbfind *)
Definition: laser_data_bbox.c:116
Estimate
@ Estimate
Definition: laser_data_drawing.h:6
ld_string_to_reference
ld_reference ld_string_to_reference(const char *string)
Definition: laser_data_drawing.c:13


csm
Author(s): Andrea Censi
autogenerated on Wed Aug 17 2022 02:50:33