MRPT  2.0.4
CPTG_DiffDrive_CCS.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
12 
13 namespace mrpt::nav
14 {
15 /** A PTG for optimal paths of type "C|C,S" (as named in PTG papers).
16  * - **Compatible kinematics**: differential-driven / Ackermann steering
17  * - **Compatible robot shape**: Arbitrary 2D polygon
18  * - **PTG parameters**: Use the app `ptg-configurator`
19  *
20  * See also "Obstacle Distance for Car-Like Robots", IEEE Trans. Rob. And
21  * Autom, 1999.
22  * \note [Before MRPT 1.5.0 this was named CPTG3]
23  * \ingroup nav_tpspace
24  */
26 {
28  public:
29  CPTG_DiffDrive_CCS() = default;
31  const mrpt::config::CConfigFileBase& cfg, const std::string& sSection)
32  {
33  loadFromConfigFile(cfg, sSection);
34  }
35  void loadFromConfigFile(
37  const std::string& sSection) override;
38  void saveToConfigFile(
40  const std::string& sSection) const override;
41 
42  std::string getDescription() const override;
43  bool PTG_IsIntoDomain(double x, double y) const override;
45  float alpha, float t, float x, float y, float phi, float& v,
46  float& w) const override;
47  void loadDefaultParams() override;
48 
49  protected:
50  double R{0}, K{0};
51 };
52 } // namespace mrpt::nav
DEFINE_SERIALIZABLE
#define DEFINE_SERIALIZABLE(class_name, NS)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Definition: CSerializable.h:152
mrpt::nav
Definition: CAbstractHolonomicReactiveMethod.h:20
mrpt::nav::CPTG_DiffDrive_CCS::loadFromConfigFile
void loadFromConfigFile(const mrpt::config::CConfigFileBase &cfg, const std::string &sSection) override
Parameters accepted by this base class:
mrpt::nav::CPTG_DiffDrive_CCS::loadDefaultParams
void loadDefaultParams() override
Loads a set of default parameters; provided exclusively for the PTG-configurator tool.
Definition: CPTG_DiffDrive_CCS.cpp:126
mrpt::nav::CPTG_DiffDrive_CCS
A PTG for optimal paths of type "C|C,S" (as named in PTG papers).
Definition: CPTG_DiffDrive_CCS.h:25
mrpt::nav::CPTG_DiffDrive_CCS::PTG_IsIntoDomain
bool PTG_IsIntoDomain(double x, double y) const override
Returns the same than inverseMap_WS2TP() but without any additional cost.
Definition: CPTG_DiffDrive_CCS.cpp:109
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_CCS::getDescription
std::string getDescription() const override
Gets a short textual description of the PTG and its parameters.
Definition: CPTG_DiffDrive_CCS.cpp:69
mrpt::nav::CPTG_DiffDrive_CCS::saveToConfigFile
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_CCS.cpp:33
mrpt::nav::CPTG_DiffDrive_CCS::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_CCS.cpp:76
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
mrpt::nav::CPTG_DiffDrive_CCS::K
double K
Definition: CPTG_DiffDrive_CCS.h:50
CPTG_DiffDrive_CollisionGridBased.h
mrpt::nav::CPTG_DiffDrive_CCS::CPTG_DiffDrive_CCS
CPTG_DiffDrive_CCS()=default
mrpt::nav::CPTG_DiffDrive_CCS::CPTG_DiffDrive_CCS
CPTG_DiffDrive_CCS(const mrpt::config::CConfigFileBase &cfg, const std::string &sSection)
Definition: CPTG_DiffDrive_CCS.h:30
mrpt::nav::CPTG_DiffDrive_CCS::R
double R
Definition: CPTG_DiffDrive_CCS.h:50



Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 17:54:30 UTC 2020