Loading...
Searching...
No Matches
Queuetypes.h
1/*********************************************************************
2 * Software License Agreement (BSD License)
3 *
4 * Copyright (c) 2025, University of New Hampshire
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
17 * * Neither the names of the copyright holders nor the names of its
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *********************************************************************/
34/*********************************************************************
35 * Attribution Notice:
36 *
37 * This file contains code partially derived from the AIT* or BIT* planner
38 * in the Open Motion Planning Library (OMPL). Components such as priority
39 * queue type.
40 *
41 * Additional modifications for BLIT* were independently
42 * developed by Yi Wang.
43 *********************************************************************/
44
45// Authors: Yi Wang, Eyal Weiss, Bingxian Mu, Oren Salzman
46
47#ifndef OMPL_GEOMETRIC_PLANNERS_INFORMEDTREES_BLITSTAR_QUEUETYPES_
48#define OMPL_GEOMETRIC_PLANNERS_INFORMEDTREES_BLITSTAR_QUEUETYPES_
49
50#include <array>
51#include <functional>
52#include <memory>
53#include <utility>
54#include "ompl/base/Cost.h"
55#include "ompl/datastructures/BinaryHeap.h"
56
57namespace ompl
58{
59 namespace geometric
60 {
61 namespace blitstar
62 {
63 // Declarations of BLIT* vertex classes.
64 class Vertex;
65
67 using KeyVertexPair = std::pair<std::array<ompl::base::Cost, 2u>, std::shared_ptr<Vertex>>;
68
70 using MiddleVertex = std::pair<ompl::base::Cost, std::shared_ptr<Vertex>>;
71
73 using keyEdgePair = std::pair<std::shared_ptr<Vertex>, std::shared_ptr<Vertex>>;
74
76 using VertexQueue =
77 ompl::BinaryHeap<KeyVertexPair, std::function<bool(const KeyVertexPair &, const KeyVertexPair &)>>;
78
79 } // namespace blitstar
80 } // namespace geometric
81} // namespace ompl
82
83#endif // OMPL_GEOMETRIC_PLANNERS_INFORMEDTREES_BLITSTAR_QUEUETYPES_
This namespace contains code that is specific to planning under geometric constraints.
Main namespace. Contains everything in this library.