An Efﬁcient RRT Algorithm for Motion Planning of Live-Line Maintenance Robots

: The application of robots to replace manual work in live-line working scenes can effectively guarantee the safety of personnel. To improve the operation efﬁciency and reduce the difﬁculties in operating a live-line working robot, this paper proposes a multi-DOF robot motion planning method based on RRT and extended algorithms. The planning results of traditional RRT and extended algorithms are random, and obtaining sub-optimal results requires a lot of calculations. In this study, a sparse ofﬂine tree ﬁlling the planning space are generated ofﬂine through the growing–withering method. In the process of expanding the tree, by removing small branches, the tree can fully wiring in the planning space with a small number of nodes. Optimize wiring through a large number of ofﬂine calculations, which can improve the progressive optimality of the algorithm. Through dynamic sampling and pruning, the growth of trees in undesired areas is reduced and undesired planning results are avoided. Based on the ofﬂine tree, this article introduces the method of online motion planning. Experiments show that this method can quickly complete the robot motion planning and obtain efﬁcient and low-uncertainty paths. make the ofﬂine tree asymptotically optimal, and dynamic area sampling and pruning are used to reduce the uncertainty of the planning results. The online planning method designed for dynamic targets and obstacles can make the planning results converge quickly. The simulation and experimental results show that the method can meet the requirements of motion planning in practical scenarios of live-line working.


Introduction
Live-line maintenance includes replacing or testing of power system equipment without interrupting the current. It can effectively improve power supply reliability, reduce outage losses, ensure grid safety and reduce economic losses. However, the risk of electric shock is very high when the work is performed manually. With the development of robotics, robotics have been gradually applied to the electric power industry since the 1980s to replace human beings in performing high-risk operation tasks [1].
Early robotic systems for live-line maintenance include the remote-controlled robot system of Quebec Hydropower in Canada [2,3], the Spanish remote robot system ROBTET [4], and the Japanese robot phase series [5]. These robot systems are all operated remotely, and an operator manually controls a robot arm to perform complicated tasks. In live-line working scene, manually operating a robot for live-line maintenance is an inefficient, dangerous and difficult task. Automatic robot motion planning instead of manual operation can effectively improve operational efficiency and reduce risks.
Robot path planning algorithms include graph search [6,7], visibility graph [8,9], artificial potential field [10,11], probabilistic roadmap [12,13], and rapid exploring random tree (RRT) [14]. RRT and extended algorithm are widely used in the planning problem of multi degrees of freedom (multi-DOF) robot. Compared with other planning methods, this method is more suitable for dynamic obstacle avoidance path planning of a manipulator in high dimensional space under a complex environment. Moreover, RRT is applicable to the motion planning problem under kinematic constraints [15].
RRT was first proposed by LaValle in 1998 for solving high-dimensional space problems with algebraic constraints (imposed by obstacles) and differential constraints (imposed by nonintegrity and dynamic environments). RRT samples points in the planning space, and eligible points are added to a tree. As the number of samples increases, the tree is expanded to the entire space. The RRT method does not need to map obstacles to the joint space, and it is more suitable for dynamic obstacle avoidance path planning of robots in high-dimensional space in complex environments than other planning methods. It is a probabilistically complete path planning method with good scalability [14,16]. The paths planned by RRT have randomness and are not optimal solutions. The randomness of sampling also reduces the speed of convergence of the algorithm.
In response to the shortcomings of RRT, researchers have proposed many improvements. RRT* [17,18] adds a reconnection process to the original method to obtain a suboptimal solution. However, the reconnection method has a slower convergence speed, especially in larger planning spaces. Informed RRT* [19,20] improves the convergence speed of RRT* by centralized sampling. Kourosh provides the RT-RRT* algorithm to further improve operations, making it possible to complete real-time path planning. The RRT-connect [21][22][23] algorithm uses two trees growing in opposite directions and speeds up the search with a greedy strategy. The method saves search time by reducing useless searches in blank areas. In addition, there are many other variants of RRT algorithms, such as the parallel-RRT [24] algorithm that uses GPU parallel computing to accelerate RRT solution speeds, real-time RRT [25] that improves the real-time performance, and dynamic domain RRT [26] for dynamic environments.
Most RRTs and their algorithms are designed for robot planar motion planning and are not suitable for robots with multiple DOFs. In the multi-DOF robot motion planning problem, the existing RRT algorithm has the following problems: (1) The expansion of RRT requires frequent collision detection calculations. To obtain a better path, it is usually necessary to increase the number of samples. This leads to too long planning times. (2) The uncertainty brought about by the results of motion planning increases the risks in operation processes.
In the previous research [27], the entire robot system was introduced, including path planning algorithms. The focus of this article is a new motion planning method suitable for task scenarios. In this research, a multi-DOF robot motion planning method for fixed scenes, dynamic targets and dynamic obstacles is proposed based RRT*. The growth-withering method is proposed to expand the tree offline, which can fill the high-dimensional space with fewer nodes and realize the optimal wiring of the tree. Aiming at the constraints of the planning problem, the wiring is optimized by dynamic sampling and pruning to make the planning results meet the task requirements and reduce the randomness. For live-line working scenarios, this paper introduces the method of path planning for dynamic targets and dynamic obstacles by using an offline tree. Simulations and experiments show that this method can realize automatic path planning of manipulators in live-line working scenarios and meet the requirements of live-line maintenance.
In this paper, the robot system and live-line maintenance are introduced in Section 2. In Section 3, we introduce the method for building rapid exploring random tree offline. Section 4 describes the method of path planning using offline random trees. Section 5 introduces the simulation and experiment. Finally, this article is summarized in Section 6.

