plcopen 0.22.0
载入中...
搜索中...
未找到
plcopen::core::axis::CartesianTakeoverPlanner类 参考

#include <cartesian_takeover_planner.h>

类

struct  SegmentExtrema
struct  ResidualCacheEntry
struct  ResidualCache
struct  BasePathEnvelope

静态 Public 成员函数

static const std::array< CartesianTakeoverTemplate, DefaultTemplateCount > & default_templates ()
static bool member_limits_valid (const MotionLimits &m)
static bool discrete_member_within_limits (const MotionLimits &ml, double vk, double ak, double jk)
static bool inside_soft_limits (const MotionLimits &m, double pos)
static geom::Vec3 resolved_delta (geom::Vec3 unit_direction, double path_length, bool has_path_delta, geom::Vec3 path_delta)
static geom::Vec3 eval_line_point (geom::Vec3 start_point, geom::Vec3 delta, double path_length, double s_position)
static rt::ErrorCode prevalidate_base_line (const CartesianTakeoverInput &in, CartesianTakeoverCallCounts &calls, std::array< std::array< double, 3 >, PrevalidationSamples+1 > *grid_out=nullptr)
static bool segment_exact_extrema_window (const otg::Segment1D &seg, double u_lo, double u_hi, bool compute_position_extrema, SegmentExtrema &out, const otg::Limits1D *limit_prune=nullptr)
static bool base_profile_within_bounds (const otg::Profile1D &profile, double path_length)
static void compute_seed_state (const CartesianTakeoverInput &in, int seed_mode, double v_seed[3], double a_seed[3])
static bool quintic_within_limits_fast (const otg::Segment1D &seg, const otg::Limits1D &lim)
static double profile_peak_abs_position (const otg::Profile1D &p)
static rt::Result< otg::Profile1D > plan_fast_1d (otg::State1D from, double target_position, const otg::Limits1D &limits, std::int64_t max_cycles_cap=0)
static rt::ErrorCode compute_base_path_envelope (const CartesianTakeoverInput &in, const double q_s_0[3], const double q_ss_0[3], BasePathEnvelope &env)
static bool compute_global_base_limits (const otg::Limits1D &cmd_limits, const BasePathEnvelope &env, const std::array< MotionLimits, 3 > &member_limits, std::size_t n, otg::Limits1D &eff_out)
static bool verify_tail_peano_bounds (const otg::Profile1D &base_profile, std::int64_t tail_proof_start, std::int64_t base_dur, const BasePathEnvelope &env, const std::array< MotionLimits, 3 > &member_limits, std::size_t n, double &peak_limit_ratio)
static bool evaluate_single_candidate (const CartesianTakeoverInput &in, geom::Vec3 delta, const BasePathEnvelope &env, const double q_s[3], const double q_ss[3], const double w_v[3], const double w_a[3], double denom_v, double denom_a, const CartesianTakeoverTemplate &tpl, bool has_best, double best_tcp_tube, std::int64_t best_residual_duration, double best_max_limit_ratio, std::size_t max_inv_budget, ResidualCache &res_cache, CartesianTakeoverPlan &cand_out, CartesianTakeoverCallCounts &calls)
static bool is_better_plan_metrics (double cand_tube, std::int64_t cand_h, double cand_ratio, double best_tube, std::int64_t best_h, double best_ratio)
static bool is_better_plan (const CartesianTakeoverPlan &cand, const CartesianTakeoverPlan &best)
static rt::ErrorCode plan_with_templates (const CartesianTakeoverInput &in, const CartesianTakeoverTemplate *templates, std::size_t template_count, CartesianTakeoverPlan &best_out, CartesianTakeoverCallCounts &calls, bool enforce_candidate_cap=true, otg::Limits1D *safe_base_limits_out=nullptr, bool *safe_base_limits_proven_out=nullptr)
static rt::ErrorCode plan (const CartesianTakeoverInput &in, CartesianTakeoverPlan &best_out, CartesianTakeoverCallCounts &calls, otg::Limits1D *safe_base_limits_out=nullptr, bool *safe_base_limits_proven_out=nullptr)
static bool profile_within_limits_exact (const otg::Profile1D &profile, const otg::Limits1D &limits)
static rt::Result< otg::Profile1D > plan_bounded_1d_profile (const otg::State1D &from, double target_pos, double path_length, const otg::Limits1D &limits, const otg::Limits1D *verify_limits=nullptr)
static rt::Result< otg::Profile1D > plan_rest_base_profile (double path_length, const otg::Limits1D &limits)
static bool verify_rest_start_replay (const CartesianTakeoverInput &in, const otg::Profile1D &rest_profile, CartesianTakeoverCallCounts &calls, std::size_t max_inv_budget)
static rt::ErrorCode plan_stop (const CartesianTakeoverStopInput &in, CartesianTakeoverStopPlan &plan_out)

