Go to the documentation of this file.
49 double x,
double y,
int& out_k,
double& out_d,
50 double tolerance_dist = 0.10)
const override;
71 double ox,
double oy, std::vector<double>& tp_obstacles)
const override;
73 double ox,
double oy,
uint16_t k,
double& tp_obstacle_k)
const override;
105 const bool verbose =
true)
override;
112 double k2,
double k4,
double vxi,
double vyi,
double t);
115 double t,
double a,
double b,
double c);
Base class for all PTGs using a 2D circular robot shape model.
bool inverseMap_WS2TP(double x, double y, int &out_k, double &out_d, double tolerance_dist=0.10) const override
Computes the closest (alpha,d) TP coordinates of the trajectory point closest to the Workspace (WS) C...
virtual double maxTimeInVelCmdNOP(int path_k) const override
Only for PTGs supporting supportVelCmdNOP(): this is the maximum time (in seconds) for which the path...
virtual bool supportVelCmdNOP() const override
Returns true if it is possible to stop sending velocity commands to the robot and,...
bool getPathStepForDist(uint16_t k, double dist, uint32_t &out_step) const override
Access path k ([0,N-1]=>[-pi,pi] in alpha): largest step count for which the traversed distance is < ...
mrpt::expr::CRuntimeCompiledExpression m_expr_v
unsigned __int16 uint16_t
std::vector< int > m_pathStepCountCache
static double eps
Mathematical "epsilon", to detect ill-conditioned situations (e.g.
double turningRadiusReference
void getPathPose(uint16_t k, uint32_t step, mrpt::math::TPose2D &p) const override
Access path k ([0,N-1]=>[-pi,pi] in alpha): pose of the vehicle at discrete step step.
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.
mrpt::expr::CRuntimeCompiledExpression m_expr_w
void updateTPObstacleSingle(double ox, double oy, uint16_t k, double &tp_obstacle_k) const override
Like updateTPObstacle() but for one direction only (k) in TP-Space.
double getPathStepDuration() const override
Returns the duration (in seconds) of each "step".
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
size_t getPathStepCount(uint16_t k) const override
Access path k ([0,N-1]=>[-pi,pi] in alpha): number of discrete "steps" along the trajectory.
virtual void loadDefaultParams() override
Loads a set of default parameters; provided exclusively for the PTG-configurator tool.
virtual mrpt::kinematics::CVehicleVelCmd::Ptr getSupportedKinematicVelocityCommand() const override
Returns an empty kinematic velocity command object of the type supported by this PTG.
bool PTG_IsIntoDomain(double x, double y) const override
Returns the same than inverseMap_WS2TP() but without any additional cost.
double getMaxLinVel() const override
Returns the maximum linear velocity expected from this PTG [m/s].
void updateTPObstacle(double ox, double oy, std::vector< double > &tp_obstacles) const override
Updates the radial map of closest TP-Obstacles given a single obstacle point at (ox,...
void internal_construct_exprs()
double internal_get_T_ramp(const double dir) const
Evals expr_T_ramp.
This class allows loading and storing values and vectors of different types from a configuration text...
std::string getDescription() const override
Gets a short textual description of the PTG and its parameters.
virtual ~CPTG_Holo_Blend()
void internal_processNewRobotShape() override
Will be called whenever the robot shape is set / updated.
A wrapper of exprtk runtime expression compiler: it takes a string representing an expression (from a...
static double PATH_TIME_STEP
Duration of each PTG "step" (default: 10e-3=10 ms)
void onNewNavDynamicState() override
Invoked when m_nav_dyn_state has changed; gives the PTG the opportunity to react and parameterize pat...
double internal_get_v(const double dir) const
Evals expr_v.
void internal_deinitialize() override
This must be called to de-initialize the PTG if some parameter is to be changed.
std::shared_ptr< CVehicleVelCmd > Ptr
double getMaxAngVel() const override
Returns the maximum angular velocity expected from this PTG [rad/s].
A PTG for circular-shaped robots with holonomic kinematics.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
virtual mrpt::kinematics::CVehicleVelCmd::Ptr directionToMotionCommand(uint16_t k) const override
Converts a discretized "alpha" value into a feasible motion command or action.
double internal_get_w(const double dir) const
Evals expr_w.
static double calc_trans_distance_t_below_Tramp(double k2, double k4, double vxi, double vyi, double t)
Axiliary function for computing the line-integral distance along the trajectory, handling special cas...
GLsizei const GLchar ** string
double getPathDist(uint16_t k, uint32_t step) const override
Access path k ([0,N-1]=>[-pi,pi] in alpha): traversed distance at discrete step step.
virtual void loadFromConfigFile(const mrpt::config::CConfigFileBase &cfg, const std::string &sSection) override
Parameters accepted by this base class:
mrpt::expr::CRuntimeCompiledExpression m_expr_T_ramp
void internal_initialize(const std::string &cacheFilename=std::string(), const bool verbose=true) override
Must be called after setting all PTG parameters and before requesting converting obstacles to TP-Spac...
unsigned __int32 uint32_t
GLubyte GLubyte GLubyte a
static double calc_trans_distance_t_below_Tramp_abc(double t, double a, double b, double c)
Axiliary function for calc_trans_distance_t_below_Tramp() and others.
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 | |