Live-Line Maintenance and Robot System
Robotic live-line maintenance refers to the maintenance of overhead cables by robots using special tools without cutting off the power supply. Common maintenance for live lines includes the disconnection of drain wires, replacement of insulated terminals, and removal of foreign objects (tree branches, kites, etc.), as shown in Figure 1. Working at heights causes difficulties in terms of observations and operations. The threat of charged objects to the robot must be considered during operation tasks. Therefore, reliable and efficient robot operation methods are needed to help operators complete tasks. Therefore, reliable and efficient robot operation technology is needed to help operators complete tasks.

Live-Line Maintenance Operations
The phased research goal of this paper is to achieve a drainage operation, and the main operation object is a swaying cable. The aim of the drainage operation of a 10 kV overhead line is to connect the distribution line and the drainage terminal through a drainage wire. The specific operation includes the following four parts: (1) Wire Stripping: There is a 3-4 mm insulation layer on the surface of a 10 kV overhead cable, which needs to be removed, as shown in Figure 2a. (2) Voltage detection: This is an essential part of connecting lead-flow wires. Electroscopy is used to detect whether the metal cable core is charged, as shown in Figure 2b.  For the above tasks, special tools are designed, including strippers, electroscope, clamp installer, wire cutter, etc. During operation, the robot selects the appropriate tool, moves to the target position and operates the tool to perform the operation.

Robot System
The autonomous live-line maintenance robot (ALMR) consists of an insulated bucket vehicle and a working platform, as shown in Figure 3. The insulated bucket car has a crawler chassis and four auxiliary supports, which can adapt to complex terrain. The boom can lift up to 13 m, meeting the requirements of live-line maintenance of the distribution network. The insulated bucket was transformed into a live-line maintenance platform, as shown in Figure 3. Three 6-DOF robots [28] are installed on the platform and are used for operations, assistance and observations.

