rec::robotino::api2 C interface
LaserRangeFinder.h
Go to the documentation of this file.
1 // Copyright (C) 2004-2008, Robotics Equipment Corporation GmbH
2 
3 #ifndef _REC_ROBOTINO_API2_C_LASERRANGEFINDER_H_
4 #define _REC_ROBOTINO_API2_C_LASERRANGEFINDER_H_
5 
6 #include "rec/robotino/api2/c/globals.h"
8 
17 typedef int LaserRangeFinderId;
18 
20 #define INVALID_LASERRANGEFINDERID -1
21 
27 
33 DLLEXPORT BOOL LaserRangeFinder_destroy( LaserRangeFinderId id );
34 
39 DLLEXPORT BOOL LaserRangeFinder_setComId( LaserRangeFinderId id, ComId comId );
40 
46 DLLEXPORT BOOL LaserRangeFinder_grab( LaserRangeFinderId id );
47 
55 DLLEXPORT BOOL LaserRangeFinder_numMeasurements( LaserRangeFinderId id, unsigned int* numRangeMeasurements, unsigned int* numIntensityMeasurements );
56 
83 DLLEXPORT BOOL LaserRangeFinder_getReadings(
85  unsigned int* seq,
86  unsigned int* stamp,
87  float* angle_min,
88  float* angle_max,
89  float* angle_increment,
90  float* time_increment,
91  float* scan_time,
92  float* range_min,
93  float* range_max,
94  float* ranges,
95  unsigned int* numRanges,
96  float* intensities,
97  unsigned int* numIntensities
98  );
99 
100 #endif //_REC_ROBOTINO_API2_C_LASERRANGEFINDER_H_
DLLEXPORT BOOL LaserRangeFinder_numMeasurements(LaserRangeFinderId id, unsigned int *numRangeMeasurements, unsigned int *numIntensityMeasurements)
DLLEXPORT BOOL LaserRangeFinder_grab(LaserRangeFinderId id)
int LaserRangeFinderId
Definition: LaserRangeFinder.h:17
In "rec/robotino/api2/c/Com.h" you can find functions for manipulating the communication interface to...
DLLEXPORT LaserRangeFinderId LaserRangeFinder_construct()
DLLEXPORT BOOL LaserRangeFinder_destroy(LaserRangeFinderId id)
DLLEXPORT BOOL LaserRangeFinder_setComId(LaserRangeFinderId id, ComId comId)
DLLEXPORT BOOL LaserRangeFinder_getReadings(LaserRangeFinderId id, unsigned int *seq, unsigned int *stamp, float *angle_min, float *angle_max, float *angle_increment, float *time_increment, float *scan_time, float *range_min, float *range_max, float *ranges, unsigned int *numRanges, float *intensities, unsigned int *numIntensities)
int ComId
Definition: Com.h:50