Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
nav2_core
include
nav2_core
route_exceptions.hpp
1
// Copyright (c) 2023, Samsung Research America
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef NAV2_CORE__ROUTE_EXCEPTIONS_HPP_
16
#define NAV2_CORE__ROUTE_EXCEPTIONS_HPP_
17
18
#include <stdexcept>
19
#include <string>
20
#include <memory>
21
22
namespace
nav2_core
23
{
24
25
class
RouteException
:
public
std::runtime_error
26
{
27
public
:
28
explicit
RouteException
(
const
std::string & description)
29
: std::runtime_error(description) {}
30
};
31
32
class
OperationFailed
:
public
RouteException
33
{
34
public
:
35
explicit
OperationFailed
(
const
std::string & description)
36
:
RouteException
(description) {}
37
};
38
39
class
NoValidRouteCouldBeFound
:
public
RouteException
40
{
41
public
:
42
explicit
NoValidRouteCouldBeFound
(
const
std::string & description)
43
:
RouteException
(description) {}
44
};
45
46
class
TimedOut
:
public
RouteException
47
{
48
public
:
49
explicit
TimedOut
(
const
std::string & description)
50
:
RouteException
(description) {}
51
};
52
53
class
RouteTFError
:
public
RouteException
54
{
55
public
:
56
explicit
RouteTFError
(
const
std::string & description)
57
:
RouteException
(description) {}
58
};
59
60
class
NoValidGraph
:
public
RouteException
61
{
62
public
:
63
explicit
NoValidGraph
(
const
std::string & description)
64
:
RouteException
(description) {}
65
};
66
67
class
IndeterminantNodesOnGraph
:
public
RouteException
68
{
69
public
:
70
explicit
IndeterminantNodesOnGraph
(
const
std::string & description)
71
:
RouteException
(description) {}
72
};
73
74
class
InvalidEdgeScorerUse
:
public
RouteException
75
{
76
public
:
77
explicit
InvalidEdgeScorerUse
(
const
std::string & description)
78
:
RouteException
(description) {}
79
};
80
81
}
// namespace nav2_core
82
83
#endif
// NAV2_CORE__ROUTE_EXCEPTIONS_HPP_
nav2_core::IndeterminantNodesOnGraph
Definition:
route_exceptions.hpp:68
nav2_core::InvalidEdgeScorerUse
Definition:
route_exceptions.hpp:75
nav2_core::NoValidGraph
Definition:
route_exceptions.hpp:61
nav2_core::NoValidRouteCouldBeFound
Definition:
route_exceptions.hpp:40
nav2_core::OperationFailed
Definition:
route_exceptions.hpp:33
nav2_core::RouteException
Definition:
route_exceptions.hpp:26
nav2_core::RouteTFError
Definition:
route_exceptions.hpp:54
nav2_core::TimedOut
Definition:
route_exceptions.hpp:47
Generated by
1.9.1