Particularity of Live-Line Working Scene
The Live-line Working scene has particularities, and the constraints caused by it need to be considered in the path planning. Affected by the cable layout, the position of the task target relative to the platform in different scenarios is quite different. The method of fixed path with end correction cannot meet the task requirements. Obstacles to robot motion planning include platforms, cables, and other robots. Affected by the size of the platform and the diversity of tools, the main obstacle in the movement of the manipulators is the platform itself, which can be regarded as a fixed obstacle, as shown in Figure 4. In different scenarios, the position of obstacles such as cables and crossarms relative to the platform is variable. The live-line working operation is a highly risk task, and planning results with strong randomness are not acceptable. In addition, the stable planning results make it easy for the operator to monitor the movement process and prevent accidents.
The live-line working operation has special requirements for the robot's end posture. For example, it is necessary to prevent the unfixed parts from closing under gravity when moving the stripper. The drainage line will bend unpredictably during movement, which may lead to the cable winding to the robot body. Therefore, it is necessary to keep the robot body away from the cable when moving.
In conclusion, the path planning in the live-line working scene has the following particularities: (1) There are a lot of obstacles in the environment, and some of the obstacles are mobile; (2) The end posture of the robot is restricted during the movement of the robot; (3) Based on safety factors, the robot stays away from charged objects as much as possible during the movement.

Planning Problem Definition
During the task process, it is necessary to plan a path from the tool position to the working position in the joint space. After the operation is completed, re-plan a path from the working position to the tool position in the changed environment. The motion planning problem can be described as: where θ 0 and θ n are the joint angles of the beginning and end positions, respectively. Θ is the planned path, which is composed of ordered path points θ i . Ψ is the constraints. The constraints of this problem mainly include four aspects: obstacle constraint, preference constraint, attitude constraint and moment constraint. Obstacle constraints for robot movement include static obstacles (O S ) and dynamic obstacles O d . The position of static obstacles relative to the platform for each task is constant, while dynamic obstacles need to be measured by sensors. Obstacle constraints can be described as: The preference constraint is to keep the robot away from charged objects and avoid cable entanglement. The preference constraint is achieved by limiting the range of motion of the joint, described as: The joint limits θ imin and θ imax needs to be set based on experience.
In order to meet the requirements of the posture of the tools for the task, it is necessary to limit the robot end posture during the movement. The posture constraint can be described as: where f kin is the positive kinematics formula of the robot, and R is the robot posture. R max and R min is the attitude limit, depending on the tool requirements. Finally, due to the large quality of the tool ruler and the influence of the cable, the robot needs to avoid positions with poor load capacity during the movement, such as the robot being straight in horizontal. The dynamical constraints are described as follows: In the path planning, in order to simplify the model, we merge the attitude constraint and the moment constraint into the obstacle constraint.

Offline Rapid Exploring Random Tree
According to the characteristics of the live-line maintenance task, there is a need for a planning algorithm that can quickly plan paths for multi-free manipulators in an environment with dynamic obstacles and output optimized planning results. According to task requirements, the algorithm should be able to set constraints to avoid undesirable planning results.
According to the task requirements, the growth-withering extension method is designed. Theoretically, the random tree is sufficiently expanded by a large number of samples to obtain a better path. In a high-dimensional planning space, the method requires a large number of sample points. Taking a 6 DOF robot with a joint movement range of 0-360 • as an example, when the sampling step is 5 • , the number of samples is as high as 1.39 × 10 11 . The robot controller is not up to such a large amount of computation. In nature, trees sprout new branches in the spring and shed their leaves in the fall, leaving only their branches. Inspired by this, in the tree exploring process, the leaf nodes are removed periodically and the branches are retained. In this way, the tree can fill the planning space with only a few nodes, and realize full wiring in high-dimensional space. In addition, a dynamic sampling method is designed for special scene constraints, which can affect the expansion area of the random tree according to the constraints, and then affect the planning results. Using the simulation environment to verify the planning results can eliminate branches that do not meet expectations and avoid bad planning results.

