gwnavruntime/pathfollower/pathprogressconfig.h Source File

pathprogressconfig.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 // primary contact: GUAL - secondary contact: JUBA
8 #ifndef Navigation_PathProgressConfig_H
9 #define Navigation_PathProgressConfig_H
10 
12 
13 namespace Kaim
14 {
15 
18 {
20 
21 public:
22  AdvancedPathProgressConfig() { SetDefaults(); }
23 
24  void SetDefaults()
25  {
29  }
30 
31 public:
37 
44 
50 };
51 inline void SwapEndianness(Endianness::Target e, AdvancedPathProgressConfig& self)
52 {
53  SwapEndianness(e, self.m_pathValidationMinDistanceBackward);
54  SwapEndianness(e, self.m_pathValidationMinDistanceForward);
55 }
56 
59 {
61 
62 public:
63  PathProgressConfig() { SetDefaults(); }
64 
65  void SetDefaults()
66  {
67  m_checkPointRadius = 0.2f;
68  m_advancedConfig.SetDefaults();
69  }
70 
71 public:
75 
77  AdvancedPathProgressConfig m_advancedConfig;
78 };
79 inline void SwapEndianness(Endianness::Target e, PathProgressConfig& self)
80 {
81  SwapEndianness(e, self.m_checkPointRadius);
82  SwapEndianness(e, self.m_advancedConfig);
83 }
84 
85 } // namespace Kaim
86 
87 #endif // Navigation_PathProgressConfig_H
KyFloat32 m_pathValidationMinDistanceForward
The distance the Path is checked forward each time a new Path is computed.
Definition: pathprogressconfig.h:45
Class that aggregates parameters that allow to configure the progress of a Bot on its path...
Definition: pathprogressconfig.h:62
KyFloat32 m_checkPointRadius
The radius around check points that trigger their validation.
Definition: pathprogressconfig.h:80
KyFloat32 m_pathValidationMinDistanceBackward
The distance the Path is checked backward each time a new Path is computed.
Definition: pathprogressconfig.h:38
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
Class that aggregates path validation minimum distances (advanced parameters)
Definition: pathprogressconfig.h:17
KyFloat32 m_localMaxCostMultiplierOnPathDistance
Distance along the path from the ProgressOnPath used to compute the local maximum cost multiplier on ...
Definition: pathprogressconfig.h:53
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43