]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/hokuyo/lib/urg_errno.h
Add unified ORTE topic type for LIDAR scan data
[eurobot/public.git] / src / hokuyo / lib / urg_errno.h
1 #ifndef QRK_C_URG_ERRNO_H
2 #define QRK_C_URG_ERRNO_H
3
4 /*!
5   \file
6   \brief Error code of URG
7
8   \author Satofumi KAMIMURA
9
10   $Id: urg_errno.h 1714 2010-02-21 20:53:28Z satofumi $
11 */
12
13
14 enum {
15   UrgNoError = 0,               /*!< Normal */
16   UrgNotImplemented = -1,       /*!< Not implemented */
17   UrgSendFail = -2,
18   UrgRecvFail = -3,
19   UrgScip10 = -4,               /*!< Response from SCIP1.0  */
20   UrgSsFail = -5,               /*!< Error in response from SS command */
21   UrgAdjustBaudrateFail = -6,   /*!< Fails to adjust baudrate */
22   UrgInvalidArgs = -7,          /*!< Invalid argument specification */
23   UrgInvalidResponse = -8,      /*!< Response error from URG side */
24   UrgSerialConnectionFail = -9, /*!< Fail to establish serial connection */
25   UrgSerialRecvFail = -10,      /*!< Fail to receive data */
26   UrgMismatchResponse = -11,    /*!< Mismatch in echoback in response */
27   UrgNoResponse = -12,          /*!< No response */
28   UtmNoGDIntensity = -13, /*!< Coudn't receive intensity data by GD */
29 };
30
31
32 /*!
33   \brief Returns error message
34
35   \param[in] urg_errno Error value of URG
36
37   \return error message
38 */
39 extern const char* urg_strerror(const int urg_errno);
40
41 #endif /* !QRK_C_URG_ERRNO_H */