hpp-core  4.12.0
Implement basic classes for canonical path planning for kinematic chains.
path-planning-failed.hh
Go to the documentation of this file.
1 // Copyright (c) 2021 CNRS
2 // Authors: Florent Lamiraux
3 //
4 // This file is part of hpp-core
5 // hpp-core is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 //
10 // hpp-core is distributed in the hope that it will be
11 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // General Lesser Public License for more details. You should have
14 // received a copy of the GNU Lesser General Public License along with
15 // hpp-core If not, see
16 // <http://www.gnu.org/licenses/>.
17 
18 #ifndef HPP_CORE_PATH_PLANNING_FAILED_HH
19 #define HPP_CORE_PATH_PLANNING_FAILED_HH
20 
21 #include <exception>
22 
23 namespace hpp {
24  namespace core {
25  struct HPP_CORE_DLLAPI path_planning_failed : public std::exception
26  {
27  path_planning_failed () : msg_ () {}
28 
29  path_planning_failed (const std::string& msg) : msg_ (msg) {}
30 
32  : std::exception (other), msg_ (other.msg_) {}
33 
34  virtual ~path_planning_failed () _GLIBCXX_USE_NOEXCEPT {};
35 
36  virtual const char* what () const noexcept { return msg_.c_str (); };
37 
38  std::string msg_;
39  };
40 
41  } // namespace core
42 } // namespace hpp
43 
44 #endif // HPP_CORE_PATH_PLANNING_FAILED_HH
Definition: bi-rrt-planner.hh:24
path_planning_failed()
Definition: path-planning-failed.hh:27
path_planning_failed(const std::string &msg)
Definition: path-planning-failed.hh:29
Definition: path-planning-failed.hh:25
virtual const char * what() const noexcept
Definition: path-planning-failed.hh:36
virtual ~path_planning_failed() _GLIBCXX_USE_NOEXCEPT
Definition: path-planning-failed.hh:34
path_planning_failed(const path_planning_failed &other)
Definition: path-planning-failed.hh:31
#define HPP_CORE_DLLAPI
Definition: config.hh:64