静态 Public 属性

static constexpr double DefaultCartesianTcpTubeLimit = 0.05
static constexpr std::int64_t MaxResidualCycles = 128
static constexpr std::int64_t MaxReplayCycles = MaxResidualCycles + 2
static constexpr std::size_t MaxCandidates = 12
static constexpr std::size_t PrevalidationSamples = 32
static constexpr double DynamicsTolerance = 1.0e-9
static constexpr double RelativeLimitTolerance = 1.0e-9
static constexpr double CertifiedHeadroomScale = 1.0 - 1.0e-8
static constexpr double MaxPlanCyclesDouble = 1.0e12
static constexpr double SoftLimitTolerance = 1.0e-9
static constexpr double StateZeroTolerance = 1.0e-12
static constexpr double ProjectionDenomFloor = 1.0e-12
static constexpr std::size_t DefaultTemplateCount = 6

详细描述

在文件 cartesian_takeover_planner.h 第 164 行定义.

成员函数说明

◆ base_profile_within_bounds()

bool plcopen::core::axis::CartesianTakeoverPlanner::base_profile_within_bounds ( const otg::Profile1D & profile,
double path_length )
inlinestatic

在文件 cartesian_takeover_planner.h 第 686 行定义.

◆ compute_base_path_envelope()

rt::ErrorCode plcopen::core::axis::CartesianTakeoverPlanner::compute_base_path_envelope ( const CartesianTakeoverInput & in,
const double q_s_0[3],
const double q_ss_0[3],
BasePathEnvelope & env )
inlinestatic

在文件 cartesian_takeover_planner.h 第 1177 行定义.

◆ compute_global_base_limits()

bool plcopen::core::axis::CartesianTakeoverPlanner::compute_global_base_limits ( const otg::Limits1D & cmd_limits,
const BasePathEnvelope & env,
const std::array< MotionLimits, 3 > & member_limits,
std::size_t n,
otg::Limits1D & eff_out )
inlinestatic

在文件 cartesian_takeover_planner.h 第 1315 行定义.

◆ compute_seed_state()

void plcopen::core::axis::CartesianTakeoverPlanner::compute_seed_state ( const CartesianTakeoverInput & in,
int seed_mode,
double v_seed[3],
double a_seed[3] )
inlinestatic

在文件 cartesian_takeover_planner.h 第 723 行定义.

◆ default_templates()

const std::array< CartesianTakeoverTemplate, DefaultTemplateCount > & plcopen::core::axis::CartesianTakeoverPlanner::default_templates ( )
inlinestatic

在文件 cartesian_takeover_planner.h 第 187 行定义.

◆ discrete_member_within_limits()

bool plcopen::core::axis::CartesianTakeoverPlanner::discrete_member_within_limits ( const MotionLimits & ml,
double vk,
double ak,
double jk )
inlinestatic

在文件 cartesian_takeover_planner.h 第 218 行定义.

◆ eval_line_point()

geom::Vec3 plcopen::core::axis::CartesianTakeoverPlanner::eval_line_point ( geom::Vec3 start_point,
geom::Vec3 delta,
double path_length,
double s_position )
inlinestatic

在文件 cartesian_takeover_planner.h 第 266 行定义.

◆ evaluate_single_candidate()

bool plcopen::core::axis::CartesianTakeoverPlanner::evaluate_single_candidate ( const CartesianTakeoverInput & in,
geom::Vec3 delta,
const BasePathEnvelope & env,
const double q_s[3],
const double q_ss[3],
const double w_v[3],
const double w_a[3],
double denom_v,
double denom_a,
const CartesianTakeoverTemplate & tpl,
bool has_best,
double best_tcp_tube,
std::int64_t best_residual_duration,
double best_max_limit_ratio,
std::size_t max_inv_budget,
ResidualCache & res_cache,
CartesianTakeoverPlan & cand_out,
CartesianTakeoverCallCounts & calls )
inlinestatic

在文件 cartesian_takeover_planner.h 第 1551 行定义.

◆ inside_soft_limits()

