Fawkes API
Fawkes Development Version
exceptions.h
1
/***************************************************************************
2
* exceptions.h - KDL Parser Exceptions
3
*
4
* Created: Fri Feb 14 17:35:15 2014
5
* Copyright 2014 Till Hofmann
6
*
7
****************************************************************************/
8
9
/* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU Library General Public License for more details.
18
*
19
* Read the full text in the LICENSE.GPL file in the doc directory.
20
*/
21
22
#ifndef _KDLPARSER_EXCEPTIONS_H_
23
#define _KDLPARSER_EXCEPTIONS_H_
24
25
#include <core/exception.h>
26
27
namespace
fawkes
{
28
29
/**
30
* Unknown Joint Type
31
*/
32
class
KDLParserUnknownJointTypeException
:
public
Exception
33
{
34
public
:
35
/** Constructor.
36
* @param joint_type The unknown joint type in the URDF model
37
*/
38
KDLParserUnknownJointTypeException
(
const
char
*joint_type)
39
{
40
append
(
"Found unknown Joint Type %s"
, joint_type);
41
}
42
};
43
44
/**
45
* URDF Model generation failed for unknown reasons
46
*/
47
class
KDLParserModelGenerationFailedException
:
public
Exception
48
{
49
public
:
50
KDLParserModelGenerationFailedException
()
51
{
52
append
(
"Could not generate robot model"
);
53
}
54
};
55
56
/**
57
* Tried to to parse Collada data which is not supported
58
*/
59
class
URDFColladaNotSupportedException
:
public
Exception
60
{
61
public
:
62
URDFColladaNotSupportedException
()
63
{
64
append
(
"Collada Data models are currently not supported."
);
65
}
66
};
67
68
/**
69
* Failed to parse XML Document
70
*/
71
class
URDFXMLDocumentParseErrorException
:
public
Exception
72
{
73
public
:
74
URDFXMLDocumentParseErrorException
()
75
{
76
append
(
"Could not parse the XML document"
);
77
}
78
};
79
80
/**
81
* Failed to parse XML Element
82
*/
83
class
URDFXMLElementParseErrorException
:
public
Exception
84
{
85
public
:
86
URDFXMLElementParseErrorException
()
87
{
88
append
(
"Could not parse the xml element"
);
89
}
90
};
91
92
}
// namespace fawkes
93
94
#endif
fawkes::KDLParserUnknownJointTypeException::KDLParserUnknownJointTypeException
KDLParserUnknownJointTypeException(const char *joint_type)
Constructor.
Definition:
exceptions.h:38
fawkes::KDLParserUnknownJointTypeException
Unknown Joint Type.
Definition:
exceptions.h:33
fawkes::URDFColladaNotSupportedException
Tried to to parse Collada data which is not supported.
Definition:
exceptions.h:60
fawkes::URDFXMLDocumentParseErrorException
Failed to parse XML Document.
Definition:
exceptions.h:72
fawkes::Exception::append
void append(const char *format,...)
Append messages to the message list.
Definition:
exception.cpp:333
fawkes
Fawkes library namespace.
fawkes::URDFXMLElementParseErrorException
Failed to parse XML Element.
Definition:
exceptions.h:84
fawkes::KDLParserModelGenerationFailedException
URDF Model generation failed for unknown reasons.
Definition:
exceptions.h:48
fawkes::Exception
Base class for exceptions in Fawkes.
Definition:
exception.h:36
src
libs
kdl_parser
exceptions.h
Generated by
1.8.20