Go to the documentation of this file.
5 #ifndef SICK_SCAN_SICK_SCAN_COMMON_NW_H
6 #define SICK_SCAN_SICK_SCAN_COMMON_NW_H
47 bool init(std::string ipAddress,
48 unsigned short portNumber,
214 #endif //SICK_SCAN_SICK_SCAN_COMMON_NW_H
BYTE * getPayLoad()
contains 's' + command string(2 byte) + content(payload length - 3)
SopasProtocol getProtocolType() const
bool connect()
Connects to a sensor via tcp and reads the device name.
@ CoLa_Unknown
Unknown Command Language.
Mutex m_receiveDataMutex
Access mutex for buffer.
UINT32 m_numberOfBytesInReceiveBuffer
Number of bytes in buffer.
void readCallbackFunction(UINT8 *buffer, UINT32 &numOfBytes)
UINT32 m_numberOfBytesInResponseBuffer
Number of bytes in buffer.
bool disconnect()
Closes the connection to the LMS. This is the opposite of init().
void(* DisconnectFunction)(void *obj)
void(* ReadFunction)(void *obj, UINT8 *inputBuffer, UINT32 &numBytes)
void removeFrameFromReceiveBuffer(UINT32 frameLength)
@ CoLa_A
Command Language ASCI.
BYTE * getRawData()
get SOPAS raw data include header and CRC
static void readCallbackFunctionS(void *obj, UINT8 *buffer, UINT32 &numOfBytes)
Function that will be called on incomming data via tcp.
UINT8 m_receiveBuffer[25000]
Low-Level receive buffer for all data (25000 should be enough for NAV300 Events)
std::string getVariableName()
Returns the name of a variable (answer to read variable by name). In case of error an empty value wil...
bool init(std::string ipAddress, unsigned short portNumber, Tcp::DisconnectFunction disconnectFunction, void *obj)
~SopasAnswer()
Destructor. Frees the memory for the copied buffer.
void sendCommandBuffer(UINT8 *buffer, UINT16 len)
UINT8 m_responseBuffer[1024]
Receive buffer for everything except scan data and eval case data.
SopasEventMessage findFrameInReceiveBuffer()
void closeTcpConnection()
UINT32 getPayLoadLength() const
contains 's' + command string(2 byte) + content(payload length - 3)
bool setReadCallbackFunction(Tcp::ReadFunction readFunction, void *obj)
SopasEventMessage()
Default constructor.
void processFrame(SopasEventMessage &frame)
@ CoLa_B
Command Language binary.
bool isConnected()
Returns true if the tcp connection is established.
@ CONSTRUCTED
Object has been constructed. Use init() to go into CONNECTED state.
Class that encapsulates a buffer that was sent as return to a sync call. (variable / method)
~SopasEventMessage()
Destructor.
SopasAnswer(const BYTE *answer, UINT32 answerLength)
Constructor. Copies the content of the answer into the buffer of this object.
INT32 getVariableIndex()
Returns the index of a variable (answer to read variable by index). In case of error a negative value...
Class that represents a message that was sent by a sensor. (Event message)
std::string getCommandString() const
Returns two character long command.
void copyFrameToResposeBuffer(UINT32 frameLength)
sick_scan
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Thu Sep 8 2022 02:30:19