direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
laser.h File Reference
#include "direcsSerial.h"
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/select.h>
#include <sys/signal.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <linux/serial.h>
#include <linux/version.h>
#include <QtGlobal>
#include <QString>
#include <QDebug>
Include dependency graph for laser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Laser::direcs_laser_laser_config_t
struct  Laser::direcs_param_t
class  Laser
 This class handles all the low level laser stuff for the old laser scanners. More...
struct  Laser::laser_device_t
struct  Laser::laser_settings_t
struct  Laser::sick_laser_t

Macros

#define ACK   0x06
#define BUFFER_SIZE   16000
#define CBREAK   64
#define CRC16_GEN_POL   0x8005
#define CRC16_GEN_POL0   0x80
#define CRC16_GEN_POL1   0x05
#define DIRECS_FRONT_LASER_NUM   0
#define DIRECS_LASER3_NUM   2
#define DIRECS_LASER4_NUM   3
#define DIRECS_LASER5_NUM   4
#define DIRECS_LASER_ALIVE_FMT   "{int,int,int,int,int}"
#define DIRECS_LASER_ALIVE_NAME   "direcs_laser_alive"
#define DIRECS_LASER_FRONTLASER_FMT   DIRECS_LASER_LASER_FMT
#define DIRECS_LASER_FRONTLASER_NAME   "direcs_laser_frontlaser"
#define DIRECS_LASER_LASER1_FMT   DIRECS_LASER_FRONTLASER_FMT
#define DIRECS_LASER_LASER1_NAME   DIRECS_LASER_FRONTLASER_NAME
 Note that laser1 is the same as frontlaser.
#define DIRECS_LASER_LASER2_FMT   DIRECS_LASER_REARLASER_FMT
#define DIRECS_LASER_LASER2_NAME   DIRECS_LASER_REARLASER_NAME
 Note that laser2 is the same as reartlaser.
#define DIRECS_LASER_LASER3_FMT   DIRECS_LASER_LASER_FMT
#define DIRECS_LASER_LASER3_NAME   "direcs_laser_laser3"
#define DIRECS_LASER_LASER4_FMT   DIRECS_LASER_LASER_FMT
#define DIRECS_LASER_LASER4_NAME   "direcs_laser_laser4"
#define DIRECS_LASER_LASER5_FMT   DIRECS_LASER_LASER_FMT
#define DIRECS_LASER_LASER5_NAME   "direcs_laser_laser5"
#define DIRECS_LASER_LASER_FMT   "{int,{int,double,double,double,double,double,int},int,<float:3>,int,<float:5>,double,string}"
 all raw laser messages have the same format
#define DIRECS_LASER_LOW_LATENCY   1
#define DIRECS_LASER_REARLASER_FMT   DIRECS_LASER_LASER_FMT
#define DIRECS_LASER_REARLASER_NAME   "direcs_laser_rearlaser"
#define DIRECS_LASER_USE_SELECT   1
#define DIRECS_REAR_LASER_NUM   1
#define DLE   0x10
#define FALSE   0
#define INI   -1
#define LASER_BUFFER_SIZE   100000
#define LID   0x80
#define LMS_PASSWORD   "SICK_LMS"
#define M_PI   3.14159265358979323846
#define MAX_COMMAND_SIZE   8196
#define MAX_NAME_LENGTH   256
#define MAX_TIME_FOR_ACK   0.1
#define MAX_TIME_FOR_ANSWER   0.1
#define MAX_TIME_FOR_CLEAR   0.2
#define MAX_TIME_FOR_CONFIG   3.0
#define MAX_TIME_FOR_DATA   0.3
#define MAX_TIME_FOR_GETTING_CONF   0.3
#define MAX_TIME_FOR_SENSOR_DATA   0.5
#define MAX_TIME_FOR_TESTING_BAUDRATE   1.0
#define MAXDOUBLE   DBL_MAX
#define MAXFLOAT   FLT_MAX
#define NAK   0x15
#define PLS_PASSWORD   "SICK_PLS"
#define RAW   1
#define RES_0_25_DEGREE   2
#define RES_0_50_DEGREE   1
#define RES_1_00_DEGREE   0
#define STX   0x02
#define TIO   0
#define TIOCGETP   0x5481
#define TIOCSETP   0x5482
#define TRUE   1
#define UKN   0x05
#define va_copy   __va_copy

Macro Definition Documentation

#define ACK   0x06

Definition at line 161 of file laser.h.

#define BUFFER_SIZE   16000

Definition at line 143 of file laser.h.

#define CBREAK   64

Definition at line 174 of file laser.h.

#define CRC16_GEN_POL   0x8005

Definition at line 136 of file laser.h.

#define CRC16_GEN_POL0   0x80

Definition at line 137 of file laser.h.

#define CRC16_GEN_POL1   0x05

Definition at line 138 of file laser.h.

#define DIRECS_FRONT_LASER_NUM   0

Definition at line 78 of file laser.h.

#define DIRECS_LASER3_NUM   2

Definition at line 80 of file laser.h.

#define DIRECS_LASER4_NUM   3

Definition at line 81 of file laser.h.

#define DIRECS_LASER5_NUM   4

Definition at line 82 of file laser.h.

#define DIRECS_LASER_ALIVE_FMT   "{int,int,int,int,int}"

Definition at line 118 of file laser.h.

