Classes | Macros | Functions | Variables
msgpack_parser.cpp File Reference
#include <ctime>
#include <fstream>
#include <msgpack11.hpp>
#include "sick_scan/softwarePLL.h"
#include "sick_scansegment_xd/config.h"
#include "sick_scansegment_xd/msgpack_parser.h"
Include dependency graph for msgpack_parser.cpp:

Go to the source code of this file.

Classes

class  MsgPackElement
 
class  MsgPackKeyValues
 
class  MsgPackToFloat32VectorConverter
 

Macros

#define MsgpackKeyToInt_Availability   0x93
 
#define MsgpackKeyToInt_BeamCount   0x77
 
#define MsgpackKeyToInt_ChannelPhi   0x51
 
#define MsgpackKeyToInt_ChannelTheta   0x50
 
#define MsgpackKeyToInt_class   0x10
 
#define MsgpackKeyToInt_data   0x11
 
#define MsgpackKeyToInt_DistValues   0x52
 
#define MsgpackKeyToInt_EchoCount   0x78
 
#define MsgpackKeyToInt_elemSz   0x13
 
#define MsgpackKeyToInt_elemTypes   0x15
 
#define MsgpackKeyToInt_endian   0x14
 
#define MsgpackKeyToInt_float32   0x31
 
#define MsgpackKeyToInt_FrameNumber   0x92
 
#define MsgpackKeyToInt_LayerId   0xA0
 
#define MsgpackKeyToInt_little   0x30
 
#define MsgpackKeyToInt_MaxValue   0xB2
 
#define MsgpackKeyToInt_ModuleId   0x76
 
#define MsgpackKeyToInt_numOfElems   0x12
 
#define MsgpackKeyToInt_PropertiesValues   0x54
 
#define MsgpackKeyToInt_RssiValues   0x53
 
#define MsgpackKeyToInt_Scan   0x70
 
#define MsgpackKeyToInt_ScanNumber   0x75
 
#define MsgpackKeyToInt_ScanSegment   0x90
 
#define MsgpackKeyToInt_SegmentCounter   0x91
 
#define MsgpackKeyToInt_SegmentData   0x96
 
#define MsgpackKeyToInt_SegmentSize   0x95
 
#define MsgpackKeyToInt_SenderId   0x94
 
#define MsgpackKeyToInt_TelegramCounter   0xB0
 
#define MsgpackKeyToInt_ThetaStart   0x73
 
#define MsgpackKeyToInt_ThetaStop   0x74
 
#define MsgpackKeyToInt_TimestampStart   0x71
 
#define MsgpackKeyToInt_TimestampStop   0x72
 
#define MsgpackKeyToInt_TimestampTransmit   0xB1
 
#define MsgpackKeyToInt_uint16   0x34
 
#define MsgpackKeyToInt_uint32   0x32
 
#define MsgpackKeyToInt_uint8   0x33
 

Functions

static float normalizeAngle (float angle_rad)
 
static std::string printMsgPack (const msgpack11::MsgPack &msg)
 

Variables

static MsgPackKeyValues s_msgpack_keys
 

Macro Definition Documentation

◆ MsgpackKeyToInt_Availability

#define MsgpackKeyToInt_Availability   0x93

Definition at line 175 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_BeamCount

#define MsgpackKeyToInt_BeamCount   0x77

Definition at line 170 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_ChannelPhi

#define MsgpackKeyToInt_ChannelPhi   0x51

Definition at line 159 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_ChannelTheta

#define MsgpackKeyToInt_ChannelTheta   0x50

Definition at line 158 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_class

#define MsgpackKeyToInt_class   0x10

Definition at line 147 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_data

#define MsgpackKeyToInt_data   0x11

Definition at line 148 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_DistValues

#define MsgpackKeyToInt_DistValues   0x52

Definition at line 160 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_EchoCount

#define MsgpackKeyToInt_EchoCount   0x78

Definition at line 171 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_elemSz

#define MsgpackKeyToInt_elemSz   0x13

Definition at line 150 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_elemTypes

#define MsgpackKeyToInt_elemTypes   0x15

Definition at line 152 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_endian

#define MsgpackKeyToInt_endian   0x14

Definition at line 151 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_float32

#define MsgpackKeyToInt_float32   0x31

Definition at line 154 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_FrameNumber

#define MsgpackKeyToInt_FrameNumber   0x92

Definition at line 174 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_LayerId

#define MsgpackKeyToInt_LayerId   0xA0

Definition at line 179 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_little

#define MsgpackKeyToInt_little   0x30

Definition at line 153 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_MaxValue

#define MsgpackKeyToInt_MaxValue   0xB2

Definition at line 182 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_ModuleId

#define MsgpackKeyToInt_ModuleId   0x76

Definition at line 169 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_numOfElems

#define MsgpackKeyToInt_numOfElems   0x12

Definition at line 149 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_PropertiesValues

#define MsgpackKeyToInt_PropertiesValues   0x54

Definition at line 162 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_RssiValues

#define MsgpackKeyToInt_RssiValues   0x53

Definition at line 161 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_Scan

#define MsgpackKeyToInt_Scan   0x70

Definition at line 163 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_ScanNumber

#define MsgpackKeyToInt_ScanNumber   0x75

Definition at line 168 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_ScanSegment

#define MsgpackKeyToInt_ScanSegment   0x90

Definition at line 172 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_SegmentCounter

#define MsgpackKeyToInt_SegmentCounter   0x91

Definition at line 173 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_SegmentData

#define MsgpackKeyToInt_SegmentData   0x96

Definition at line 178 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_SegmentSize

#define MsgpackKeyToInt_SegmentSize   0x95

Definition at line 177 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_SenderId

#define MsgpackKeyToInt_SenderId   0x94

Definition at line 176 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_TelegramCounter

#define MsgpackKeyToInt_TelegramCounter   0xB0

Definition at line 180 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_ThetaStart

#define MsgpackKeyToInt_ThetaStart   0x73

Definition at line 166 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_ThetaStop

#define MsgpackKeyToInt_ThetaStop   0x74

Definition at line 167 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_TimestampStart

#define MsgpackKeyToInt_TimestampStart   0x71

Definition at line 164 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_TimestampStop

#define MsgpackKeyToInt_TimestampStop   0x72

Definition at line 165 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_TimestampTransmit

#define MsgpackKeyToInt_TimestampTransmit   0xB1

Definition at line 181 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_uint16

#define MsgpackKeyToInt_uint16   0x34

Definition at line 157 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_uint32

#define MsgpackKeyToInt_uint32   0x32

Definition at line 155 of file msgpack_parser.cpp.

◆ MsgpackKeyToInt_uint8

#define MsgpackKeyToInt_uint8   0x33

Definition at line 156 of file msgpack_parser.cpp.

Function Documentation

◆ normalizeAngle()

static float normalizeAngle ( float  angle_rad)
static

normalizes an angle to [ -PI , +PI ]

Definition at line 86 of file msgpack_parser.cpp.

◆ printMsgPack()

static std::string printMsgPack ( const msgpack11::MsgPack msg)
static

Definition at line 246 of file msgpack_parser.cpp.

Variable Documentation

◆ s_msgpack_keys

MsgPackKeyValues s_msgpack_keys
static

Definition at line 198 of file msgpack_parser.cpp.



sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:13