bool plcopen::core::axis::CartesianTakeoverPlanner::inside_soft_limits ( const MotionLimits & m,
double pos )
inlinestatic

在文件 cartesian_takeover_planner.h 第 234 行定义.

◆ is_better_plan()

bool plcopen::core::axis::CartesianTakeoverPlanner::is_better_plan ( const CartesianTakeoverPlan & cand,
const CartesianTakeoverPlan & best )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2151 行定义.

◆ is_better_plan_metrics()

bool plcopen::core::axis::CartesianTakeoverPlanner::is_better_plan_metrics ( double cand_tube,
std::int64_t cand_h,
double cand_ratio,
double best_tube,
std::int64_t best_h,
double best_ratio )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2135 行定义.

◆ member_limits_valid()

bool plcopen::core::axis::CartesianTakeoverPlanner::member_limits_valid ( const MotionLimits & m)
inlinestatic

在文件 cartesian_takeover_planner.h 第 206 行定义.

◆ plan()

rt::ErrorCode plcopen::core::axis::CartesianTakeoverPlanner::plan ( const CartesianTakeoverInput & in,
CartesianTakeoverPlan & best_out,
CartesianTakeoverCallCounts & calls,
otg::Limits1D * safe_base_limits_out = nullptr,
bool * safe_base_limits_proven_out = nullptr )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2327 行定义.

◆ plan_bounded_1d_profile()

rt::Result< otg::Profile1D > plcopen::core::axis::CartesianTakeoverPlanner::plan_bounded_1d_profile ( const otg::State1D & from,
double target_pos,
double path_length,
const otg::Limits1D & limits,
const otg::Limits1D * verify_limits = nullptr )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2370 行定义.

◆ plan_fast_1d()

rt::Result< otg::Profile1D > plcopen::core::axis::CartesianTakeoverPlanner::plan_fast_1d ( otg::State1D from,
double target_position,
const otg::Limits1D & limits,
std::int64_t max_cycles_cap = 0 )
inlinestatic

在文件 cartesian_takeover_planner.h 第 900 行定义.

◆ plan_rest_base_profile()

rt::Result< otg::Profile1D > plcopen::core::axis::CartesianTakeoverPlanner::plan_rest_base_profile ( double path_length,
const otg::Limits1D & limits )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2633 行定义.

◆ plan_stop()

rt::ErrorCode plcopen::core::axis::CartesianTakeoverPlanner::plan_stop ( const CartesianTakeoverStopInput & in,
CartesianTakeoverStopPlan & plan_out )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2710 行定义.

◆ plan_with_templates()

rt::ErrorCode plcopen::core::axis::CartesianTakeoverPlanner::plan_with_templates ( const CartesianTakeoverInput & in,
const CartesianTakeoverTemplate * templates,
std::size_t template_count,
CartesianTakeoverPlan & best_out,
CartesianTakeoverCallCounts & calls,
bool enforce_candidate_cap = true,
otg::Limits1D * safe_base_limits_out = nullptr,
bool * safe_base_limits_proven_out = nullptr )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2164 行定义.

◆ prevalidate_base_line()

rt::ErrorCode plcopen::core::axis::CartesianTakeoverPlanner::prevalidate_base_line ( const CartesianTakeoverInput & in,
CartesianTakeoverCallCounts & calls,
std::array< std::array< double, 3 >, PrevalidationSamples+1 > * grid_out = nullptr )
inlinestatic

在文件 cartesian_takeover_planner.h 第 285 行定义.

◆ profile_peak_abs_position()

double plcopen::core::axis::CartesianTakeoverPlanner::profile_peak_abs_position ( const otg::Profile1D & p)
inlinestatic

在文件 cartesian_takeover_planner.h 第 873 行定义.

◆ profile_within_limits_exact()

bool plcopen::core::axis::CartesianTakeoverPlanner::profile_within_limits_exact ( const otg::Profile1D & profile,
const otg::Limits1D & limits )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2340 行定义.

◆ quintic_within_limits_fast()

bool plcopen::core::axis::CartesianTakeoverPlanner::quintic_within_limits_fast ( const otg::Segment1D & seg,
const otg::Limits1D & lim )
inlinestatic

在文件 cartesian_takeover_planner.h 第 856 行定义.

◆ resolved_delta()

geom::Vec3 plcopen::core::axis::CartesianTakeoverPlanner::resolved_delta ( geom::Vec3 unit_direction,
double path_length,
bool has_path_delta,
geom::Vec3 path_delta )
inlinestatic

