Go to the documentation of this file.
9 #ifndef CAbstractHolonomicReactiveMethod_H
10 #define CAbstractHolonomicReactiveMethod_H
49 std::vector<mrpt::math::TPoint2D>
targets;
virtual ~CAbstractHolonomicReactiveMethod()
virtual dtor
mrpt::nav::CParameterizedTrajectoryGenerator * getAssociatedPTG() const
Returns the pointer set by setAssociatedPTG()
std::shared_ptr< CHolonomicLogFileRecord > Ptr
CHolonomicLogFileRecord::Ptr logRecord
The navigation method will create a log record and store it here via a smart pointer.
std::string m_cfgSectionName
used in setConfigFileSectionName(), initialize()
double desiredDirection
The desired motion direction, in the range [-PI, PI].
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
double desiredSpeed
The desired motion speed in that direction, from 0 up to NavInput::maxRobotSpeed.
virtual void initialize(const mrpt::config::CConfigFileBase &c)=0
Initialize the parameters of the navigator, reading from the default section name (see derived classe...
std::shared_ptr< CAbstractHolonomicReactiveMethod > Ptr
A base class for holonomic reactive navigation methods.
virtual void saveConfigFile(mrpt::config::CConfigFileBase &c) const =0
saves all available parameters, in a forma loadable by initialize()
This class allows loading and storing values and vectors of different types from a configuration text...
Clearance information for one particular PTG and one set of obstacles.
bool m_enableApproachTargetSlowDown
Whether to decrease speed when approaching target.
void enableApproachTargetSlowDown(bool enable)
The virtual base class which provides a unified interface for all persistent objects in MRPT.
virtual double getTargetApproachSlowDownDistance() const =0
Returns the actual value of this parameter [m], as set via the children class options structure.
static CAbstractHolonomicReactiveMethod::Ptr Factory(const std::string &className) noexcept
#define DEFINE_VIRTUAL_SERIALIZABLE(class_name)
This declaration must be inserted in virtual CSerializable classes definition:
void setAssociatedPTG(mrpt::nav::CParameterizedTrajectoryGenerator *ptg)
Optionally, sets the associated PTG, just in case a derived class requires this info (not required fo...
virtual void setTargetApproachSlowDownDistance(const double dist)=0
Sets the actual value of this parameter [m].
void setConfigFileSectionName(const std::string §Name)
Defines the name of the section used in initialize()
CAbstractHolonomicReactiveMethod(const std::string &defaultCfgSectionName)
ctor
Output for CAbstractHolonomicReactiveMethod::navigate()
mrpt::nav::CParameterizedTrajectoryGenerator * m_associatedPTG
If applicable, this will contain the argument of the most recent call to setAssociatedPTG()
static CAbstractHolonomicReactiveMethod * Create(const std::string &className) noexcept
Class factory from class name, e.g.
GLsizei const GLchar ** string
std::string getConfigFileSectionName() const
Gets the name of the section used in initialize()
virtual void navigate(const NavInput &ni, NavOutput &no)=0
Invokes the holonomic navigation algorithm itself.
This is the base class for any user-defined PTG.
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 | |