Main MRPT website > C++ reference for MRPT 1.9.9
CPTG_DiffDrive_alpha.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
12 
13 namespace mrpt
14 {
15 namespace nav
16 {
17 /** The "a(symptotic)-alpha PTG", as named in PTG papers.
18  * - **Compatible kinematics**: differential-driven / Ackermann steering
19  * - **Compatible robot shape**: Arbitrary 2D polygon
20  * - **PTG parameters**: Use the app `ptg-configurator`
21  *
22  * This PT generator functions are:
23  *
24  * \f[ v(\alpha) = V_{MAX} e^{ -\left( \dfrac{\alpha-\phi}{cte_{a0v}} \right)^2}
25  * \f]
26  * \f[ \omega(\alpha) = W_{MAX} \left( -\dfrac{1}{2} +\dfrac{1}{1+ e^{ -
27  * \dfrac{\alpha-\phi}{cte_{a0w}} } } \right) \f]
28  *
29  * So, the radius of curvature of each trajectory is NOT constant for each
30  * "alpha" value in this PTG:
31  *
32  * ![C-PTG path examples](PTG2_paths.png)
33  *
34  * \note [Before MRPT 1.5.0 this was named CPTG2]
35  * \ingroup nav_tpspace
36  */
38 {
40  public:
43  const mrpt::config::CConfigFileBase& cfg, const std::string& sSection)
44  {
45  loadFromConfigFile(cfg, sSection);
46  }
47  virtual void loadFromConfigFile(
49  const std::string& sSection) override;
50  virtual void saveToConfigFile(
52  const std::string& sSection) const override;
53 
54  std::string getDescription() const override;
56  float alpha, float t, float x, float y, float phi, float& v,
57  float& w) const override;
58  void loadDefaultParams() override;
59 
60  protected:
61  double cte_a0v, cte_a0w;
62 };
63 }
64 }
t
GLdouble GLdouble t
Definition: glext.h:3689
mrpt::nav::CPTG_DiffDrive_alpha::loadDefaultParams
void loadDefaultParams() override
Loads a set of default parameters; provided exclusively for the PTG-configurator tool.
Definition: CPTG_DiffDrive_alpha.cpp:97
mrpt::nav::CPTG_DiffDrive_alpha::cte_a0v
double cte_a0v
Definition: CPTG_DiffDrive_alpha.h:61
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
w
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:4178
mrpt::nav::CPTG_DiffDrive_alpha::cte_a0w
double cte_a0w
Definition: CPTG_DiffDrive_alpha.h:61
alpha
GLclampf GLclampf GLclampf alpha
Definition: glext.h:3525
mrpt::nav::CPTG_DiffDrive_alpha
The "a(symptotic)-alpha PTG", as named in PTG papers.
Definition: CPTG_DiffDrive_alpha.h:37
v
const GLdouble * v
Definition: glext.h:3678
mrpt::nav::CPTG_DiffDrive_alpha::ptgDiffDriveSteeringFunction
void ptgDiffDriveSteeringFunction(float alpha, float t, float x, float y, float phi, float &v, float &w) const override
The main method to be implemented in derived classes: it defines the differential-driven differential...
Definition: CPTG_DiffDrive_alpha.cpp:82
mrpt::config::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: config/CConfigFileBase.h:44
mrpt::nav::CPTG_DiffDrive_alpha::loadFromConfigFile
virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase &cfg, const std::string &sSection) override
Possible values in "params" (those in CParameterizedTrajectoryGenerator, which is called internally,...
mrpt::nav::CPTG_DiffDrive_alpha::getDescription
std::string getDescription() const override
Gets a short textual description of the PTG and its parameters.
Definition: CPTG_DiffDrive_alpha.cpp:49
mrpt::nav::CPTG_DiffDrive_CollisionGridBased
Base class for all PTGs suitable to non-holonomic, differentially-driven (or Ackermann) vehicles base...
Definition: CPTG_DiffDrive_CollisionGridBased.h:52
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition: CSerializable.h:102
CPTG_DiffDrive_CollisionGridBased.h
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::nav::CPTG_DiffDrive_alpha::CPTG_DiffDrive_alpha
CPTG_DiffDrive_alpha()
Definition: CPTG_DiffDrive_alpha.h:41
mrpt::nav::CPTG_DiffDrive_alpha::saveToConfigFile
virtual void saveToConfigFile(mrpt::config::CConfigFileBase &cfg, const std::string &sSection) const override
This method saves the options to a ".ini"-like file or memory-stored string list.
Definition: CPTG_DiffDrive_alpha.cpp:32
mrpt::nav::CPTG_DiffDrive_alpha::CPTG_DiffDrive_alpha
CPTG_DiffDrive_alpha(const mrpt::config::CConfigFileBase &cfg, const std::string &sSection)
Definition: CPTG_DiffDrive_alpha.h:42
y
GLenum GLint GLint y
Definition: glext.h:3538
x
GLenum GLint x
Definition: glext.h:3538



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST