VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pathPlanner.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 
10 
14 
15 #pragma once
16 
18 
19 #include <features/aStarGraph.h>
21 
23 
24 class DtTerrainInterface;
26 
27 namespace MAKVRinTerra
28 {
29  class DT_DLL_features DtPathPlanner : boost::noncopyable
30  {
31  public:
34 
35  explicit DtPathPlanner(const DtProj&);
36 
38  struct PathSegment
39  {
41  double length;
42 
44  explicit PathSegment(const PathVertex& vertex, const PathSegment& rest);
45 
47  explicit PathSegment(const PathVertex& vertex);
48 
50  explicit PathSegment();
51  };
52 
55  PathVertex::VertexList planPath(
58  const DtAreaFeatureSet& obstacles,
59  DtAStarGraph& graph,
61 
68  PathVertex::VertexList planPath(
71  const DtAreaFeatureSet& obstacles,
72  DtAStarGraph& graph,
73  DtAStarGraph::DtWeightFactorsList& weightFactors,
74  const double offRoadPathWeight,
76 
80  const DtAreaFeatureSetOperation& obstacles,
81  DtAStarGraph& graph,
82  DtAStarGraph::DtWeightFactorsList& weightFactors,
83  const double offRoadPathWeight,
84  const DtAlgorithmManager& mgr = DtAlgorithmManager());
85 
88  PathVertex::VertexList planPath(
91  const DtTerrainInterface&,
92  const std::string& obstacleQuery,
93  const std::string& graphQuery,
94  const DtAlgorithmManager& mgr = DtAlgorithmManager());
95 
96  protected:
102  PathSegment insertNavigationPaths(DtAStarGraph::MultiPathVertex& firstVertexInPath,
103  const DtAreaFeatureSet& obstacles, size_t frontEdgesToSkip = 0,
105 
106  PathSegment insertNavigationPaths(
107  DtAStarGraph::MultiPathVertex& path, const DtAreaFeatureSet& obstacles, const DtAlgorithmManager&);
108 
109  PathSegment insertNavigationPaths(DtAStarGraph::MultiPathVertex& firstVertexInPath,
110  const DtAreaFeatureSetOperation& obstacles, size_t frontEdgesToSkip = 0,
112 
113 
114  public:
115  void setAdjustStartIfInObstacle(bool v) { myAdjustStartIfInObstacle = v; }
116 
117  protected:
119  bool myAdjustStartIfInObstacle = false;
120  };
121 }
Represents a set of DtFeature objects or others which conform to the DtFeature concept.
Definition: featureSet.h:105
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:41
std::shared_ptr< const DtProj > CPtr
Definition: proj.h:56
double length
Definition: pathPlanner.h:41
DtAStarGraph holds all the classes used to read in feature data tile-wise, create a Boost Graph...
Definition: aStarGraph.h:89
This is the data associated with a vertex of the path returned from makePath (in a Path class...
Definition: aStarGraph.h:146
A (subset of) a path, i.e. a list of vertices.
Definition: pathPlanner.h:38
DtAStarGraph::MultiPathVertex MultiPathVertex
Definition: pathPlanner.h:33
std::list< DtWeightFactor > DtWeightFactorsList
Definition: aStarGraph.h:268
DtAStarGraph::PathVertexData PathVertex
Definition: pathPlanner.h:32
Handle< PointType > Point
Definition: featureGeometry.h:74
Represents some coordinate system. The terms &quot;coordinate system&quot;, &quot;projection&quot;, &quot;spatial reference&quot;...
Definition: proj.h:52
PathVertex::VertexList path
Definition: pathPlanner.h:40
A MultiPathVertex is vertex with a list of next vertices, thus it is the root of a subtree...
Definition: aStarGraph.h:179
DtTerrainInterface allows access to common terrain calls without having to know the terrain implement...
Definition: terrainInterface.h:93
Class to represent an area feature set operation (union, difference, intersection) between two area f...
Definition: areaFeatureSetOperation.h:19
std::list< PathVertexData > VertexList
Definition: aStarGraph.h:148
void setAdjustStartIfInObstacle(bool v)
Definition: pathPlanner.h:115
Definition: pathPlanner.h:29
const DtProj::CPtr myLocalProj
Definition: pathPlanner.h:118
General interface which can be passed into an algorithm to control its behavior.
Definition: algorithmManager.h:24
char * dest
Definition: lz4.h:440

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)