1. Introduction
The textile industry is currently accelerating its transition towards Industry 4.0, focusing on boosting manufacturing intelligence and automation [
1]. Within this context, automated foreign-fiber sorting has emerged as a critical step to ensure product quality. The ultimate goal of this momentum is to utilize robotic arms for the precise grasping of foreign fibers in complex environments [
2]. To achieve such precise grasping, deep learning-based foreign-fiber detection systems have matured to achieve high-precision identification [
3,
4]. However, relying exclusively on visual detection is insufficient; the automated sorting process inherently requires path planning to play a crucial connecting role. By translating visual localization results into specific motion commands, the path planning algorithm ensures successful obstacle avoidance and precise target reaching for the robotic arm, thereby directly determining the efficiency and safety of the foreign-fiber sorting system [
5].
Path planning spans several established families of methods. A* uses heuristic estimates to search graphs for minimum-cost paths [
6], while D* updates plans efficiently when the environment is only partially known or changes during navigation [
7]. The artificial potential field (APF) method guides motion through attraction to the goal and repulsion from obstacles [
8]. Later work improved APF to address goal unreachability and local minima in mobile-robot planning [
9], and combined improved APF with RRT to exploit the complementary strengths of potential-field guidance and tree-based exploration [
10]. These studies establish useful search and guidance principles; for the confined sorting workspace considered here, sampling-based planning offers a flexible basis for investigating narrow-passage traversal.
Among these approaches, sampling-based methods are widely used for robotic manipulation. Algorithms represented by PRM [
11] and RRT [
12] are attractive because they avoid full-space discretization and can handle complex planning domains. Under standard assumptions, these methods are probabilistically complete, meaning that the probability of finding a feasible solution approaches one as the number of samples increases when such a solution exists. However, in narrow-passage scenarios for fiber sorting, uniform sampling faces two related challenges: locating a small passage entrance and sustaining valid tree growth within the constrained region. These challenges lead to a scarcity of useful samples and may cause search stagnation [
13,
14,
15,
16].
To address the narrow passage problem, researchers have explored several distinct strategies, each embodying a fundamental trade-off between computational speed, environmental adaptability, and prior knowledge requirements. Within the sampling optimization paradigm, the prevailing approach has been to progressively constrain the search space. Gammell et al. [
17] pioneered this direction with Informed-RRT*, which concentrates samples within an ellipsoidal domain defined by the current best path length. Adaptive successors such as AI-RRT [
18] pushed this further by continuously shrinking the heuristic region, while density-sensitive frameworks such as MINER-RRT* [
19] modulated local sampling density according to obstacle proximity. ACO-based variants [
20] introduced pheromone-guided search to iteratively refine path quality. However, for sampling distribution optimization methods, their shared reliance on the statistical regularity of uniform sampling becomes a critical liability in extremely narrow passages, often resulting in slow convergence or outright initial sampling failure.
To reduce the blindness of random sampling, geometric guidance methods offer a more deterministic alternative. Rather than relying on samples to encounter narrow openings, skeleton-guided methods [
21] precompute guidance corridors by extracting topological structures from the workspace. Supplementary techniques such as B-spline path smoothing [
22] and boundary-reactive steering corrections [
23,
24] further improve behavior in confined spaces. However, global map preprocessing introduces additional computational cost and may be unsuitable for time-sensitive online planning.
Beyond conventional sampling optimization and geometric guidance, researchers have investigated learned and hybrid strategies. GAN-based heuristics learn to bias the sampling distribution [
25]. RJ-RRT dynamically reduces the sampling space and explores identified narrow passages with subtrees [
26]. Bi-RRT* trajectory optimization for serial manipulators [
27], planners that balance exploration and exploitation [
28], and APF-RRT hybrids [
29] offer other forms of search or path guidance. MPNet uses a learned representation of the environment to propose motion paths [
30]. Learned approaches depend on representative training data, while heuristic variants have distinct design and tuning requirements; the extent to which either class can reliably locate and traverse very narrow openings remains task-dependent.
Existing narrow-passage planners commonly improve either passage discovery, local traversal, or post-processing, but these stages are often treated separately. GDRRT* accelerates target-directed exploration by adapting its sampling range according to goal distance [
31], but it does not explicitly reuse repeated collision failures as local passage cues. HA-Bi-RRT* instead couples boundary expansion with feedback-driven sampling and collision-aware path refinement. Unlike skeleton-guided methods, it does not require global skeleton preprocessing; unlike fixed bridge or tunnel samplers, its local sampling behavior is updated from recent tree-growth feedback.
Accordingly, this paper proposes HA-Bi-RRT*, a Bi-RRT*-based planner designed to improve finite-budget planning efficiency, success rate, and path quality in constrained environments. The main contributions are summarized as follows:
To solve the problem of geometric guidance strategies in irregular gaps, a cooperative breakthrough mechanism is designed. When the search is blocked, this mechanism guides the random tree to extend along the obstacle contours, achieving “wall-following” traversal without the need for precise geometric modeling.
To improve dynamic adaptability in confined spaces, a hybrid adaptive sampling strategy is developed. This strategy integrates centroid tracking with a dynamic sampling domain based on historical success rates, enabling the algorithm to switch efficiently between global exploration and local narrow passage breakthrough.
A hierarchical geometric path-refinement method combines global dynamic-programming shortcutting with local collision-aware shortcutting to remove redundant waypoints. This stage improves path length and compactness; it does not optimize velocity, acceleration, jerk, or execution time.
3. HA-Bi-RRT* Algorithm
3.1. Framework of HA-Bi-RRT* Algorithm
To address narrow-passage planning in fiber-sorting manipulation, this paper proposes HA-Bi-RRT*, a failure-informed adaptive planner based on Bi-RRT*. Instead of discarding failed extensions, HA-Bi-RRT* reuses blocked boundary nodes to guide later exploration.
Because its adaptive sampling and deterministic boundary-expansion policies differ from standard RRT*, this study does not claim a formal asymptotic-optimality guarantee for HA-Bi-RRT*. The evaluation therefore focuses on finite-budget success rate, runtime, search effort, and workspace path cost.
As shown in
Figure 5, HA-Bi-RRT* contains three modules: cooperative breakthrough, hybrid adaptive sampling, and hierarchical path refinement. The cooperative breakthrough module reuses blocked boundary nodes for obstacle-boundary expansion. The hybrid sampler switches among goal-biased, centroid-guided, and narrow-region sampling according to tree-growth feedback. The refinement module removes redundant waypoints and improves path compactness.
The overall procedure of HA-Bi-RRT* is summarized in Algorithm 1.
| Algorithm 1. HA-Bi-RRT* Main Framework |
Input: Start point Goal point map M, maximum Iteration connection threshold ε Output: refined path |
| 1 | Initialize two trees |
| 2 | Initialize narrow-region memory ← ∅ |
| 3 | Initialize best path π* ← ∅ and best cost c* ← ∞. |
| 4 | for k = 1 to N_max do |
| 5 | if k is odd then |
| 6 | ← ← ← |
| 7 | else |
| 8 | ← ← ← |
| 9 | end if |
| 10 | ← HybridAdaptiveSampling( ). |
| 11 | ← Nearest ). |
| 12 | ← Steer ). |
| 13 | if CollisionFree M) then |
| 14 | InsertNode ). |
| 15 | Rewire ). |
| 16 | else |
| 17 | RecordNarrowRegion ). |
| 18 | ← BoundaryExpansion M). |
| 19 | if x_bound ≠ NULL then |
| 20 | InsertNode ). |
| 21 | ← |
| 22 | else |
| 23 | continue. |
| 24 | end if |
| 25 | end if |
| 26 | ← Nearest ). |
| 27 | if M) then |
| 28 | ← ConstructPath ). |
| 29 | if Cost) < c* then |
| 30 | π* ← c* ← Cost). |
| 31 | end if |
| 32 | end if |
| 33 | if π* ≠ ∅ and QualityStop(c*/c_min, k/N_max) then break. |
| 34 | end for |
| 35 | if π* ≠ ∅ then π* ← HierarchicalPathRefinement(π*). |
| 36 | return π*. |
Algorithm 1 initializes two trees from the start and goal configurations. In each iteration, the hybrid sampler generates a candidate sample, and the selected tree extends toward it through nearest-neighbor search, steering, and collision checking. If the extension is blocked, the cooperative breakthrough mechanism records the blocked node and attempts boundary expansion. If the two trees connect, the resulting feasible path replaces the incumbent if its cost is lower. The search continues until a shared hard limit or the shared quality-based early-stop rule is reached; the retained path is then passed to hierarchical path refinement.
In Algorithm 1,
denotes the shared maximum-iteration limit. The connection threshold ε in line 27 is the maximum Euclidean separation allowed between the nearest nodes of the two trees before the straight connecting segment is checked for collision; a connection is accepted only when both the distance and collision-free conditions are satisfied. Here,
and
denote the currently expanded tree and the opposite tree, respectively;
is the active target of the current expansion;
,
and
denote the sampled point, nearest tree node, and newly generated node, respectively;
is the node generated by boundary expansion, and
is the nearest node in the opposite tree used for tree connection. The loop shown in Algorithm 1 is also subject to the generated-node and timeout limits in
Table 2; finding a feasible path does not itself end the search.
For the geometric comparisons, every planner used the same quality-based early-stop rule in addition to the hard limits in
Table 2. Let
, where c* is the cost of the current best feasible path and c_min is the straight-line start–goal distance. Once more than 20%, 30%, or 40% of the maximum iteration count had elapsed, respectively, the search could stop if
< 1.10,
< 1.15, or
< 1.20. The first feasible path therefore establishes an incumbent but is not itself a stopping event. After the search terminates, HA-Bi-RRT* applies its hierarchical path-refinement stage.
3.2. Cooperative Breakthrough Mechanism
Traditional RRT-based planners often stagnate near narrow passages because random samples rarely fall inside small feasible gaps. When an extension is blocked, the failed attempt is usually discarded. In contrast, HA-Bi-RRT* treats such failures as useful boundary information.
When the extension from to is blocked, the planner records as a bottleneck candidate in the narrow-region memory. It then probes several directions around this node and attempts a short boundary expansion. If a collision-free direction is found, the tree continues to grow along the obstacle boundary instead of stopping at the blocked point. This mechanism turns a failed extension into a local search cue and helps the tree approach narrow-passage entrances more steadily.
As shown in
Figure 6, the boundary node cannot directly extend toward the random sample because of obstacle blockage. The proposed boundary expansion probes multiple local directions and selects a feasible direction if one exists. Assuming that the success probability of one probing direction is p_single, the probability of obtaining at least one feasible extension among n directions is
This probability increases with the number of probing directions, which explains why local boundary probing can improve passage traversal.
3.3. Hybrid Adaptive Sampling
The hybrid adaptive sampler balances global search and local passage exploration. It contains three sampling modes: goal-biased sampling, centroid-guided sampling, and narrow-region sampling. The planner selects the sampling mode according to recent tree-growth feedback and the recorded narrow-region memory.
As shown in
Figure 7, goal-biased sampling accelerates convergence when the search is smooth. Centroid-guided sampling keeps the sampling region close to the current tree-growth direction. Narrow-region sampling is activated when repeated extension failures indicate a possible passage entrance. This switching strategy helps the planner avoid blind uniform sampling while preserving global exploration.
3.3.1. Adaptive Goal-Biased Sampling
A fixed goal-bias probability is not suitable for narrow-passage planning. In open regions, a larger goal bias helps the tree move quickly toward the target. Near obstacles, however, excessive goal bias may repeatedly pull the tree toward blocked directions. Therefore, HA-Bi-RRT* adjusts the goal-bias probability according to the recent extension success rate.
As shown in
Figure 8, the planner uses two target-oriented sampling modes. With probability
, the active target itself is selected; otherwise, a sample is generated in a local region around the active target. This design preserves goal attraction while maintaining local randomness around the target. The sampling model is defined as
where
denotes the active target of the current tree expansion,
is the local sampling radius,
is a uniformly distributed random variable in
, and
is a random planar direction. Equation (8) gives the two-dimensional form; in three dimensions, the planar direction
is replaced by a random unit direction in
. The goal-bias probability is updated according to the recent extension success rate:
where
is the goal-bias probability at iteration k,
and
denote the predefined lower and upper bounds of the goal-bias probability, respectively,
is the adjustment step, and
and
are the success-rate thresholds, with
.
where
is the window size,
if the
-th extension succeeds, and
otherwise. A high success rate increases
to accelerate convergence, whereas a low success rate decreases
to encourage exploration.
3.3.2. Centroid-Guided Sampling
Centroid-guided sampling keeps the sampling region close to the current tree-growth direction. Instead of sampling throughout the whole planning workspace, the planner samples around the centroid of the current search tree. This allows the sampler to reuse previous search information while preserving local randomness.
As shown in
Figure 9, centroid-guided sampling narrows the random sampling region toward the current growth direction while retaining exploratory variation. Let the current tree contain n nodes. Its centroid is defined as
where
denotes the i-th node of the current tree.
The sampling radius is adjusted according to the distance from the centroid to the target:
where
and
are the lower and upper bounds of the sampling radius, and
is a scaling factor controlling the influence of the centroid-target distance.
A new centroid-guided sample is generated as
where d is a random unit direction vector. This strategy guides samples toward the explored growth region while keeping enough randomness for further exploration.
3.3.3. Narrow-Region Sampling
When repeated extension failures occur near the same area, the planner treats this area as a potential narrow region. The nearest valid node is used as the local sampling center, and the sampling radius is enlarged according to the failure count. This strategy increases the chance of generating samples near difficult passage entrances.
Let
be the nearest valid node around the latest failed extension. A narrow-region sample is generated as
where
is the base local sampling radius,
is a random unit direction vector, and
is the consecutive failure count. The scaling factor is defined as
where
is the predefined maximum consecutive failure threshold. Thus,
increases from 1.0 to 1.5 as failures accumulate, allowing for wider local exploration near repeatedly blocked regions.
In the implementation, the failure count f is capped at f_max. Consequently, the scale factor β(f) remains within [1.0, 1.5], preventing unbounded growth of the local sampling radius.
3.4. Hierarchical Path Refinement
After the search terminates with a feasible incumbent path, HA-Bi-RRT* applies hierarchical path refinement to remove redundant waypoints and improve path compactness. The refinement contains two stages: global dynamic-programming shortcutting and local iterative shortcutting.
Given an initial path
, the global shortcutting stage first checks whether two non-adjacent waypoints can be directly connected without collision. A feasible connection matrix is defined as
Here, adjacent feasible connections preserve the original path connectivity, while non-adjacent feasible connections provide shortcut candidates. The shortest feasible shortcut path is obtained by dynamic programming:
where
is the minimum cumulative path cost from
to
. Backtracking the predecessor nodes gives a compact path with fewer redundant detours.
As illustrated in
Figure 10, the global shortcutting stage tests collision-free connections between non-adjacent waypoints and uses dynamic programming to retain the connection sequence with the lowest cumulative path cost. The resulting path contains fewer redundant turns. Local iterative shortcutting then examines each remaining segment and removes intermediate waypoints only when the replacement segment satisfies the path-reduction and clearance conditions in Equation (18).
where
is the path-reduction threshold,
denotes the minimum clearance along the shortcut segment, and
is the safety margin. The refinement stops when no further valid shortcut can be found. This stage shortens the path while preserving collision safety.
4. Experimental Results and Analysis
To evaluate planning efficiency, path quality, search effort, and narrow-passage adaptability, comparative experiments were conducted in two geometric benchmark environments and a ROS-based manipulator simulation. HA-Bi-RRT* was compared with Bi-RRT, Bi-RRT*, RRT-Connect, RRT-Connect with bridge-test sampling, Skeleton-Guided RRT, Tunnel-RRT, and GDRRT*. These baselines represent bidirectional tree expansion, sampling-distribution enhancement, goal-distance guidance, and geometric guidance. All planners used the same collision-checking framework, maps, start–goal configurations, stopping limits, and matched random-seed sets.
4.1. Experimental Setup
All simulations were conducted on the same hardware platform to ensure a fair comparison. The computing platform was equipped with an Intel Core i5-12450H processor with a base frequency of 2.0 GHz and 16 GB of RAM. All algorithms were implemented in MATLAB R2024a and executed on Windows 11.
Two benchmark scenarios were used. Scenario 1 is the two-dimensional narrow-passage environment used to evaluate passage-entrance localization, traversal reliability, search efficiency, and path quality. Scenario 2 is the three-dimensional narrow-passage environment used to evaluate planning robustness and search efficiency under spatial constraints. A ROS-based 5-DOF manipulator simulation was additionally used to evaluate whether the mapped path could be converted into executable manipulator motion.
For fair comparison, all planners used the same obstacle maps, start–goal configurations, collision-checking resolution, maximum number of iterations, maximum number of generated nodes, and timeout threshold in each scenario. Algorithm-specific hyperparameters were fixed before the reported 100-trial test batches and then held constant during testing. The common experimental settings shared by all planners are summarized in
Table 2, while the documented algorithm-specific settings are listed in
Table 3. The values listed in
Table 2 are common hard caps; the shared quality-based early-stop rule is described in
Section 3.1.
The HA-Bi-RRT* hyperparameters were empirically selected during preliminary testing and fixed before the formal repeated experiments. The base narrow-region sampling radius was set to
= 5.5 cm to maintain localized exploration around detected bottleneck regions while providing sufficient coverage for escaping blocked extensions. The maximum consecutive-failure threshold was set to
= 6 to prevent isolated extension failures from triggering excessive local adaptation. The success and failure thresholds were set to
= 0.65 and
= 0.35, respectively, creating a neutral interval that reduces frequent oscillation of the adaptive goal-bias probability. A window size of 10 was used to smooth short-term stochastic variations in extension outcomes, while a narrow-region memory size of 20 retained recent bottleneck information without excessive memory accumulation. Eight boundary-probing directions were adopted as a compromise between directional coverage and additional collision-checking cost. These settings were kept unchanged during the formal evaluation and are regarded as practical default values rather than globally optimal hyperparameters. The common 2.0 cm step size keeps expansion granularity comparable across planners. Rewiring radii are used only by planners that perform rewiring, whereas the remaining method-specific settings control each baseline’s intended sampling or geometric guidance mechanism. For HA-Bi-RRT*, the memory size and success-rate window limit the amount of recent feedback used by the adaptive sampler, and the boundary-direction count controls the angular resolution of local boundary probing. The algorithm-specific parameters listed in
Table 3 were selected during preliminary validation and fixed before the formal 100-trial test batches. Parameter selection considered planning success rate, runtime, path cost, and search effort in the narrow-passage benchmark environments. The same final parameter settings were then retained throughout the reported comparison, and no parameter was adjusted according to the final test results. Because an exhaustive hyperparameter search over all baseline planners was not conducted, the reported settings should be regarded as documented practical configurations rather than globally optimal parameter combinations. The sensitivity of the two principal HA-Bi-RRT* parameters,
and
, is examined separately in the section “Hyperparameter Sensitivity Analysis”.
The exploratory search ranges and exact number of preliminary validation scenes were not fully archived. These quantities therefore cannot be reconstructed reliably. Although the final configurations are documented, the incomplete preliminary-validation record prevents full reproduction of the parameter-selection process and verification of an equivalent tuning budget across planners. The reported comparisons therefore apply to the specified practical configurations; they do not establish performance rankings under globally optimized hyperparameters.
4.2. Evaluation Metrics and Statistical Protocol
The geometric benchmark comparison uses the five metrics reported in
Table 4,
Table 5 and
Table 6: planning success rate, path cost, runtime, generated nodes, and iterations. Joint-angle and clearance profiles are examined separately in the ROS simulation figures and are not included as columns in the benchmark tables.
The planning success rate measures the robustness of a planner in constrained spaces and is defined as the ratio of successful trials to the total number of independent trials:
where
denotes the number of trials in which a collision-free path is successfully found from the start configuration to the goal configuration, and
denotes the total number of independent trials conducted under the same experimental conditions.
The path cost is used to evaluate the quality of the generated path. For a successful trial, the path cost is computed as the cumulative Euclidean distance between consecutive waypoints:
where
denotes the (j)-th waypoint of the path generated in the (i)-th successful trial, and
is the number of waypoints in that path. The average path cost over all successful trials is then calculated as
For the two-dimensional and three-dimensional benchmarks, path cost is reported in the coordinate unit of the Cartesian workspace. All path-cost values in
Table 4,
Table 5 and
Table 6 are therefore workspace path lengths rather than joint-space trajectory costs.
Runtime evaluates the computational efficiency of successful planning trials and is defined as the elapsed time from the start of the planner call until the final path is returned. For HA-Bi-RRT*, this interval includes planner initialization, tree search, hierarchical geometric path refinement, and final path validation. The mean successful-trial runtime is calculated as
where
denotes the runtime of the (i)-th successful trial. Failed trials are excluded from the runtime summary and represented through the success-rate metric. The reported mean is therefore based on successful trials only.
For Skeleton-Guided RRT, the reported runtime excludes one-time skeleton construction and represents query-stage planning with a precomputed skeleton. It is not an end-to-end timing measure from the raw map. The preprocessing time was not available for this analysis, so neither total runtime nor amortized runtime across repeated queries is quantified. The timing comparison is therefore conditional on the stated preprocessing boundary.
The number of generated nodes and the number of iterations are further recorded to evaluate the search complexity of each algorithm. Their average values are calculated as
where
and
denote the number of generated nodes and iterations in the (i)-th trial, respectively. A smaller number of nodes or iterations indicates that the planner can locate feasible regions more efficiently, which is particularly important in narrow-passage environments where invalid samples frequently occur.
To ensure fair comparison, all planners used the same obstacle maps, start–goal configurations, collision-checking resolution, maximum iterations, maximum generated nodes, and timeout threshold. They also used the same quality-based early-stop rule described in
Section 3.1. Each planner was executed 100 times in each scenario using matched random-seed sets. Finding a first feasible path did not by itself end a run; the incumbent path could be improved until the shared quality rule or a shared hard limit was reached. HA-Bi-RRT* then applied its hierarchical path refinement before returning the final path. No additional planner-specific convergence tolerance was used. Planner-specific hyperparameters were fixed before testing, and the reported results apply to the settings documented in
Table 2 and
Table 3.
For metrics that require a feasible path, including path cost, only successful trials were included. Planning success rate was analyzed separately using binary success/failure outcomes.
Table 4 and
Table 5 report mean ± SD and 95% confidence intervals from 100 independent trials. Runtime and path cost are computed over successful trials only; failed trials contribute to the success-rate calculation but are excluded from these continuous-metric summaries. Iterations and generated nodes are summarized over all trials, and Wilson 95% confidence intervals are reported for success rates. Pairwise success outcomes were compared using two-sided exact McNemar tests for the matched-seed design, with Holm adjustment across the seven comparisons against HA-Bi-RRT* separately within each scenario. HA-Bi-RRT* succeeded in all 100 trials in both scenarios, so the paired success tables were uniquely determined by the reported counts. Runtime and path cost are reported descriptively for successful trials only. The trial-level records required for paired analyses of these continuous outcomes are not currently available; therefore, no inferential significance claims are made for runtime or path cost.
Accordingly, continuous-metric comparisons are interpreted descriptively together with the repeated-trial distributions and confidence intervals.
4.3. Two-Dimensional Experiments
Scenario 1 was designed to evaluate planner robustness in a typical narrow-passage environment. This scenario contains constrained channels with small entrance regions, which significantly reduces the probability that uniformly sampled points fall inside feasible passage regions. Therefore, this scenario is more suitable for examining whether a planner can efficiently locate passage entrances and maintain stable tree growth inside confined regions.
The representative planning results are shown in
Figure 11, and the quantitative results are summarized in
Table 4. As shown in
Figure 11, the standard Bi-RRT* planner generates sparse tree branches near the passage entrance and frequently fails to extend deeply into the constrained channel. This phenomenon indicates that uniform sampling and conventional rewiring are insufficient for resolving the entrance-localization difficulty in narrow passages. RRT-Connect and its bridge-test variant improve connection efficiency, while Skeleton-Guided RRT and Tunnel-RRT provide stronger geometric guidance. However, these methods still produce longer paths or require additional structural assumptions.
HA-Bi-RRT* shows more stable passage penetration and generates a shorter path through the constrained channel. The cooperative breakthrough mechanism records blocked boundary nodes as bottleneck candidates and triggers boundary-following exploration, enabling the search tree to slide along obstacle contours rather than repeatedly discarding failed extensions. The recorded narrow-region memory further guides subsequent sampling toward critical constrained regions, thereby improving the probability of successful passage traversal.
As shown in
Table 4, HA-Bi-RRT* achieved a 100% success rate in the two-dimensional narrow-passage scenario. Relative to Bi-RRT*, the observed mean runtime decreased from 2.810 s to 0.186 s, and the observed mean path cost decreased from 100.252 to 91.583. Compared with GDRRT*, both planners achieved 100% success, while HA-Bi-RRT* had a lower observed mean runtime (0.186 s versus 1.151 s) and path cost (91.583 versus 94.609). HA-Bi-RRT* produced the lowest observed mean path cost among the compared planners. These results are consistent with more effective use of blocked boundary information during constrained-passage search. Path cost is calculated according to the definition in
Section 4.2.
Figure 12 compares the performance distributions in Scenario 1, the two-dimensional narrow-passage experiment. HA-Bi-RRT* has the lowest runtime and path-cost distributions and requires fewer iterations than Bi-RRT*. Its generated-node count is not the smallest among the compared planners; therefore, the results indicate more effective sample placement rather than a uniform reduction in tree size.
4.4. Three-Dimensional Experiments and Ablation Study
To further evaluate the robustness and search efficiency of the proposed planner in higher-dimensional constrained spaces, a three-dimensional narrow-passage environment was constructed as Scenario 2. The workspace size was set to 50 cm × 50 cm × 30 cm. Compared with the two-dimensional scenario, Scenario 2 contains more spatial constraints and dead-end regions, making it more challenging for sampling-based planners to locate feasible passages and maintain efficient tree growth.
The representative planning results are shown in
Figure 13, and the quantitative comparison is summarized in
Table 5.
Figure 13 shows that Bi-RRT and Bi-RRT* generate extensive search trees in the three-dimensional workspace, indicating that a large number of samples are spent in regions that do not directly contribute to a feasible solution. RRT-Connect and its bridge-test variant improve the connection speed, but their resulting paths remain relatively long in this constrained environment. Skeleton-Guided RRT and Tunnel-RRT provide additional geometric guidance, but their performance is still affected by the complexity of three-dimensional obstacle structures.
In contrast, HA-Bi-RRT* produces a more focused search pattern and avoids excessive exploration in dead-end regions. The cooperative breakthrough mechanism helps the planner identify constrained entrances from blocked expansion attempts, while the memory-guided adaptive sampling strategy concentrates samples around previously detected bottleneck regions. As a result, the proposed planner maintains stable passage traversal and generates a shorter path in the three-dimensional environment.
As shown in
Table 5, HA-Bi-RRT* achieved a 100% success rate and the lowest observed mean path cost among the compared planners. Relative to Bi-RRT*, the observed mean runtime decreased from 4.820 s to 0.729 s, and the observed mean path cost decreased from 137.404 to 118.842. Although RRT-Connect with bridge-test sampling also achieved a 100% success rate, its observed mean path cost was higher. GDRRT* achieved a 28% success rate in this scenario; its runtime and path-cost summaries therefore describe only its successful trials and must be interpreted together with the success rate. These results describe the finite-budget performance of HA-Bi-RRT* in the tested three-dimensional narrow-passage environment.
Figure 14 presents the boxplot distributions of the compared planners in the three-dimensional narrow-passage scenario. HA-Bi-RRT* obtains the lowest path-cost distribution and requires fewer iterations than most baseline planners. Although RRT-Connect achieves a short runtime, its path-cost distribution is considerably higher, indicating that fast connection alone does not guarantee path quality in spatially constrained environments. The proposed planner achieves a better balance between search efficiency, robustness, and path compactness.
To identify the contribution of each component, an ablation study was conducted in Scenario 2, the three-dimensional narrow-passage setting described above. Six configurations were compared: the complete HA-Bi-RRT*, HA-Bi-RRT* without cooperative breakthrough (-CB), without narrow-region memory (-NRM), without centroid-guided sampling (-CGS), without path refinement (-PR), and a fixed-goal-bias variant in which adaptive goal-bias updating was disabled. All configurations used the same map, start–goal configuration, random seeds, and termination conditions.
The ablation study used a separate batch of 100 independent trials from the main comparison in
Table 5. All ablation variants shared the same random seeds within that batch. This independent repetition explains why the full values in
Table 6 are close to, but not numerically identical to, the HA-Bi-RRT* values in
Table 5.
The fixed-goal-bias variant disables adaptive goal-bias updating while retaining the other HA-Bi-RRT* modules. It therefore isolates the contribution of the adaptive update mechanism under the settings of Scenario 2. The ablation study itself does not vary the base local sampling radius or the maximum failure threshold; their influence is evaluated separately in the hyperparameter sensitivity analysis presented in the section “Hyperparameter Sensitivity Analysis”. The success-rate thresholds are kept fixed throughout the reported experiments.
Table 6 shows that the complete planner and the -PR variant achieve a 100% success rate, whereas removing CB, NRM, and CGS reduces the success rate to 77%, 79%, and 91%, respectively. The fixed-goal-bias variant achieves an 88% success rate, compared with 100% for the complete planner; its observed mean runtime is slightly lower (0.652 s versus 0.691 s), but its observed mean path cost is higher (123.005 versus 120.122). These results indicate that adaptive goal-bias updating mainly supports planning reliability in the tested setting. Removing path refinement produces the largest path-cost increase, from 120.122 to 163.773. The -PR runtime is slightly lower because its post-processing stage is removed; this difference does not indicate better path quality.
Figure 15 presents the distributions of runtime, path cost, iterations, and generated nodes over the repeated trials.
As shown in
Figure 15, the complete HA-Bi-RRT* planner achieves balanced performance across the four metrics. Removing path refinement (-PR) markedly increases the path cost, confirming its role in improving solution quality. The -CB variant shows larger runtime fluctuations and requires more iterations and nodes, indicating that cooperative breakthrough stabilizes narrow-passage traversal. Although -CGS generates fewer nodes, its path cost and failure rate increase, suggesting that centroid-guided sampling supports directed and reliable exploration. The -NRM variant remains close to the complete planner in most metrics but has a lower success rate, showing that narrow-region memory mainly improves search robustness. The fixed-goal-bias result likewise indicates that adaptive goal-bias updating contributes primarily to reliability. Overall, these modules complement one another to improve path quality, search efficiency, and planning reliability.
Hyperparameter Sensitivity Analysis
To further examine the robustness of the proposed planner with respect to key hyperparameters, a one-factor-at-a-time sensitivity analysis was conducted in Scenario 2. The base narrow-region sampling radius and the maximum consecutive-failure threshold were varied around their default settings, while all other algorithmic and experimental parameters were kept unchanged. Specifically, was evaluated at 4.0, 5.5, and 7.0 cm with , whereas was evaluated at 4, 6, and 8 with cm. Each distinct parameter setting was evaluated over 100 independent trials using matched random seeds. Planning success rate, runtime, path cost, and generated nodes were recorded, and the continuous metrics are reported as mean ± standard deviation.
As shown in
Figure 16, all three
settings achieved a 100% planning success rate, indicating that HA-Bi-RRT* remains robust to moderate variations in the local narrow-region sampling radius. The tested settings produced relatively small changes in the continuous performance metrics. Among them, the default setting
cm yielded the lowest mean runtime, path cost, and generated-node count. A smaller radius restricts local exploration around repeatedly blocked regions, whereas an excessively large radius may introduce unnecessary samples outside the most relevant bottleneck neighborhood. The selected value of 5.5 cm therefore provides a practical balance between local exploration coverage and computational efficiency.
As shown in
Figure 17, varying
from 4 to 8 produces only limited changes in runtime, path cost, and generated nodes, while all three settings maintain a 100% planning success rate. The substantial overlap of the error bars indicates that HA-Bi-RRT* is comparatively insensitive to the maximum consecutive-failure threshold within the tested range. The default value
provides stable planning performance while avoiding either overly rapid or overly delayed enlargement of the local sampling region.
Overall, the sensitivity analysis shows that HA-Bi-RRT* does not exhibit abrupt performance degradation under moderate variations of and . The default settings cm and are therefore retained as practical operating values for the experiments in this study. These results indicate local parameter robustness within the tested ranges rather than globally optimal hyperparameter values.
4.5. ROS-Based Manipulator Simulation
The three-dimensional geometric benchmark evaluates search efficiency and workspace path quality but does not by itself establish manipulator executability. A ROS-based simulation was therefore constructed using MATLAB R2024a, ROS Noetic, MoveIt 1, and RViz (default versions shipped with ROS Noetic). MATLAB generated the Cartesian workspace path, while the ROS bridge performed path transmission, inverse-kinematics conversion, joint-trajectory generation, and visual execution verification.
4.5.1. Simulation Setup and Task Definition
The MATLAB planning workspace was set as a three-dimensional space with a size of 50 by 50 by 30. The start point was set to 2.0, 2.0, 2.0, and the goal point was set to 48.0, 48.0, 26.0. These two points form a long-distance planning task from a low-position region to a high-position target region. The detailed planner parameters are consistent with those listed in the previous tables and are not repeated in this section.
After generation in MATLAB, the path was transmitted through /matlab_rrt_ik_path_x, while the obstacle representation was displayed through /matlab_obstacles_marker. Because the MATLAB planning domain exceeded the reachable region of the Dofbot manipulator, the path and obstacle representation were mapped into the execution workspace before inverse-kinematics conversion. This mapping belongs to the execution layer rather than to the HA-Bi-RRT* search. The same coordinate transformation was applied to both the planned path and the obstacle representation, preserving their relative spatial relationships, while the absolute obstacle dimensions, path length, and clearance were scaled proportionally in the execution workspace.
Because scaling changes absolute path length and clearance, quantitative path-cost comparisons are based on the original benchmark workspace; the mapped ROS path is used to evaluate reachability and execution feasibility.
The Python bridge (Version 6.2.0.341, COMSOL AB, Stockholm, Sweden) subscribed to the mapped path and called the Dofbot inverse-kinematics service /dofbot_kinemarics for each waypoint. Valid joint targets were then passed to MoveIt for joint-trajectory generation under the configured robot model, joint-limit constraints, and collision-checking framework. In RViz, the obstacles were displayed as solid markers and the mapped end-effector path was shown as a red line.
The HA-Bi-RRT* collision model verifies the inflated Cartesian workspace path of the end effector. It does not, by itself, constitute an independent collision certificate for each manipulator link. The present ROS experiment therefore demonstrates workspace-to-joint conversion and execution feasibility under the configured pipeline; it should not be interpreted as proof of globally optimal joint-space motion or certified whole-arm clearance.
4.5.2. Execution Results and Trajectory Analysis
The ROS-based simulation completed the mapped waypoint sequence. For each waypoint, the bridge obtained an inverse-kinematics solution and passed the corresponding joint target to MoveIt. The result shows that the workspace path could be converted into continuous manipulator motion in the modeled environment under the common IK and trajectory-generation pipeline.
Figure 18 shows the simulated execution sequence of the 5-DOF Dofbot manipulator. The manipulator starts from the initial configuration, approaches the constrained passage, passes through the reserved opening between the obstacles, and finally reaches the target region. The red line represents the mapped end-effector trajectory, while the solid obstacles represent the local constrained environment.
The sequence shows that the mapped workspace path can guide the manipulator through the constrained region in the tested ROS model. It therefore supports execution feasibility for the laboratory sorting workflow, rather than direct joint-space optimality or general industrial deployment.
Figure 19 compares the resulting joint-angle profiles after the workspace paths from the three planners were mapped, converted by inverse kinematics, and processed by MoveIt. The HA-Bi-RRT* case exhibits fewer abrupt variations under this common pipeline. This observation is consistent with a workspace path containing fewer redundant waypoints, but the profiles also depend on IK branch selection and MoveIt interpolation. The figure therefore supports relative execution continuity in this test and should not be interpreted as evidence that HA-Bi-RRT* directly optimizes joint-space trajectories.
Figure 20 shows the end-effector minimum-clearance profiles after workspace mapping. In this test, the HA-Bi-RRT* case exhibits less repeated clearance fluctuation than the two baselines. The profiles are affected by mapping and the common IK/MoveIt pipeline and do not measure the clearance of every manipulator link. They are therefore reported as descriptive execution evidence rather than proof of whole-arm clearance superiority.
4.6. Physical Manipulator Experiments
To evaluate the practical feasibility of the proposed planner, physical foreign-matter removal experiments were conducted using a 5-DOF DOFBOT manipulator. A laboratory-scale wool–cashmere sorting workspace was constructed, in which two cardboard barriers formed a constrained passage between the manipulator and the target region. In the original configuration, a leaf impurity on the wool–cashmere sample served as the representative target.
The experimental task consisted of four stages: approaching the passage entrance, traversing the constrained region, grasping the impurity, and transferring it to the designated collection area. Within each configuration, all compared planners used the same obstacle layout, target position, initial manipulator configuration, goal configuration, joint-motion parameters, and termination conditions.
Skeleton-Guided RRT, RRT-Connect with bridge-test sampling, and HA-Bi-RRT* were each independently tested 20 times. A trial was successful only when the manipulator completed the entire task without colliding with the barriers, dropping the impurity, exceeding the planning timeout, or failing to reach the target configuration. Task completion time was measured from the start of planning to the completion of impurity placement and included path generation, manipulator motion, grasping, and transfer. Mean completion time in
Table 7 was calculated from successful trials only. Its 95% confidence interval was obtained from the 2.5th and 97.5th percentiles of a nonparametric bootstrap distribution formed by resampling successful-trial times within each planner and configuration. Success-rate intervals were calculated by the Wilson score method using all 20 trials. Because the available experiment log does not separately document whether Skeleton-Guided RRT skeleton construction occurred within this interval,
Table 7 is not used to support an end-to-end timing comparison from raw-map preprocessing.
Skeleton-Guided RRT and RRT-Connect with bridge-test sampling were selected as representative geometry-guided and narrow-passage-biased sampling baselines, respectively, and both were executable through the same hardware interface. Limiting the physical comparison to these two baselines reflects the scope of the laboratory feasibility study; broader hardware comparisons remain future work.
Figure 21 presents six representative frames from a successful experiment using HA-Bi-RRT*. The manipulator first approached the narrow-passage entrance and adjusted its joint configuration to avoid the surrounding barriers. It then traversed the constrained region, reached the wool–cashmere sample, grasped the leaf impurity, and transferred it to the collection area. No collision with the barriers was observed during this representative execution sequence.
To further evaluate the planner under a more constrained physical configuration, an additional experiment was conducted by reducing the passage width to 90% of that in the original setup and introducing an additional obstacle near the narrow-passage region. This modification reduces the available maneuvering space and increases the difficulty of passage traversal. The manipulator platform, task procedure, success criteria, and evaluation protocol were otherwise kept unchanged. The representative target was changed from a leaf impurity in the original configuration to a coarse hemp-rope fragment in the additional configuration.
Each planner was evaluated over 20 independent trials under this additional configuration. The representative physical execution sequence is shown in
Figure 22.
Figure 22.
Representative physical execution sequence of the coarse hemp-rope fragment grasping and transfer task in the narrower-passage configuration (90% of the original passage width) with an additional obstacle, using the HA-Bi-RRT* planner: (a) end-effector near the sample region; (b) arm reconfiguration; (c) gripper alignment toward the passage between the obstacles; (d) approach toward the collection area; (e) gripper positioning near the collection area; and (f) final manipulator configuration at the collection area.
Figure 22.
Representative physical execution sequence of the coarse hemp-rope fragment grasping and transfer task in the narrower-passage configuration (90% of the original passage width) with an additional obstacle, using the HA-Bi-RRT* planner: (a) end-effector near the sample region; (b) arm reconfiguration; (c) gripper alignment toward the passage between the obstacles; (d) approach toward the collection area; (e) gripper positioning near the collection area; and (f) final manipulator configuration at the collection area.
Table 7 summarizes the physical experimental results under the two narrow-passage configurations. In the typical narrow-passage configuration, HA-Bi-RRT* successfully completed 19 of 20 trials, corresponding to a 95% success rate with a Wilson 95% confidence interval of 76.4–99.1%, and achieved the lowest mean successful-trial completion time of 25.9 s. Skeleton-Guided RRT completed 16 of 20 trials (80%; 58.4–91.9%), whereas RRT-Connect with bridge-test sampling completed 15 of 20 trials (75%; 53.1–88.8%).
In the more constrained configuration, the passage width was reduced to 90% of the original value and an additional obstacle was introduced near the narrow-passage region. The success rates of all three planners decreased under the second experimental condition. Because this condition involved both a narrower passage with an additional obstacle and a different representative impurity target, the observed performance differences should be interpreted as results under the combined experimental variation rather than being attributed solely to geometric narrowing.
Skeleton-Guided RRT achieved 11 successes in 20 trials (55%; 34.2–74.2%), while RRT-Connect with bridge-test sampling achieved seven successes (35%; 18.1–56.7%). HA-Bi-RRT* achieved 13 successes (65%; 43.3–81.9%) and retained the lowest mean successful-trial completion time of 29.1 s, compared with 36.9 s for Skeleton-Guided RRT and 30.8 s for RRT-Connect with bridge-test sampling.
The additional experiment therefore provides further laboratory-scale evidence that HA-Bi-RRT* can maintain comparatively favorable task-execution performance under moderate passage narrowing and local obstacle-layout variation. Under the narrower configuration, its observed mean successful-trial completion time was approximately 21.1% lower than that of Skeleton-Guided RRT and 5.5% lower than that of RRT-Connect with bridge-test sampling, while its success rate remained 10 and 30 percentage points higher, respectively. These comparisons are descriptive and should not be interpreted as statistically significant effects because only 20 physical trials were conducted per method in each configuration.
The physical experiments demonstrate that HA-Bi-RRT* workspace paths can be executed by a laboratory-scale 5-DOF manipulator for representative impurity removal from wool–cashmere material in two laboratory configurations. The original narrow-passage configuration used a leaf impurity; the additional configuration used a coarse hemp-rope fragment, a passage width reduced to 90% of the original value, and an additional obstacle. These experiments remain limited to one manipulator platform, two representative impurity types, and 20 trials per method in each configuration.
Therefore, the results establish laboratory prototype feasibility and provide preliminary evidence of adaptability to moderate geometric variation, rather than demonstrating general performance across diverse manipulator structures, impurity types, or industrial workcell conditions. Broader validation with additional target positions, obstacle arrangements, passage geometries, impurity types, and higher-DOF manipulators remains necessary.
5. Conclusions
This paper proposed HA-Bi-RRT*, a failure-informed adaptive bidirectional planner for narrow-passage motion planning of fiber-sorting manipulators. The key idea is to reuse collision-induced extension failures as informative cues for narrow-passage localization rather than simply discarding them as invalid samples. The proposed planner integrates three main components: a cooperative breakthrough mechanism, memory-guided hybrid adaptive sampling, and hierarchical path refinement. The cooperative breakthrough mechanism records blocked boundary nodes as bottleneck candidates and guides subsequent boundary-following expansion. The hybrid adaptive sampler switches among goal-biased, centroid-guided, and narrow-region sampling according to recent tree-growth feedback, while the path-refinement module removes redundant waypoints and improves path compactness.
Comparative experiments in Scenario 1 (two-dimensional narrow passage) and Scenario 2 (three-dimensional narrow passage) demonstrated favorable finite-budget performance of the proposed planner. In Scenario 1, HA-Bi-RRT* increased the success rate from 79% to 100% relative to Bi-RRT*, reduced the mean runtime from 2.810 s to 0.186 s, and reduced the mean path cost from 100.252 to 91.583. In Scenario 2, HA-Bi-RRT* achieved a 100% success rate, a mean runtime of 0.729 s, and a mean path cost of 118.842. The ablation study further showed that the cooperative breakthrough mechanism, narrow-region memory, and adaptive goal-bias updating mainly contribute to planning reliability, whereas hierarchical path refinement primarily reduces path cost.
The hyperparameter sensitivity analysis showed that moderate variations of the base narrow-region sampling radius (Rbase) and the maximum consecutive-failure threshold (fmax) did not cause abrupt performance degradation in Scenario 2. The default settings Rbase = 5.5 cm and fmax = 6 provided stable performance within the tested ranges and were therefore retained as practical operating values. These results indicate local robustness of the selected settings rather than globally optimal hyperparameter values.
The ROS simulation further demonstrated that the Cartesian workspace path generated by HA-Bi-RRT* can be mapped into the reachable region of the Dofbot manipulator, converted into joint targets through inverse kinematics, and executed within the configured MoveIt environment. The resulting joint-angle and end-effector-clearance profiles are descriptive outcomes of the complete workspace mapping, inverse-kinematics, and MoveIt execution pipeline; they should not be interpreted as evidence of direct joint-space optimality or certified all-link clearance.
The physical experiments further evaluated the planner under two laboratory-scale geometric configurations. In the typical narrow-passage configuration, HA-Bi-RRT* achieved 19 successful trials out of 20, corresponding to a 95% success rate, with a mean successful-trial completion time of 25.9 s. In the more constrained configuration, the passage width was reduced to 90% of the original value and an additional obstacle was introduced near the narrow-passage region. The combined changes in passage geometry, obstacle layout, and representative target were accompanied by lower success rates for all three planners. Nevertheless, HA-Bi-RRT* retained the highest observed success rate of 65% (13/20) and the lowest mean successful-trial completion time of 29.1 s among the tested methods. The additional configuration therefore provides further laboratory-scale evidence of comparatively favorable execution performance in the second tested setting. The simultaneous changes mean that the difference between configurations cannot be attributed to passage width alone.
This study remains limited to static environments, two laboratory-scale physical configurations, one 5-DOF manipulator, two representative impurity types, and the reported hyperparameter settings. Although the workspace-planning formulation is not explicitly tied to the number of manipulator joints, its executability and performance on higher-DOF manipulators have not yet been experimentally established. Moreover, the current physical experiments are intended to demonstrate laboratory prototype feasibility rather than industrial applicability. Future work will investigate dynamic obstacle avoidance, online replanning with visual feedback, full-link collision verification, higher-DOF manipulators, broader sensitivity analysis covering additional hyperparameters and planning environments, and more extensive physical experiments involving varied target positions, passage geometries, obstacle arrangements, impurity types, and workcell layouts.