在文件 cartesian_takeover_planner.h 第 248 行定义.

◆ segment_exact_extrema_window()

bool plcopen::core::axis::CartesianTakeoverPlanner::segment_exact_extrema_window ( const otg::Segment1D & seg,
double u_lo,
double u_hi,
bool compute_position_extrema,
SegmentExtrema & out,
const otg::Limits1D * limit_prune = nullptr )
inlinestatic

在文件 cartesian_takeover_planner.h 第 345 行定义.

◆ verify_rest_start_replay()

bool plcopen::core::axis::CartesianTakeoverPlanner::verify_rest_start_replay ( const CartesianTakeoverInput & in,
const otg::Profile1D & rest_profile,
CartesianTakeoverCallCounts & calls,
std::size_t max_inv_budget )
inlinestatic

在文件 cartesian_takeover_planner.h 第 2641 行定义.

◆ verify_tail_peano_bounds()

bool plcopen::core::axis::CartesianTakeoverPlanner::verify_tail_peano_bounds ( const otg::Profile1D & base_profile,
std::int64_t tail_proof_start,
std::int64_t base_dur,
const BasePathEnvelope & env,
const std::array< MotionLimits, 3 > & member_limits,
std::size_t n,
double & peak_limit_ratio )
inlinestatic

在文件 cartesian_takeover_planner.h 第 1476 行定义.

类成员变量说明

◆ CertifiedHeadroomScale

double plcopen::core::axis::CartesianTakeoverPlanner::CertifiedHeadroomScale = 1.0 - 1.0e-8
staticconstexpr

在文件 cartesian_takeover_planner.h 第 174 行定义.

◆ DefaultCartesianTcpTubeLimit

double plcopen::core::axis::CartesianTakeoverPlanner::DefaultCartesianTcpTubeLimit = 0.05
staticconstexpr

在文件 cartesian_takeover_planner.h 第 167 行定义.

◆ DefaultTemplateCount

std::size_t plcopen::core::axis::CartesianTakeoverPlanner::DefaultTemplateCount = 6
staticconstexpr

在文件 cartesian_takeover_planner.h 第 186 行定义.

◆ DynamicsTolerance

double plcopen::core::axis::CartesianTakeoverPlanner::DynamicsTolerance = 1.0e-9
staticconstexpr

在文件 cartesian_takeover_planner.h 第 172 行定义.

◆ MaxCandidates

std::size_t plcopen::core::axis::CartesianTakeoverPlanner::MaxCandidates = 12
staticconstexpr

在文件 cartesian_takeover_planner.h 第 170 行定义.

◆ MaxPlanCyclesDouble

double plcopen::core::axis::CartesianTakeoverPlanner::MaxPlanCyclesDouble = 1.0e12
staticconstexpr

在文件 cartesian_takeover_planner.h 第 175 行定义.

◆ MaxReplayCycles

std::int64_t plcopen::core::axis::CartesianTakeoverPlanner::MaxReplayCycles = MaxResidualCycles + 2
staticconstexpr

在文件 cartesian_takeover_planner.h 第 169 行定义.

◆ MaxResidualCycles

std::int64_t plcopen::core::axis::CartesianTakeoverPlanner::MaxResidualCycles = 128
staticconstexpr

在文件 cartesian_takeover_planner.h 第 168 行定义.

◆ PrevalidationSamples

std::size_t plcopen::core::axis::CartesianTakeoverPlanner::PrevalidationSamples = 32
staticconstexpr

在文件 cartesian_takeover_planner.h 第 171 行定义.

◆ ProjectionDenomFloor

double plcopen::core::axis::CartesianTakeoverPlanner::ProjectionDenomFloor = 1.0e-12
staticconstexpr

在文件 cartesian_takeover_planner.h 第 178 行定义.

◆ RelativeLimitTolerance

double plcopen::core::axis::CartesianTakeoverPlanner::RelativeLimitTolerance = 1.0e-9
staticconstexpr

在文件 cartesian_takeover_planner.h 第 173 行定义.

◆ SoftLimitTolerance

double plcopen::core::axis::CartesianTakeoverPlanner::SoftLimitTolerance = 1.0e-9
staticconstexpr

在文件 cartesian_takeover_planner.h 第 176 行定义.

◆ StateZeroTolerance

double plcopen::core::axis::CartesianTakeoverPlanner::StateZeroTolerance = 1.0e-12
staticconstexpr

在文件 cartesian_takeover_planner.h 第 177 行定义.


该类的文档由以下文件生成: