#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>
Go to the source code of this file.
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 BUFFER_SIZE 16000 |
#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_NAME "direcs_laser_frontlaser" |
Note that laser1 is the same as frontlaser.
Definition at line 98 of file laser.h.
Note that laser2 is the same as reartlaser.
Definition at line 105 of file laser.h.
#define DIRECS_LASER_LASER3_NAME "direcs_laser_laser3" |
#define DIRECS_LASER_LASER4_NAME "direcs_laser_laser4" |
#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
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 |
#define DIRECS_LASER_REARLASER_NAME "direcs_laser_rearlaser" |
#define DIRECS_LASER_USE_SELECT 1 |
#define DIRECS_REAR_LASER_NUM 1 |
#define LASER_BUFFER_SIZE 100000 |
#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 PLS_PASSWORD "SICK_PLS" |
#define RES_0_25_DEGREE 2 |
#define RES_0_50_DEGREE 1 |
#define RES_1_00_DEGREE 0 |
#define va_copy __va_copy |