Dynamic Area Sampling
The RRT method expands the tree through random sampling. Therefore, by changing the uniformity and randomness of sampling, the tree can be controlled to grow according to the constraint conditions. Representative RRT improved algorithms based on this principle include RRT-informed and RRT-connect. In multi-DOF robot motion planning, it is not suitable to improve the algorithm by sampling in a small area because the obstacles are in a flow pattern in the planning space. The method of changing the sampling probability using the traditional greedy strategy may lead to oversearching and increase the computational effort of collision detection. As shown in Equation (6), x rand is a randomly generated sample point. When a random number p is greater than (1 − α), the random sample points are selected on the line between the nearest tree node and the target point p goal .
This strategy helps the tree to find the target location quickly when there are few obstacles. However, in the case of more obstacles, it affects the efficiency of the search. As shown in Figure 5, under the influence of the greedy strategy, the tree grows towards the target. Since 6D space cannot be displayed intuitively, the algorithm is explained using a tree in a 2D space. When there is an obstacle on the line to the target, a large number of samples will be generated that do not satisfy the collision constraint. The nodes in the red area are denser, which means that the algorithm conducts many searches near the obstacle. The problem is particularly acute in robot joint spaces where flow pattern obstacles exist.
To solve this problem, we proposed a dynamic sampling method using different sampling probabilities at different tree growth stages. In Equation (8), Function Rect(A,B) represents a rectangular region with vertices A p goal and B p goal + (1 − k)p start . The variable k ∈ [0, 1] is the growth index of the tree and is expressed by the ratio of the number of nodes to the constant N in Equation (8). The greedy sampling area is controlled according to the change in k. When the value of k is small, the sampling value is close to the average sampling value, the value of k increases, and the sampling area decreases. Figure 6 shows the planning results of dynamic area sampling. Compared with the traditional greedy algorithm, the sampling density near the obstacle is lower, and there is no oversampling phenomenon. Close to the target area, the branches and leaves of the tree become denser. This can help trees grow quickly towards the target location.  In motion planning, some paths are not expected. Reducing the sampling frequency for a specific area can reduce the growth of trees in that area. As a result, the probability of generating undesired paths is greatly reduced. In Equation (10), β ∈ (0, α) is a small constant, and the region is sampled only when p < β.
Path planning must not only consider the impact of obstacles on the movement, but also meet the requirements of special scenes, such as the end posture constraints in Figure 7. In addition, during the installation of the drainage line, it is necessary to avoid the twisting drainage line from hitting or even entangled with the robot body, as shown in Figure 8. During the path planning, the robot body is kept away from the lead line by limiting the range of joints motion.  By changing the sampling frequency in the joint space, the range of motion of the joint can be limited. As shown in Figure 9, the sampling frequency of the red area is extremely low (β = 0.05). The tree has fewer branches in this area. Thus, it reduces the probability of the planned path passing through the red area. Through the setting of the preference area, we can influence the randomness of the trajectory to a certain extent, and the planning trajectory is biased towards our preferences.

Expansion
Algorithm 1 introduces the expansion method of the random tree. Unlike the traditional expansion method, we add the withering operation to the expansion process. The expansion process stops the growth whenever n new nodes are generated. Then, Algorithm 2 is used to wither the tree, removing small branches on the random tree and keeping the main trunk. Through the cycle of growth and withering, tree T o f f line will eventually fill the planning space. During the expansion process, only the fixed barrier constraint P StaticObs is calculated. while cnt >0 do 6: Expand Mark T(parent_index) as retrieved 8: parent_index= GetParentIndex(T(parent_index)); 9: else 10: parent_index= 0; 11: end if 12: end while 13: if size(branch) >len then 14: Merge the branch into T withered ; 15: end if 16: cnt = cnt-1; 17: end while The purpose of withering is to remove the short branches on the tree and reduce the number of nodes. Starting from the point with the largest index, the branches are constructed by retrieving the parent node. The retrieved nodes are marked to prevent repeated retrieval. A long branch (>len) is added to tree (T withered ). Since nodes with larger indices are newly added, starting from the largest index point can ensure the integrity of the branch. In addition, this also prevents new nodes at the ends of the branches from being pruned, ensuring that the branches are continuously expanded. The withering process is shown in Figure 10. Expand T goal using RRT*; 5: p new = T goal (end) 6: for p ∈ T o f f line do 7: if distance(p, p new ) ≤ segmentlen & collision(p, p new ) == false then 8: Mark p and p new as joint nodes. if cnt > n then 13: break;//Stop extending if there are enough joint nodes. 14: end if 15: end loop 16: Find a Path(θ 0 , θ 1 , ...θ n ) through joint nodes; Through the growth-withering expansion method, the trunk of the tree continues to grow. In areas with dense branches, since the newly added branches are shorter, they are removed by the withering algorithm. As a result, the tree becomes leafless with long sparse branches, as shown in Figure 11. This process consumes many computing resources, so it needs to be performed offline. As the number of samples increases, the growth of the tree slows down or decreases when it grows to a certain size, as shown in Figure 12.
Therefore, it can be judged that the tree fills the space based on the growth status of the random number.   The sparseness of the random tree is determined by the parameter len. The larger len is, the sparser the tree, as shown in Figure 13. In a high-dimensional space, we use a larger len value to make the random tree fully grow while reducing the number of nodes.

Pruning the Tree
For the problem of the randomness of paths, the undesired branches can be removed by pruning tree T o f f line . Since a 6D joint space cannot be intuitively displayed with a graphical method, the pruning of branches needs to be done in a 3D simulation environment. A large len value is used to wither the tree once so that only a limited number of branches remain in the tree. In the simulation environment, the robot is run according to the path generated by each branch to check whether the path meets the expectation, as shown in Figure 14. Finally, the branches corresponding to undesired paths are removed from tree T o f f line .

Online Motion Planning
In this section, the method of using offline trees to plan paths for live-line maintenance is introduced, including dynamic obstacles and path smoothness. During the operation, the robot takes the tool from the platform and moves to the target position, as shown in Figure 15. The movement process will be affected by obstacles such as platforms and electrical facilities (cables, cross arms, etc.). The target position is indeterminate and is provided by the depth vision sensor. The steps of path planning are shown in Algorithm 3.
First, in the offline state, the random tree T o f f line is expanded with the root node of p start in the joint space Φ J of the robot. Unknown obstacles, such as cables, are not considered during the expansion process, and only fixed obstacle constraints are considered P StaticObs . The method of expanding random trees offline is introduced in Algorithm 2.
During the working process, a tree T goal is built with the cable position p goal obtained by the sensor as the root node. T goal is expanded using RRT* until the new node p new of T goal can be connected to the node of T o f f line . From this node, two paths can be planned to reach p start and p goal . Through p new , a path from p start to p goal can be planned. Dynamic obstacles, such as cables, are imported into the model, and whether the planned path collides with these obstacles is checked. If a collision occurs, Algorithm 4 is used to replan the path.

Searching Path from the Target
In power operations, the target may be cables, clamps, terminals, etc. The positions of these targets are obtained by the depth camera installed in the robot system. Planning the path to the target can be searched by expanding T o f f line , but this method generates a large number of useless random points. Using RRT-connect for reference, we take the target as the root to build and expand the search tree, as shown in Figure 16.
During the expansion process, the distance and collisions between the new node and the nodes on T o f f line are detected (line 7 in Algorithm 5). The points with a distance less than segmenlen and with no collisions are marked as joint points. Two paths leading to p goal and p start can be planned through the joint node. The two paths are combined to obtain a path from the starting point to the target. To obtain a better path, it is necessary to continuously expand T goal and obtain a certain number (n) of joint nodes. In addition, the Path with the lower path cost is chosen.
In this way, T goal requires only a small number of nodes to establish a connection with T o f f line and to obtain a path.

Dynamic Obstacle
For each operation, the position of the lifting platform relative to the overhead line changes greatly. During the operation, additional obstacles will be added, such as the drainage line as shown in Figure 17. These obstacles are not considered when constructing the offline tree. However, the full wiring tree in the planning space can help algorithm bypass obstacles and quickly complete the planning. As shown in Figure 18a, blue dynamic obstacles p dyn_obs are dynamic obstacles in the environment. When p dyn_obs appears on the planning path, the planned path is unavailable and the tree needs to be rewired. Algorithm 5 introduces the method of rewiring and planning the path.
First, section [p s : p e ] of the path that collides with the obstacle is found and is taken as the divider to remove part of the canopy of T o f f line ; the remaining part is T cut . Some branches of T cut may go through the dynamic obstacle. Detecting these branches consumes many resources, so no detection is performed. The partial path Path (p e : end) is retained on the target side as the new tree (T dyn ). Algorithm 4 is used to expand (T dyn ) and plan the path. It is determined whether the planned path passes through dynamic obstacles, and if so, a new joint node is selected to obtain the path.

Optimized Planning Path
In order to fully wire in the plan space, the step size during expansion is short, which leads to more planned path segments. Therefore, the path needs to be smoothed to improve the execution efficiency of the robot. Smoothing is done by taking a small section of the path, testing whether the beginning and end points of the path can be directly connected, and removing the intermediate points to generate a new path. A path with fewer segments can be obtained by multiple operations, as shown in Figure 19. In the simulation, it is found that the sampling order has some influence on the generated smoothing results.
In the simulation, it is found that the sampling order and sampling radius have an effect on the smoothing results. In Figure 19, the following three sampling orders are used: sequential sampling, maximum distance sampling, and minimum distance sampling. Sequential sampling rewires waypoints one by one in the order of the points on the path. The maximum distance sampling rewires the waypoints with a large safe distance first. The minimum distance sampling rewires the waypoints with a small safe distance first. To evaluate the sampling approach, we evaluate the smoothing results using three metrics: the average distance of obstacles, path length, and number of nodes. Fifteen different combinations of sampling methods are used to smooth the 20 planning paths. In Table 1, 20 planning paths are smoothed using 15 different combinations of sampling methods. In the table, a, b and c indicate the maximum distance sampling, minimum distance sampling and sequential sampling, respectively. Sampling method ab smooths the path with maximum distance sampling first and then minimum distance sampling. The simulation results are shown in Figure 20. The results show that: the number of nodes is less in scheme 10; the path length is smaller in scheme 11, but the average safety distance is smaller in this scheme; the average safety distance of the path is larger in scheme 2. Therefore, scheme 2 is usually selected for smoothing based on safety factors.   Figure 21 shows the experimental platform. The left panel is the physical platform, and the right panel is the 3D online simulation environment, which has the function of collision detection. The robot motion planning results can be verified in a simulation environment. To evaluate the performance of the algorithm, we randomly set 20 groups of cable poses for path planning using different algorithms. The planning space is a 6D joint space, and the range of motion of each joint is 360 • . The step size of both algorithms is 2 • , and the greedy strategy coefficient α = 0.1. The rewire radius of the RRT* and the offline method is 5 • . The same smoothing method is used to smooth the paths. The test results are shown in Table 2.

Simulation
In terms of computational efficiency, the algorithm is evaluated with the number of samples and the number of collisions detected. Compared with the other two algorithms, RRT*-offline can complete trajectory planning with a small amount of sampling. In the experiment, FCL [29] was used for collision detection, and the environmental model was simplified to improve the detection efficiency. RRT-connect and RRT*-offline take similar amounts of time, but in the absence of dynamic obstacles, RRT*-offline is faster. Path availability 65% 45% 95% The path length is the sum of the modules of each path section in the joint space. The planned paths of each algorithm are smoothed using the same smoothing method. In comparison, the length and segment number of the RRT*-offline planning path are less than those of the other two algorithms.
In 20 rounds of planning, both RRT-connect and RRT*-offline completed the planning, and only RRT* did not complete 3 planning tasks after 4000 rounds of sampling. Path availability refers to whether the planned trajectory meets expectations. Most of the results of RRT*-connect meet the preset preferences. The planning results of RRT* and RRT-connect are highly uncertain, and some of the results do not meet the preferences.

Test in Simulated Field
In order to verify the reliability of the system function and the planning algorithm, a large number of simulation experiments were carried out in the training field, as shown in Figure 22. The purpose is to verify the reliability of the robot's path planning in real scenarios. The operation process is recorded through video and database, which are used to evaluate the planning effect. For the path planning results, the evaluation indicators include: reliability (no collision), stability (whether the planning is completed), and optimality of the results (whether there are redundant trajectories). A total of 16 rounds of tests were carried out, and the results are shown in Table 3.  The results show that all kinds of algorithms can effectively avoid obstacles when the safe distance is set reasonably (safe distance > 5 cm). A potentially dangerous path means that the robot is too close to a charged object, such as the cross arm, during the movement. Experiments show that RRT*-offline can effectively avoid this risk through dynamic sampling.
The stability of the algorithm is evaluated by whether the first plan is successful. All planning algorithms for wire stripping have a high success rate, but during the clamp installation operation, the success rate of RRT-connect and RRT* drops sharply due to the existence of the cable. The main problem is that the cable's constraints on the robot's movement cannot be solved. RRT*-offline avoids this problem through dynamic area sampling.
The optimality of the result refers to the ratio of the path length of the first planning result to the shortest path length of the 10 times planning under the simulation conditions. The smaller the value, the closer the planning result is to the optimal solution. Due to the limitation of the number of iterations (5000), the planning effect of RRT* algorithm is inferior to RRT*-offline, and the performance of RRT-connect algorithm is the worst.
The experiment shows that the path planning constraints designed according to the task characteristics have achieved the expected results. As shown in Figure 23a-c, posture constraints are added to the robot path planning, the angle between the direction of gravity and the closing direction of the fixed parts is always greater than 90 degrees, so as to prevent it from closing under the action of gravity. As shown in Figure 23d-f, the longer tool size results in a larger load torque on the robot. Through the torque constraint, the robot is in a better output attitude and the load capacity is improved. As shown in Figure 23g-i, under the effect of preference constraints, the robot body is far away from the end to avoid cable winding.

Field Test
Two field operations were carried out in August 2021, including a drainage operation in Figure 24 and a broken drainage operation in Figure 25. The two field tests were mainly to verify whether path planning can improve work efficiency. We compared the efficiency of manual operations, teleoperation operations, and path planning.
The time for the system to complete three drainage is 40 min, and the manual operation time for the same task is about 30 min (including wearing protective equipment). In order to ensure the safety of operation, each trajectory of the robot is executed only after the safety is confirmed manually, which takes a lot of time (25-30 min according to the video recording). In addition, we compared the time-consuming of manual operation and automatic operation in the process of fire removal. In manual operation, the operator needs to remotely control the manipulator to move the tool to the target position, and a single operation takes about 3-7 min. The automatic operation takes less than 1 min (including cable positioning process).

Discussion
According to the simulation and experiment, RRT*-offline has better performance and can effectively solve the problem of robot motion planning in live working scenarios.
(1) Real-time performance: By generating a random tree offline, most of the calculation is removed from the real-time calculation process, which effectively improves the efficiency of real-time motion planning. (2) Practicability: The randomness of the planning results is the main limiting factor of RRTs. Dynamic area sampling and tree pruning solve this problem to a certain extent. The expansion and pruning of offline trees are complicated tasks, but they only need to be completed once. (3) Versatility: The research in this paper is aimed at a live working environment, and its characteristic is that most of the obstacles are fixed, the positions of a few obstacles are changed, and the target position is also changed. In similar scenarios, the algorithm in this article can be used. For example, in the flexible manufacturing process, tools and parts will change during the production process, but the overall production environment is fixed.
In the research, we also found the following problems: (1) The process of demonstrating the planning results in a simulation environment consumes operating time and reduces operating efficiency. (2) The offline tree cannot be displayed intuitively, and there is no good way to evaluate the offline tree.

Conclusions
This study presents a motion planning algorithm based on RRT for live-line maintenance robot. This method reduces the time-consuming online calculation through offline wiring. During the offline expansion, the RRT* algorithm is used to perform a large number of iterations to make the offline tree asymptotically optimal, and dynamic area sampling and pruning are used to reduce the uncertainty of the planning results. The online planning method designed for dynamic targets and obstacles can make the planning results converge quickly. The simulation and experimental results show that the method can meet the requirements of motion planning in practical scenarios of live-line working.
There are many opportunities for improvement in future works. This includes designing evaluation indicators for offline trees, optimizing offline trees through new expansion methods and conducting research on barriers to flow patterns.