#define DIRECS_LASER_ALIVE_NAME   "direcs_laser_alive"

Definition at line 117 of file laser.h.

#define DIRECS_LASER_FRONTLASER_FMT   DIRECS_LASER_LASER_FMT

Definition at line 95 of file laser.h.

#define DIRECS_LASER_FRONTLASER_NAME   "direcs_laser_frontlaser"

Definition at line 94 of file laser.h.

#define DIRECS_LASER_LASER1_FMT   DIRECS_LASER_FRONTLASER_FMT

Definition at line 99 of file laser.h.

#define DIRECS_LASER_LASER1_NAME   DIRECS_LASER_FRONTLASER_NAME

Note that laser1 is the same as frontlaser.

Definition at line 98 of file laser.h.

#define DIRECS_LASER_LASER2_FMT   DIRECS_LASER_REARLASER_FMT

Definition at line 106 of file laser.h.

#define DIRECS_LASER_LASER2_NAME   DIRECS_LASER_REARLASER_NAME

Note that laser2 is the same as reartlaser.

Definition at line 105 of file laser.h.

#define DIRECS_LASER_LASER3_FMT   DIRECS_LASER_LASER_FMT

Definition at line 109 of file laser.h.

#define DIRECS_LASER_LASER3_NAME   "direcs_laser_laser3"

Definition at line 108 of file laser.h.

#define DIRECS_LASER_LASER4_FMT   DIRECS_LASER_LASER_FMT

Definition at line 112 of file laser.h.

#define DIRECS_LASER_LASER4_NAME   "direcs_laser_laser4"

Definition at line 111 of file laser.h.

#define DIRECS_LASER_LASER5_FMT   DIRECS_LASER_LASER_FMT

Definition at line 115 of file laser.h.

#define DIRECS_LASER_LASER5_NAME   "direcs_laser_laser5"

Definition at line 114 of file laser.h.

#define DIRECS_LASER_LASER_FMT   "{int,{int,double,double,double,double,double,int},int,<float:3>,int,<float:5>,double,string}"

all raw laser messages have the same format

Definition of the messages for the module laser.

This file specifies the messages for this modules used to transmit data via ipc to other modules.

Definition at line 92 of file laser.h.

#define DIRECS_LASER_LOW_LATENCY   1

Definition at line 132 of file laser.h.

#define DIRECS_LASER_REARLASER_FMT   DIRECS_LASER_LASER_FMT

Definition at line 102 of file laser.h.

#define DIRECS_LASER_REARLASER_NAME   "direcs_laser_rearlaser"

Definition at line 101 of file laser.h.

#define DIRECS_LASER_USE_SELECT   1

Definition at line 131 of file laser.h.

#define DIRECS_REAR_LASER_NUM   1

Definition at line 79 of file laser.h.

#define DLE   0x10

Definition at line 162 of file laser.h.

#define FALSE   0

Definition at line 124 of file laser.h.

#define INI   -1

Definition at line 157 of file laser.h.

#define LASER_BUFFER_SIZE   100000

Definition at line 134 of file laser.h.

#define LID   0x80

Definition at line 164 of file laser.h.

#define LMS_PASSWORD   "SICK_LMS"

Definition at line 140 of file laser.h.

#define M_PI   3.14159265358979323846

Definition at line 128 of file laser.h.

#define MAX_COMMAND_SIZE   8196

Definition at line 144 of file laser.h.

#define MAX_NAME_LENGTH   256

Definition at line 146 of file laser.h.

#define MAX_TIME_FOR_ACK   0.1

Definition at line 150 of file laser.h.

#define MAX_TIME_FOR_ANSWER   0.1

Definition at line 151 of file laser.h.

#define MAX_TIME_FOR_CLEAR   0.2

Definition at line 148 of file laser.h.

#define MAX_TIME_FOR_CONFIG   3.0

Definition at line 153 of file laser.h.

#define MAX_TIME_FOR_DATA   0.3

Definition at line 149 of file laser.h.

#define MAX_TIME_FOR_GETTING_CONF   0.3

Definition at line 154 of file laser.h.

#define MAX_TIME_FOR_SENSOR_DATA   0.5

Definition at line 152 of file laser.h.

#define MAX_TIME_FOR_TESTING_BAUDRATE   1.0

Definition at line 155 of file laser.h.

#define MAXDOUBLE   DBL_MAX

Definition at line 72 of file laser.h.

#define MAXFLOAT   FLT_MAX

Definition at line 75 of file laser.h.

#define NAK   0x15

Definition at line 163 of file laser.h.

#define PLS_PASSWORD   "SICK_PLS"

Definition at line 141 of file laser.h.

#define RAW   1

Definition at line 173 of file laser.h.

#define RES_0_25_DEGREE   2

Definition at line 168 of file laser.h.

#define RES_0_50_DEGREE   1

Definition at line 167 of file laser.h.

#define RES_1_00_DEGREE   0

Definition at line 166 of file laser.h.

#define STX   0x02

Definition at line 159 of file laser.h.

#define TIO   0

Definition at line 158 of file laser.h.

#define TIOCGETP   0x5481

Definition at line 171 of file laser.h.

#define TIOCSETP   0x5482

Definition at line 172 of file laser.h.

#define TRUE   1

Definition at line 121 of file laser.h.

#define UKN   0x05

Definition at line 160 of file laser.h.

#define va_copy   __va_copy

Definition at line 59 of file laser.h.