All Classes Namespaces Files Functions Variables Enumerations Enumerator
Namespaces | Enumerations | Functions
libs/range_sensor/scip_samples/ScipUtils.h File Reference

Reception of SCIP 2.0 response. More...

#include <vector>
#include <string>
Include dependency graph for ScipUtils.h:

Go to the source code of this file.

Namespaces

namespace  qrk
 Quick Robot Development Kit.

Enumerations

enum  { qrk::ScipTimeout = 200 }

Functions

int decode (const char code[], int byte)
 Decoding of SCIP data.
int recvReply (qrk::Connection *con, int timeout, std::vector< std::string > *lines=NULL)
 Simple command transmission.

Detailed Description

Reception of SCIP 2.0 response.

Author:
Satofumi KAMIMURA
Id:
ScipUtils.h 1684 2010-02-10 23:56:38Z satofumi

Definition in file ScipUtils.h.


Function Documentation

int decode ( const char  code[],
int  byte 
)

Decoding of SCIP data.

Parameters:
[in]codeCharacters to be decoded
[in]byteNumber of decoding characters
Return values:
Decodingresult

Definition at line 20 of file ScipUtils.cpp.

int recvReply ( qrk::Connection con,
int  timeout,
std::vector< std::string > *  lines = NULL 
)

Simple command transmission.

Parameters:
[in]conConnection object
timeoutReceived timestamp [msec]
[out]linesTo store received data
Return values:
0Normal retval < 0 Error

Definition at line 44 of file ScipUtils.cpp.