KatanaNativeInterface $VERSION$
kmlCommon.h
Go to the documentation of this file.
1//
2// C++ Interface: kmlCommon
3//
4// Description:
5//
6//
7// Author: Tiziano Müller <tiziano.mueller@neuronics.ch>, (C) 2006
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12
13#ifndef KMLCOMMON_H
14#define KMLCOMMON_H
15
16#include "common/exception.h"
17#include <string>
18
19#define TM_ENDLESS -1
20
21#if !defined (BYTE_DECLARED)
22#define BYTE_DECLARED
23typedef unsigned char byte;
24#endif
25
30
31
36public:
38 Exception("Internal Slave Error", -31) {}
39};
40
45public:
46 ParameterReadingException(const std::string &para) throw ():
47 Exception("Reading '" + para + "' parameters failed", -32) {}
48};
49
54public:
55 ParameterWritingException(const std::string &para) throw ():
56 Exception("Writing '" + para + "' parameters failed", -33) {}
57};
58
63public:
64 WrongParameterException(const std::string &para) throw ():
65 Exception("Wrong parameters '" + para + "' set", -34) {}
66};
67
72public:
74 Exception("Encoders for motor are out of range", -35) {}
75};
76
81public:
83 Exception("Motor timeout", -36) {}
84};
85
90public:
92 Exception("Motor crashed", -37) {}
93};
94
98
99
100
101
102
103
104#endif
The requested motor crashed during the movement.
Definition: kmlCommon.h:89
The encoders for the given motor were out of range.
Definition: kmlCommon.h:71
The timeout elapsed for the given motor and target position.
Definition: kmlCommon.h:80
There was an error while reading a parameter from the robot.
Definition: kmlCommon.h:44
ParameterReadingException(const std::string &para)
Definition: kmlCommon.h:46
The data you wanted to send to the robot was invalid.
Definition: kmlCommon.h:53
ParameterWritingException(const std::string &para)
Definition: kmlCommon.h:55
Slave error occurred.
Definition: kmlCommon.h:35
The given parameter was wrong.
Definition: kmlCommon.h:62
WrongParameterException(const std::string &para)
Definition: kmlCommon.h:64
unsigned char byte
type specification (8 bit)
Definition: kmlCommon.h:23