|
selfdriving
|
#include <mpp/ptgs/HolonomicBlend.h>
Classes | |
| struct | InternalParams |
Public Member Functions | |
| HolonomicBlend () | |
| HolonomicBlend (const mrpt::config::CConfigFileBase &cfg, const std::string &sSection) | |
| ~HolonomicBlend () override | |
| void | loadFromConfigFile (const mrpt::config::CConfigFileBase &cfg, const std::string &sSection) override |
| void | saveToConfigFile (mrpt::config::CConfigFileBase &cfg, const std::string &sSection) const override |
| void | loadDefaultParams () override |
| bool | supportVelCmdNOP () const override |
| double | maxTimeInVelCmdNOP (int path_k) const override |
| std::string | getDescription () const override |
| bool | inverseMap_WS2TP (double x, double y, int &out_k, double &out_d, double tolerance_dist=0.10) const override |
| bool | PTG_IsIntoDomain (double x, double y) const override |
| void | onNewNavDynamicState () override |
| bool | supportSpeedAtTarget () const override |
| bool | inverseMap_WS2TP_with_Tramp (double x, double y, int &out_k, double &out_d, double &T_ramp) const |
| mrpt::kinematics::CVehicleVelCmd::Ptr | directionToMotionCommand (uint16_t k) const override |
| mrpt::kinematics::CVehicleVelCmd::Ptr | getSupportedKinematicVelocityCommand () const override |
| size_t | getPathStepCount (uint16_t k) const override |
| mrpt::math::TPose2D | getPathPose (uint16_t k, uint32_t step) const override |
| double | getPathDist (uint16_t k, uint32_t step) const override |
| bool | getPathStepForDist (uint16_t k, double dist, uint32_t &out_step) const override |
| double | getPathStepDuration () const override |
| double | getMaxLinVel () const override |
| double | getMaxAngVel () const override |
| void | updateTPObstacle (double ox, double oy, std::vector< double > &tp_obstacles) const override |
| void | updateTPObstacleSingle (double ox, double oy, uint16_t k, double &tp_obstacle_k) const override |
| double | internal_getPathDist (uint32_t step, double T_ramp, double vxf, double vyf) const |
Public Member Functions inherited from mpp::ptg::SpeedTrimmablePTG | |
| SpeedTrimmablePTG ()=default | |
| ~SpeedTrimmablePTG ()=default | |
Static Public Member Functions | |
| static double | calc_trans_distance_t_below_Tramp (double k2, double k4, double vxi, double vyi, double t) |
| static double | calc_trans_distance_t_below_Tramp_abc (double t, double a, double b, double c) |
Static Public Attributes | |
| static double | PATH_TIME_STEP |
| static double | eps |
Protected Member Functions | |
| InternalParams | internal_params_from_dir_and_dynstate (const double dir) const |
| void | internal_construct_exprs () |
| void | internal_processNewRobotShape () override |
| void | internal_initialize (const std::string &cacheFilename=std::string(), const bool verbose=true) override |
| void | internal_deinitialize () override |
Protected Attributes | |
| double | T_ramp_max = -1.0 |
| double | V_MAX = -1.0 |
| double | W_MAX = -1.0 |
| double | turningRadiusReference = 0.30 |
| std::string | expr_V |
| std::string | expr_W |
| std::string | expr_T_ramp |
| std::vector< int > | m_pathStepCountCache |
| mrpt::expr::CRuntimeCompiledExpression | m_expr_v |
| mrpt::expr::CRuntimeCompiledExpression | m_expr_w |
| double | m_expr_dir = 0 |
| double | m_expr_target_dir = 0 |
| double | m_expr_target_dist = 0 |
| std::mutex | m_expr_mtx |
Additional Inherited Members | |
Public Attributes inherited from mpp::ptg::SpeedTrimmablePTG | |
| double | trimmableSpeed_ = 1.0 |
A PTG for circular-shaped robots with holonomic kinematics.
ptg-configurator| mpp::ptg::HolonomicBlend::HolonomicBlend | ( | ) |
| mpp::ptg::HolonomicBlend::HolonomicBlend | ( | const mrpt::config::CConfigFileBase & | cfg, |
| const std::string & | sSection | ||
| ) |
|
override |
|
static |
Axiliary function for computing the line-integral distance along the trajectory, handling special cases of 1/0:
|
static |
Axiliary function for calc_trans_distance_t_below_Tramp() and others
|
override |
Converts a discretized "alpha" value into a feasible motion command or action. See derived classes for the meaning of these actions
|
override |
|
inlineoverride |
|
inlineoverride |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
protected |
|
overrideprotected |
| double mpp::ptg::HolonomicBlend::internal_getPathDist | ( | uint32_t | step, |
| double | T_ramp, | ||
| double | vxf, | ||
| double | vyf | ||
| ) | const |
|
overrideprotected |
|
protected |
|
overrideprotected |
|
override |
| bool mpp::ptg::HolonomicBlend::inverseMap_WS2TP_with_Tramp | ( | double | x, |
| double | y, | ||
| int & | out_k, | ||
| double & | out_d, | ||
| double & | T_ramp | ||
| ) | const |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
inlineoverride |
|
override |
|
override |
|
override |
|
static |
Mathematical "epsilon", to detect ill-conditioned situations (e.g. 1/0) (Default: 1e-4)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
static |
Duration of each PTG "step" (default: 10e-3=10 ms)
|
protected |
|
protected |
|
protected |
|
protected |
1.8.13