Macros | Functions | Variables
laser_data_carmen.c File Reference
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "csm_all.h"
Include dependency graph for laser_data_carmen.c:

Go to the source code of this file.

Macros

#define MAX_LINE_LENGTH   10000
 

Functions

LDP ld_from_carmen_string (const char *line)
 
int ld_read_next_laser_carmen (FILE *file, LDP *ld)
 
void ld_write_as_carmen (LDP ld, FILE *stream)
 
void ld_write_format (LDP ld, FILE *f, const char *out_format)
 
int read_next_double (const char *line, size_t *cur, double *d)
 
int read_next_integer (const char *line, size_t *cur, int *d)
 
int read_next_string (const char *line, size_t *cur, char *buf, size_t buf_len)
 

Variables

const char * carmen_prefix = "FLASER "
 

Macro Definition Documentation

#define MAX_LINE_LENGTH   10000

Function Documentation

LDP ld_from_carmen_string ( const char *  line)

Read laser data from a Carmen-formatted line

Definition at line 52 of file laser_data_carmen.c.

int ld_read_next_laser_carmen ( FILE *  file,
LDP ld 
)

Read next FLASER line in file, or NULL on error

Definition at line 170 of file laser_data_carmen.c.

void ld_write_as_carmen ( LDP  ld,
FILE *  stream 
)

Write the laser data in CARMEN format

Definition at line 193 of file laser_data_carmen.c.

void ld_write_format ( LDP  ld,
FILE *  stream,
const char *  out_format 
)

Write a scan according to out_format = {"carmen", "json"}

Definition at line 213 of file laser_data_carmen.c.

int read_next_double ( const char *  line,
size_t *  cur,
double *  d 
)

Returns 0 on success

Definition at line 20 of file laser_data_carmen.c.

int read_next_integer ( const char *  line,
size_t *  cur,
int *  d 
)

Returns 0 on success

Definition at line 32 of file laser_data_carmen.c.

int read_next_string ( const char *  line,
size_t *  cur,
char *  buf,
size_t  buf_len 
)

Always returns 0

Definition at line 43 of file laser_data_carmen.c.

Variable Documentation

const char* carmen_prefix = "FLASER "

Definition at line 7 of file laser_data_carmen.c.



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