24 : m_associatedPTG(nullptr),
25 m_enableApproachTargetSlowDown(true),
26 m_cfgSectionName(defaultCfgSectionName)
29 CAbstractHolonomicReactiveMethod::~CAbstractHolonomicReactiveMethod() {}
62 if (!classId)
return nullptr;
65 dynamic_cast<CAbstractHolonomicReactiveMethod*>(
75 : targets(), maxRobotSpeed(1.0), maxObstacleDist(1.0), clearance(nullptr)
80 : desiredDirection(0), desiredSpeed(0)
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
CAbstractHolonomicReactiveMethod
The virtual base class which provides a unified interface for all persistent objects in MRPT...
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.
This is the base class for any user-defined PTG.
mrpt::utils::CObject * createObject() const
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()
std::string m_cfgSectionName
used in setConfigFileSectionName(), initialize()
A structure that holds runtime class type information.
void setConfigFileSectionName(const std::string §Name)
Defines the name of the section used in initialize()
mrpt::nav::CParameterizedTrajectoryGenerator * getAssociatedPTG() const
Returns the pointer set by setAssociatedPTG()