src
gpp_interface
post_planning_interface.hpp
Go to the documentation of this file.
1
/*
2
* MIT License
3
*
4
* Copyright (c) 2020 Dima Dorezyuk
5
*
6
* Permission is hereby granted, free of charge, to any person obtaining a copy
7
* of this software and associated documentation files (the "Software"), to deal
8
* in the Software without restriction, including without limitation the rights
9
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
* copies of the Software, and to permit persons to whom the Software is
11
* furnished to do so, subject to the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be included in
14
* all copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
* SOFTWARE.
23
*/
24
25
#pragma once
26
27
#include <
costmap_2d/costmap_2d_ros.h
>
28
#include <geometry_msgs/PoseStamped.h>
29
30
#include <string>
31
#include <vector>
32
33
namespace
gpp_interface
{
34
44
struct
PostPlanningInterface
{
45
// define the interface types
46
using
Pose
= geometry_msgs::PoseStamped;
47
using
Path
= std::vector<Pose>;
48
using
Map
=
costmap_2d::Costmap2DROS
;
49
50
// polymorphism required for this class
51
virtual
~PostPlanningInterface
() =
default
;
52
61
virtual
bool
62
postProcess
(
const
Pose
&_start,
const
Pose
&_goal,
Path
&_path,
63
double
&_cost) = 0;
64
69
virtual
void
70
initialize
(
const
std::string &_name,
Map
*_map) = 0;
71
};
72
73
}
// namespace gpp_interface
gpp_interface
Definition:
post_planning_interface.hpp:33
gpp_interface::PostPlanningInterface::~PostPlanningInterface
virtual ~PostPlanningInterface()=default
costmap_2d_ros.h
gpp_interface::PostPlanningInterface
Definition:
post_planning_interface.hpp:44
gpp_interface::PostPlanningInterface::postProcess
virtual bool postProcess(const Pose &_start, const Pose &_goal, Path &_path, double &_cost)=0
gpp_interface::PostPlanningInterface::Path
std::vector< Pose > Path
Definition:
post_planning_interface.hpp:47
gpp_interface::PostPlanningInterface::Pose
geometry_msgs::PoseStamped Pose
Definition:
post_planning_interface.hpp:46
costmap_2d::Costmap2DROS
gpp_interface::PostPlanningInterface::initialize
virtual void initialize(const std::string &_name, Map *_map)=0
gpp_interface
Author(s):
autogenerated on Wed Mar 2 2022 00:21:20