gwnavruntime/pathfollower/splinetrajectoryconfig.h Source File

splinetrajectoryconfig.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: LAPA - secondary contact: MUBI
8 #ifndef Navigation_SplineTrajectoryConfig_H
9 #define Navigation_SplineTrajectoryConfig_H
10 
13 
14 
15 namespace Kaim
16 {
17 
18 class SplineTrajectoryConfigBlob;
19 
20 
23 {
28 };
29 
32 {
34 
35 public:
36 
39  {
42 
46  };
47 
48  SplineTrajectoryConfig() { SetDefaults(); }
49 
50  void SetDefaults();
51  void UpdateFromBlob(const SplineTrajectoryConfigBlob& blob);
52  bool operator==(const SplineTrajectoryConfig& other) const;
53  bool operator!=(const SplineTrajectoryConfig& other) const { return !operator==(other); }
54 
55 public:
56 
57  //-------------------- Spline computation parameters --------------------
58 
59  SplineComputationConfig m_splineComputationConfig;
60 
64 
71 
76 
81 
82 
83  //-------------------- Spline follow parameters --------------------
84 
89 
94 
103 
104 };
105 
106 } // namespace Kaim
107 
108 #endif // Navigation_SplineTrajectoryConfig_H
KyFloat32 m_recomputationDistanceRatio
Once the bot has moved of splineLength * m_recomputationDistanceRatio meters along the spline...
Definition: splinetrajectoryconfig.h:77
StartConstraintDirectionMode m_startConstraintDirectionMode
Defines the direction to be used to constraint the start of a new Spline.
Definition: splinetrajectoryconfig.h:65
Deactivate start constraint.
Definition: splinetrajectoryconfig.h:27
KyFloat32 m_startConstraintDirectionVelocityThreshold
When start constraint direction mode is StartConstraintDirectionMode_Velocity, the start constraint i...
Definition: splinetrajectoryconfig.h:72
This mode is designed to let a bot without any inertia slide as close as possible along spline...
Definition: splinetrajectoryconfig.h:42
Class that configures how the trajectory is computed from the Channel.
Definition: splinetrajectoryconfig.h:31
KyFloat32 m_stabilityDistance
When updating a followed spline, we ensure the spline will not change on m_stabilityDistance meters...
Definition: splinetrajectoryconfig.h:82
Same as StartConstraintDirectionMode_Velocity, but if velocity under threshold use current bot front ...
Definition: splinetrajectoryconfig.h:26
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
KyFloat32 m_maxDistanceToSplinePosition
If the bot is more than m_maxDistanceToSplinePosition meters from its position on the spline...
Definition: splinetrajectoryconfig.h:90
Aligns the start constraint along current bot velocity when greater than the threshold (cf m_startCon...
Definition: splinetrajectoryconfig.h:24
KyFloat32 m_targetOnSplineDistance
The target is a point along the spline that is used to compute the final velocity.
Definition: splinetrajectoryconfig.h:104
VelocityComputationMode m_velocityComputationMode
Choose whether you want to directly read your velocity from the spline or if you are animation driven...
Definition: splinetrajectoryconfig.h:95
VelocityComputationMode
Enumerates the SplineTrajectory velocity computation modes.
Definition: splinetrajectoryconfig.h:39
StartConstraintDirectionMode
Enumerates the SplineTrajectory start constraint direction modes.
Definition: splinetrajectoryconfig.h:22
In this mode, we use m_targetOnSplineDistance to anticipate ahead.
Definition: splinetrajectoryconfig.h:46
Always aligns the start constraint along current bot front direction.
Definition: splinetrajectoryconfig.h:25
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43