23 : m_associatedPTG(nullptr),
24 m_enableApproachTargetSlowDown(true),
25 m_cfgSectionName(defaultCfgSectionName)
28 CAbstractHolonomicReactiveMethod::~CAbstractHolonomicReactiveMethod() =
default;
30 void CAbstractHolonomicReactiveMethod::setConfigFileSectionName(
61 if (!classId)
return nullptr;
std::shared_ptr< CObject > createObject() const
void registerAllPendingClasses()
Register all pending classes - to be called just before de-serializing an object, for example...
void setAssociatedPTG(mrpt::nav::CParameterizedTrajectoryGenerator *ptg)
Optionally, sets the associated PTG, just in case a derived class requires this info (not required fo...
IMPLEMENTS_VIRTUAL_SERIALIZABLE(CAbstractHolonomicReactiveMethod, CSerializable, mrpt::nav) CAbstractHolonomicReactiveMethod
A base class for holonomic reactive navigation methods.
A structure that holds runtime class type information.
CAbstractHolonomicReactiveMethod(const std::string &defaultCfgSectionName)
ctor
This is the base class for any user-defined PTG.
std::shared_ptr< CAbstractHolonomicReactiveMethod > Ptr
GLsizei const GLchar ** string
const TRuntimeClassId * findRegisteredClass(const std::string &className)
Return info about a given class by its name, or nullptr if the class is not registered.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
mrpt::nav::CParameterizedTrajectoryGenerator * m_associatedPTG
If applicable, this will contain the argument of the most recent call to setAssociatedPTG() ...
static CAbstractHolonomicReactiveMethod::Ptr Factory(const std::string &className) noexcept
std::string getConfigFileSectionName() const
Gets the name of the section used in initialize()
static CAST_TO::Ptr from(const CAST_FROM_PTR &ptr)
std::string m_cfgSectionName
used in setConfigFileSectionName(), initialize()
mrpt::nav::CParameterizedTrajectoryGenerator * getAssociatedPTG() const
Returns the pointer set by setAssociatedPTG()