Functions | Variables
laser_data_load.c File Reference
#include <ctype.h>
#include "csm_all.h"
#include "laser_data_drawing.h"
Include dependency graph for laser_data_load.c:

Go to the source code of this file.

Functions

int always (LDP ld)
int distance_accept (LDP ld)
void distance_accept_reset (ld_reference, double interval_xy, double interval_th)
int interval_accept (LDP ld)
int ld_read_all (FILE *file, LDP **array, int *num)
LDP ld_read_smart (FILE *f)
LDP ld_read_smart_string (const char *line)
int ld_read_some (FILE *file, LDP **array, int *num, int(*accept)(LDP))
int ld_read_some_scans (FILE *file, LDP **array, int *num, int interval)
int ld_read_some_scans_distance (FILE *file, LDP **array, int *num, ld_reference which, double d_xy, double d_th)

Variables

static int distance_count
static double distance_interval_th = 10
static double distance_interval_xy = 10
static double distance_last_pose [3]
static ld_reference distance_reference
int interval_count = 0
int interval_interval = 10

Function Documentation

int always ( LDP  ld)

Definition at line 78 of file laser_data_load.c.

int distance_accept ( LDP  ld)

Definition at line 90 of file laser_data_load.c.

void distance_accept_reset ( ld_reference  which,
double  interval_xy,
double  interval_th 
)

Definition at line 83 of file laser_data_load.c.

int interval_accept ( LDP  ld)

Definition at line 64 of file laser_data_load.c.

int ld_read_all ( FILE *  file,
LDP **  array,
int *  num 
)

Reads all the scans it can find.

Definition at line 79 of file laser_data_load.c.

LDP ld_read_smart ( FILE *  f)

Tries to read a laser scan from file. If error or EOF, it returns 0. Whitespace is skipped. If first valid char is '{', it tries to read it as JSON. If next char is 'F' (first character of "FLASER"), it tries to read in Carmen format. Other lines are discarded. 0 is returned on error or feof

Definition at line 130 of file laser_data_load.c.

LDP ld_read_smart_string ( const char *  )

Tries to read a laser scan from a string.

Definition at line 173 of file laser_data_load.c.

int ld_read_some ( FILE *  file,
LDP **  array,
int *  num,
int(*)(LDP accept 
)

Loads *some* data based on an acceptance criterion.

Definition at line 30 of file laser_data_load.c.

int ld_read_some_scans ( FILE *  file,
LDP **  array,
int *  num,
int  interval 
)

Read a scan every interval (1=all)

Definition at line 71 of file laser_data_load.c.

int ld_read_some_scans_distance ( FILE *  file,
LDP **  array,
int *  num,
ld_reference  which,
double  d_xy,
double  d_th 
)

Definition at line 115 of file laser_data_load.c.


Variable Documentation

int distance_count [static]

Definition at line 19 of file laser_data_load.c.

double distance_interval_th = 10 [static]

Definition at line 22 of file laser_data_load.c.

double distance_interval_xy = 10 [static]

Definition at line 21 of file laser_data_load.c.

double distance_last_pose[3] [static]

Definition at line 20 of file laser_data_load.c.

Definition at line 23 of file laser_data_load.c.

int interval_count = 0

Definition at line 11 of file laser_data_load.c.

Definition at line 12 of file laser_data_load.c.



csm
Author(s): Andrea Censi
autogenerated on Fri May 17 2019 02:28:33