18 #include <mrpt/expr/CRuntimeCompiledExpression.h> 19 #include <mrpt/nav/tpspace/CParameterizedTrajectoryGenerator.h> 35 public mrpt::nav::CPTG_RobotShape_Circular
41 const mrpt::config::CConfigFileBase& cfg,
const std::string& sSection);
46 const mrpt::config::CConfigFileBase& cfg,
47 const std::string& sSection)
override;
49 mrpt::config::CConfigFileBase& cfg,
50 const std::string& sSection)
const override;
57 double x,
double y,
int& out_k,
double& out_d,
58 double tolerance_dist = 0.10)
const override;
65 double x,
double y,
int& out_k,
double& out_d,
double& T_ramp)
const;
70 uint16_t k)
const override;
75 mrpt::math::TPose2D
getPathPose(uint16_t k, uint32_t step)
const override;
76 double getPathDist(uint16_t k, uint32_t step)
const override;
78 uint16_t k,
double dist, uint32_t& out_step)
const override;
83 double ox,
double oy, std::vector<double>& tp_obstacles)
const override;
85 double ox,
double oy, uint16_t k,
double& tp_obstacle_k)
const override;
88 uint32_t step,
double T_ramp,
double vxf,
double vyf)
const;
115 double vxf = 0, vyf = 0;
121 const double dir)
const;
127 const std::string& cacheFilename = std::string(),
128 const bool verbose =
true)
override;
135 double k2,
double k4,
double vxi,
double vyi,
double t);
138 double t,
double a,
double b,
double c);
double vf
Definition: HolonomicBlend.h:116
std::mutex m_expr_mtx
Definition: HolonomicBlend.h:110
double turningRadiusReference
Definition: HolonomicBlend.h:100
Definition: HolonomicBlend.h:112
Definition: SpeedTrimmablePTG.h:17
InternalParams internal_params_from_dir_and_dynstate(const double dir) const
void updateTPObstacle(double ox, double oy, std::vector< double > &tp_obstacles) const override
bool getPathStepForDist(uint16_t k, double dist, uint32_t &out_step) const override
size_t getPathStepCount(uint16_t k) const override
static double calc_trans_distance_t_below_Tramp(double k2, double k4, double vxi, double vyi, double t)
double internal_getPathDist(uint32_t step, double T_ramp, double vxf, double vyf) const
void internal_construct_exprs()
double vyi
Definition: HolonomicBlend.h:114
std::string expr_V
Definition: HolonomicBlend.h:102
void internal_processNewRobotShape() override
mrpt::kinematics::CVehicleVelCmd::Ptr getSupportedKinematicVelocityCommand() const override
double getPathDist(uint16_t k, uint32_t step) const override
Definition: DiffDrive_C.h:14
double m_expr_target_dist
Definition: HolonomicBlend.h:109
std::string expr_W
Definition: HolonomicBlend.h:102
void loadDefaultParams() override
void internal_deinitialize() override
double T_ramp_max
Definition: HolonomicBlend.h:98
static double PATH_TIME_STEP
Definition: HolonomicBlend.h:91
double m_expr_dir
Definition: HolonomicBlend.h:107
mrpt::math::TPose2D getPathPose(uint16_t k, uint32_t step) const override
Definition: HolonomicBlend.h:34
mrpt::expr::CRuntimeCompiledExpression m_expr_v
Definition: HolonomicBlend.h:106
void internal_initialize(const std::string &cacheFilename=std::string(), const bool verbose=true) override
std::string expr_T_ramp
Definition: HolonomicBlend.h:102
void saveToConfigFile(mrpt::config::CConfigFileBase &cfg, const std::string &sSection) const override
static double eps
Definition: HolonomicBlend.h:95
double vxi
Definition: HolonomicBlend.h:114
void loadFromConfigFile(const mrpt::config::CConfigFileBase &cfg, const std::string &sSection) override
double wf
Definition: HolonomicBlend.h:116
bool PTG_IsIntoDomain(double x, double y) const override
std::string getDescription() const override
void updateTPObstacleSingle(double ox, double oy, uint16_t k, double &tp_obstacle_k) const override
double getMaxLinVel() const override
Definition: HolonomicBlend.h:80
bool inverseMap_WS2TP(double x, double y, int &out_k, double &out_d, double tolerance_dist=0.10) const override
double getMaxAngVel() const override
Definition: HolonomicBlend.h:81
static double calc_trans_distance_t_below_Tramp_abc(double t, double a, double b, double c)
void onNewNavDynamicState() override
std::vector< int > m_pathStepCountCache
Definition: HolonomicBlend.h:103
double maxTimeInVelCmdNOP(int path_k) 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
bool supportSpeedAtTarget() const override
Definition: HolonomicBlend.h:62
mrpt::expr::CRuntimeCompiledExpression m_expr_w
Definition: HolonomicBlend.h:106
~HolonomicBlend() override
bool supportVelCmdNOP() const override
double V_MAX
Definition: HolonomicBlend.h:99
double W_MAX
Definition: HolonomicBlend.h:99
double getPathStepDuration() const override
double m_expr_target_dir
Definition: HolonomicBlend.h:108