Declarations for the STREAMER node. More...
#include "time.h"
#include <signal.h>
#include "ros_resources.hpp"
#include "tools.hpp"
#include "improc.hpp"
#include "radiometric.hpp"
#include "video.hpp"
#include <dynamic_reconfigure/server.h>
#include "streamerConfig.h"
#include <termios.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/signal.h>
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <termio.h>
Go to the source code of this file.
Classes | |
struct | camData_ |
Stores some basic camera information in OpenCV format. More... | |
struct | camExtrinsicsData_ |
Stores some basic extrinsic camera information in OpenCV format. More... | |
struct | streamerData |
Stores configuration information for the camera driver / streamer. More... | |
class | streamerNode |
Manages the driver / streamer. More... | |
Defines | |
#define | _POSIX_SOURCE 1 |
#define | BAUDRATE B38400 |
#define | CALIBMODE_ALT_OUTPUT 2 |
#define | CALIBMODE_ALT_SHUTTER 1 |
#define | CALIBMODE_LONG_SHUTTER 3 |
#define | CALIBMODE_OFF 0 |
#define | DATATYPE_8BIT 0 |
#define | DATATYPE_DEPTH 3 |
#define | DATATYPE_MM 2 |
#define | DATATYPE_RAW 1 |
#define | DEFAULT_IMAGE_HEIGHT 480 |
#define | DEFAULT_IMAGE_WIDTH 640 |
#define | DEFAULT_READ_RATE 25.0 |
#define | DEFAULT_SERIAL_POLLING_RATE 0.04 |
#define | DETECTOR_MODE_INS 2 |
#define | DETECTOR_MODE_LUM 1 |
#define | DETECTOR_MODE_RAD 3 |
#define | DETECTOR_MODE_RAW 0 |
#define | DETECTOR_MODE_TMP 4 |
#define | FALSE 0 |
#define | FASTEST_READ_RATE 1000.0 |
#define | MAX_COLS 2560 |
#define | MAX_READ_RATE 100.0 |
#define | MAX_ROWS 1920 |
#define | MAX_THERMISTOR_READING 60.0 |
#define | MAX_THERMISTOR_READINGS_TO_STORE 100 |
#define | MAX_TIME_WITHOUT_FLAGS 45.0 |
#define | MAX_TIME_WITHOUT_NUC_conservative 45.0 |
#define | MAX_VALID_THERMISTOR 80.0 |
#define | MIN_THERMISTOR_READNG -20.0 |
#define | MIN_VALID_THERMISTOR -20.0 |
#define | MODEMDEVICE "/dev/ttyS0" |
#define | NO_REPUBLISH_CODE 0 |
#define | REPUBLISH_CODE_16BIT 3 |
#define | REPUBLISH_CODE_8BIT_COL 2 |
#define | REPUBLISH_CODE_8BIT_MONO 1 |
#define | SERIAL_BUFF_SIZE 1024 |
#define | SERIAL_COMMS_CONFIG_1 1 |
#define | SERIAL_COMMS_CONFIG_DEFAULT 0 |
#define | SYNCMODE_HARD 0 |
#define | SYNCMODE_IMAGEONLY 2 |
#define | SYNCMODE_SOFT 1 |
#define | TRUE 1 |
#define | USB_MODE_16 1 |
#define | USB_MODE_8 2 |
#define | UVC_STREAM_PTS (1 << 2) |
#define | UVC_STREAM_SCR (1 << 3) |
Typedefs | |
typedef dynamic_reconfigure::Server < thermalvis::streamerConfig > | Server |
Functions | |
void | displayTermiosData (termios options) |
int | getMapIndex (string mapping) |
void | getMapping (int mapIndex, bool extremes, int &mapCode, int &mapParam) |
void | mySigintHandler (int sig) |
void | set_blocking (int fd, int should_block) |
void | signal_handler_IO (int status) |
Variables | |
const char | __PROGRAM__ [] = "STREAMER" |
long | BAUD |
long | Baud_Rate = 115200 |
int | Data_Bits = 8 |
long | DATABITS |
char | devicename [80] |
int | Format = 4 |
boost::shared_ptr< streamerNode > * | globalNodePtr |
FILE * | input |
char | message [90] |
FILE * | output |
long | PARITY |
int | Parity = 0 |
long | PARITYON |
int | status |
volatile int | STOP = FALSE |
int | Stop_Bits = 1 |
long | STOPBITS |
int | wait_flag = TRUE |
bool | wantsToShutdown = false |
Declarations for the STREAMER node.
Definition in file streamer.hpp.
#define _POSIX_SOURCE 1 |
Definition at line 34 of file streamer.hpp.
#define BAUDRATE B38400 |
Definition at line 32 of file streamer.hpp.
#define CALIBMODE_ALT_OUTPUT 2 |
Definition at line 110 of file streamer.hpp.
#define CALIBMODE_ALT_SHUTTER 1 |
Definition at line 109 of file streamer.hpp.
#define CALIBMODE_LONG_SHUTTER 3 |
Definition at line 111 of file streamer.hpp.
#define CALIBMODE_OFF 0 |
Definition at line 108 of file streamer.hpp.
#define DATATYPE_8BIT 0 |
Definition at line 91 of file streamer.hpp.
#define DATATYPE_DEPTH 3 |
Definition at line 94 of file streamer.hpp.
#define DATATYPE_MM 2 |
Definition at line 93 of file streamer.hpp.
#define DATATYPE_RAW 1 |
Definition at line 92 of file streamer.hpp.
#define DEFAULT_IMAGE_HEIGHT 480 |
Definition at line 84 of file streamer.hpp.
#define DEFAULT_IMAGE_WIDTH 640 |
Definition at line 83 of file streamer.hpp.
#define DEFAULT_READ_RATE 25.0 |
Definition at line 79 of file streamer.hpp.
#define DEFAULT_SERIAL_POLLING_RATE 0.04 |
Definition at line 75 of file streamer.hpp.
#define DETECTOR_MODE_INS 2 |
Definition at line 115 of file streamer.hpp.
#define DETECTOR_MODE_LUM 1 |
Definition at line 114 of file streamer.hpp.
#define DETECTOR_MODE_RAD 3 |
Definition at line 116 of file streamer.hpp.
#define DETECTOR_MODE_RAW 0 |
Definition at line 113 of file streamer.hpp.
#define DETECTOR_MODE_TMP 4 |
Definition at line 117 of file streamer.hpp.
#define FALSE 0 |
Definition at line 35 of file streamer.hpp.
#define FASTEST_READ_RATE 1000.0 |
Definition at line 81 of file streamer.hpp.
#define MAX_COLS 2560 |
Definition at line 87 of file streamer.hpp.
#define MAX_READ_RATE 100.0 |
Definition at line 80 of file streamer.hpp.
#define MAX_ROWS 1920 |
Definition at line 86 of file streamer.hpp.
#define MAX_THERMISTOR_READING 60.0 |
Definition at line 123 of file streamer.hpp.
#define MAX_THERMISTOR_READINGS_TO_STORE 100 |
Definition at line 89 of file streamer.hpp.
#define MAX_TIME_WITHOUT_FLAGS 45.0 |
Definition at line 41 of file streamer.hpp.
#define MAX_TIME_WITHOUT_NUC_conservative 45.0 |
Definition at line 42 of file streamer.hpp.
#define MAX_VALID_THERMISTOR 80.0 |
Definition at line 39 of file streamer.hpp.
#define MIN_THERMISTOR_READNG -20.0 |
Definition at line 122 of file streamer.hpp.
#define MIN_VALID_THERMISTOR -20.0 |
Definition at line 40 of file streamer.hpp.
#define MODEMDEVICE "/dev/ttyS0" |
Definition at line 33 of file streamer.hpp.
#define NO_REPUBLISH_CODE 0 |
Definition at line 99 of file streamer.hpp.
#define REPUBLISH_CODE_16BIT 3 |
Definition at line 102 of file streamer.hpp.
#define REPUBLISH_CODE_8BIT_COL 2 |
Definition at line 101 of file streamer.hpp.
#define REPUBLISH_CODE_8BIT_MONO 1 |
Definition at line 100 of file streamer.hpp.
#define SERIAL_BUFF_SIZE 1024 |
Definition at line 37 of file streamer.hpp.
#define SERIAL_COMMS_CONFIG_1 1 |
Definition at line 126 of file streamer.hpp.
#define SERIAL_COMMS_CONFIG_DEFAULT 0 |
Definition at line 125 of file streamer.hpp.
#define SYNCMODE_HARD 0 |
Definition at line 104 of file streamer.hpp.
#define SYNCMODE_IMAGEONLY 2 |
Definition at line 106 of file streamer.hpp.
#define SYNCMODE_SOFT 1 |
Definition at line 105 of file streamer.hpp.
#define TRUE 1 |
Definition at line 36 of file streamer.hpp.
#define USB_MODE_16 1 |
Definition at line 119 of file streamer.hpp.
#define USB_MODE_8 2 |
Definition at line 120 of file streamer.hpp.
#define UVC_STREAM_PTS (1 << 2) |
Definition at line 96 of file streamer.hpp.
#define UVC_STREAM_SCR (1 << 3) |
Definition at line 97 of file streamer.hpp.
typedef dynamic_reconfigure::Server< thermalvis::streamerConfig > Server |
Definition at line 130 of file streamer.hpp.
void displayTermiosData | ( | termios | options | ) |
Definition at line 3893 of file streamer.cpp.
int getMapIndex | ( | string | mapping | ) |
Definition at line 3795 of file streamer.cpp.
void getMapping | ( | int | mapIndex, |
bool | extremes, | ||
int & | mapCode, | ||
int & | mapParam | ||
) |
Definition at line 3271 of file streamer.cpp.
void mySigintHandler | ( | int | sig | ) |
Definition at line 350 of file calibrator.cpp.
void set_blocking | ( | int | fd, |
int | should_block | ||
) |
Definition at line 3844 of file streamer.cpp.
void signal_handler_IO | ( | int | status | ) |
const char __PROGRAM__[] = "STREAMER" |
Definition at line 128 of file streamer.hpp.
long BAUD |
Definition at line 50 of file streamer.hpp.
long Baud_Rate = 115200 |
Definition at line 49 of file streamer.hpp.
int Data_Bits = 8 |
Definition at line 55 of file streamer.hpp.
long DATABITS |
Definition at line 51 of file streamer.hpp.
char devicename[80] |
Definition at line 48 of file streamer.hpp.
int Format = 4 |
Definition at line 59 of file streamer.hpp.
boost::shared_ptr< streamerNode >* globalNodePtr |
Definition at line 532 of file streamer.hpp.
FILE* input |
Definition at line 60 of file streamer.hpp.
char message[90] |
Definition at line 64 of file streamer.hpp.
FILE* output |
Definition at line 61 of file streamer.hpp.
long PARITY |
Definition at line 54 of file streamer.hpp.
int Parity = 0 |
Definition at line 57 of file streamer.hpp.
long PARITYON |
Definition at line 53 of file streamer.hpp.
int status |
Definition at line 62 of file streamer.hpp.
Definition at line 44 of file streamer.hpp.
int Stop_Bits = 1 |
Definition at line 56 of file streamer.hpp.
long STOPBITS |
Definition at line 52 of file streamer.hpp.
Definition at line 47 of file streamer.hpp.
bool wantsToShutdown = false |
Definition at line 132 of file streamer.hpp.