Path planning and task scheduling method and device of inspection robot, equipment and medium

By acquiring a prior key waypoint sequence with confidence, generating straight line segments and smoothing them, combining dynamic obstacle prediction trajectories for spatiotemporal collision detection, locally generating obstacle avoidance paths, allocating energy budgets and generating velocity curves, the problems of deviation, dynamic obstacle handling and charging decision-making in the path planning of inspection robots are solved, achieving efficient and safe path planning and task scheduling.

CN123177445APending Publication Date: 2026-11-27HUNAN HUALIAN YUNCHUANG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611666080.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing inspection robots suffer from problems such as path deviation from preset routes, inability to handle dynamic obstacles, unreasonable charging decisions, and suboptimal energy management, resulting in low safety and efficiency.

Method used

By acquiring a prior key waypoint sequence with confidence, straight line segments are generated and smoothed. Spatiotemporal collision detection is performed by combining dynamic obstacle prediction trajectories, obstacle bypass paths are generated locally, energy budgets are allocated and velocity curves are generated, and speed and charging amount are adjusted when anomalies are recovered.

Benefits of technology

It achieves path fidelity to the preset route, high spatiotemporal safety, high energy utilization, robust interruption recovery, and dynamic matching of charging and tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177445A_ABST
    Figure CN123177445A_ABST
Patent Text Reader

Abstract

The application discloses a path planning and task scheduling method, device and equipment of an inspection robot and a medium, relates to the technical field of robot path planning, and comprises the following steps: taking prior key navigation points with confidence as input, preferentially constructing a candidate trajectory by means of straight line connection and inflection point tangent smoothing which meets the minimum turning radius constraint; performing space-time collision detection by fusing a dynamic obstacle prediction trajectory, only generating an obstacle-avoiding sub-path locally in the collision interval, and splicing the obstacle-avoiding sub-path to obtain an inspection path; distributing energy budget and time and generating a speed curve accordingly; after abnormal recovery, re-matching the speed in combination with the remaining task, a time window and a passing time consumption, limiting the speed according to the motor temperature, and when the electric quantity is insufficient, backstepping the charging quantity and the charging time length. The beneficial effects are as follows: the inspection route has high fidelity and is executable, the space-time collision detection has no missed judgment, the local obstacle does not destroy the global route, the energy utilization rate is high, the interruption recovery is robust, and the charging and the task are dynamically matched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of robot path planning technology, and in particular to a method, apparatus, equipment and medium for path planning and task scheduling of an inspection robot. Background Technology

[0002] Current navigation systems for embodied intelligent robots generally adopt a three-layer architecture: global path planning, local obstacle avoidance, and motion control. Global planning often uses search-based or sampling-based algorithms to search for a complete path in the state space, and then smooths the path after planning. Local obstacle avoidance uses dynamic windowing or model predictive control. Energy management often employs a passive strategy of triggering a return to base for charging when the battery level is below a fixed threshold, and continuing the task after charging to a preset percentage. Anomaly handling often triggers a shutdown or return to base when anomalies such as motor overheating are detected, and the original task plan is directly restored and the robot continues to run at a preset speed after the anomaly is resolved.

[0003] However, the existing approach has the following problems: First, the search-first planning paradigm still performs a complete search in a large open area between inspection waypoints, resulting in a tortuous output path that deviates from the ideal straight line between two points. It cannot faithfully reproduce the manually preset inspection route, and since smoothing occurs after collision detection, collisions caused by smoothing expansion cannot be captured. Second, local obstacles trigger the replanning of the entire path, destroying the preset routes in other safe sections and incurring high computational costs. Third, collision detection only applies to static environments and does not consider dynamic obstacles. When the robot runs along the detected path, a dynamic obstacle may happen to occupy the corresponding position at the time of arrival, posing a safety hazard. Fourth, energy management adopts a passive threshold strategy, charging the robot to a preset percentage without co-optimizing with the remaining inspection workload and remaining time window. Furthermore, the charging decision only determines the charging amount and the charging station, without including the charging station and the recovery inspection point after charging is completed in the route planning. The robot lacks feasible paths to the charging station and back to the inspection point, creating planning breakpoints.

[0004] Therefore, how to ensure that the planned path is faithful to the preset inspection route and meets the requirements of kinematic feasibility and spatiotemporal safety when the inspection robot is autonomously inspecting along the preset waypoints, while also dynamically matching the running speed, charging timing, charging amount and round-trip path with the remaining inspection tasks, remaining time window and robot thermal state, has become an urgent problem to be solved. Summary of the Invention

[0005] The main purpose of this application is to provide a path planning and task scheduling method, device, equipment and medium for inspection robots, aiming to solve the technical problem of how to make the path faithful to the preset route and meet the requirements of spatiotemporal safety, and how to dynamically match speed, charging and round-trip path with the remaining tasks, time window and thermal state.

[0006] To achieve the above objectives, this application proposes a path planning and task scheduling method for an inspection robot, including: Obtain the prior key waypoint sequence and the confidence level of each waypoint in the prior key waypoint sequence; Based on the prior key waypoint sequence, straight line segments are generated from adjacent waypoints. Under the constraint of the minimum turning radius of the inspection robot, the inflection points between adjacent straight line segments are continuously smoothed by tangents and then discretized according to a preset sampling step size to obtain candidate trajectories. Obtain the predicted trajectory of the dynamic obstacle, and perform spatiotemporal collision detection on the candidate trajectory and the predicted trajectory to obtain the collision interval; Select collision-free waypoints on both sides of the collision zone as local planning start and end points, generate obstacle bypass sub-paths between the local planning start and end points and obtain the travel time of the obstacle bypass sub-paths, and splice the obstacle bypass sub-paths with the reserved candidate trajectories to obtain the inspection path. Based on the inspection path and the initial power of the inspection robot, the energy budget and time for each section are allocated, and the initial speed curve of the inspection robot is generated. If an abnormal interruption occurs during the operation of the inspection robot and is resolved, the speed curve of the inspection robot is regenerated based on the remaining number of inspection points, the remaining time window, and the passage time. The speed curve of the regenerated speed curve is then corrected by limiting the speed based on the motor temperature of the inspection robot. If the remaining power is insufficient to complete the remaining inspection tasks, the charging amount and charging time are calculated by back-calculating the workload of the remaining inspection tasks.

[0007] Furthermore, to achieve the above objectives, this application also proposes a path planning and task scheduling device for an inspection robot, the path planning and task scheduling device for the inspection robot comprising: The waypoint acquisition module is used to acquire a sequence of prior key waypoints and the confidence level of each waypoint in the sequence of prior key waypoints; The candidate trajectory construction module is used to generate straight line segments based on adjacent waypoints in the prior key waypoint sequence. Under the constraint of the minimum turning radius of the inspection robot, the inflection points between adjacent straight line segments are continuously smoothed by tangents and then discretized according to a preset sampling step size to obtain the candidate trajectory. The spatiotemporal collision detection module is used to acquire the predicted trajectory of dynamic obstacles, perform spatiotemporal collision detection on the candidate trajectory and the predicted trajectory, and obtain the collision interval. The local repair module is used to select non-collision waypoints on both sides of the collision zone as local planning start and end points, generate obstacle bypass sub-paths between the local planning start and end points and obtain the travel time of the obstacle bypass sub-paths, and splice the obstacle bypass sub-paths with the reserved candidate trajectories to obtain the inspection path. The energy-time allocation module is used to allocate the energy budget and time for each segment according to the inspection path and the initial power of the inspection robot, and to generate the initial speed curve of the inspection robot. The scheduling and adjustment module is used to regenerate the speed curve of the inspection robot based on the remaining number of inspection points, the remaining time window, and the passage time after an abnormal interruption occurs during the operation of the inspection robot and the abnormality is resolved. The module also performs speed limit correction on the regenerated speed curve based on the motor temperature of the inspection robot, and calculates the charging amount and charging time based on the workload of the remaining inspection tasks when the remaining power is insufficient to complete the remaining inspection tasks.

[0008] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the steps of the path planning and task scheduling method for the inspection robot as described above.

[0009] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the path planning and task scheduling method for the inspection robot as described above.

[0010] This application uses prior critical waypoints with confidence as input, prioritizing the smoothing of candidate trajectories through straight-line connections and inflection point tangents satisfying minimum turning radius constraints; it integrates dynamic obstacle prediction trajectories for spatiotemporal collision detection, generating obstacle-around sub-paths only locally within the collision zone and stitching them together to obtain the inspection path; based on this, it allocates energy budget and time and generates a speed curve; after anomaly recovery, it re-matches the speed based on remaining tasks, time windows, and passage time, and limits the speed according to motor temperature; when the battery is insufficient, it back-calculates the charging amount and charging time. The beneficial effects include high inspection route fidelity and executability, no missed spatiotemporal collision detection, local obstacles do not disrupt the global route, high energy utilization, robust interruption recovery, and dynamic matching of charging and tasks. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart illustrating the first embodiment of the path planning and task scheduling method for the inspection robot of this application; Figure 2 This is a flowchart illustrating the second embodiment of the path planning and task scheduling method for the inspection robot of this application; Figure 3 This is a schematic diagram of the module structure of the path planning and task scheduling device for the inspection robot in this application; Figure 4 This is a schematic diagram of the hardware operating environment involved in the path planning and task scheduling method of the inspection robot in the embodiments of this application.

[0013] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0014] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0015] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0016] In structured environments such as industrial plants and substations, inspection robots need to autonomously inspect along preset waypoints and complete tasks within time windows. Current navigation systems generally employ a three-layer architecture: search-based global planning, local obstacle avoidance, and motion control. Energy management uses a passive strategy of triggering a return-to-home call when the battery level is low and charging to a fixed percentage, then resuming operation at the original speed after the anomaly is resolved. This results in several problems: search-based planning generates distorted paths in open areas, deviating from the preset inspection route; local obstacles trigger full path replanning; collision detection only applies to static environments and cannot capture potential collisions when dynamic obstacles arrive; charging decisions are disconnected from remaining tasks and time windows, and no route to and from the charging station is planned; interruption recovery does not adjust speed, and thermal anomalies only result in passive shutdown, easily leading to repeated interruptions and task timeouts.

[0017] Based on the above, this application provides a path planning and task scheduling method for an inspection robot, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the path planning and task scheduling method for the inspection robot of this application.

[0018] In this embodiment, the path planning and task scheduling method for the inspection robot includes steps S10 to S60: Step S10: Obtain the prior key waypoint sequence and the confidence level of each waypoint in the prior key waypoint sequence.

[0019] It should be noted that the prior critical waypoint sequence refers to an ordered sequence of waypoints that the inspection robot needs to traverse sequentially, determined before the start of the inspection task. Each waypoint includes its position coordinates and heading angle. The heading angle is the angle between the robot's expected orientation when reaching the waypoint and the reference direction, ranging from 0° to 360°. The confidence level is a numerical value characterizing the reliability of the waypoint, ranging from 0 to 1; a higher value indicates a more reliable waypoint.

[0020] Further, step S10 includes: First, obtaining waypoints through any one or more of manual teaching, visual perception extraction, or large-model semantic reasoning to obtain an initial waypoint sequence. It should be understood that the initial waypoint sequence refers to a set of waypoints obtained through manual teaching, visual perception extraction, or large-model semantic reasoning that has not yet been verified. Each waypoint includes position coordinates, heading angle, and source marker. Specifically, the waypoint source can be manual teaching, where an operator guides the robot along the inspection route, recording key locations and orientations encountered; it can also be visual perception extraction, performing semantic segmentation and target detection on the inspection scene image to identify targets such as instruments and valves that need to be inspected closely, and using nearby dockable locations as waypoints; or it can be large-model semantic reasoning, inputting scene descriptions and inspection requirements into a large language model, converting the output suggested inspection locations into map coordinates.

[0021] Secondly, collision status checks are performed on each waypoint in the initial waypoint sequence, and waypoints in a collision state are removed to obtain the first waypoint sequence. It's important to understand that the first waypoint sequence refers to the set of waypoints remaining after collision status checks and removal of waypoints in a collision state from the initial waypoint sequence. The base confidence level refers to the initial confidence value assigned solely based on the waypoint's source. Specifically, after obtaining the waypoints, their positions are projected onto the environment map for collision status checks. Waypoints falling within an obstacle-occupied area or whose distance from an obstacle is less than the radius of the robot's bounding box (the smallest rectangle or cuboid that can enclose the robot's shape) are considered to be in a collision state and removed. The remaining waypoints constitute the first waypoint sequence.

[0022] Next, the base confidence level for each waypoint is determined based on its source in the first waypoint sequence. This base confidence level is then adjusted based on the distance deviation and heading angle deviation between each waypoint and its adjacent waypoints, resulting in the final confidence level for each waypoint. The confidence level decreases as the distance and heading angle deviations increase. It's important to understand that distance deviation refers to the degree to which the actual distance between a waypoint and its adjacent waypoints deviates from the statistical mean of the distances within the same source sequence; it is expressed as the absolute value of the difference between the two, in meters (m). Heading angle deviation refers to the degree to which the difference in heading angles between adjacent waypoints at a waypoint deviates from the statistical mean of the heading angle differences within the same source sequence; it is also expressed as the absolute value of the difference, in degrees (°). Specifically, each waypoint is marked with a source and assigned an initial confidence level based on its source. For example, 0.9–1.0 is assigned to sources taught manually, 0.6–0.9 to sources extracted through visual perception, and 0.5–0.8 to sources derived through large-scale semantic inference. The values ​​are based on the pass rate of each source in historical inspection tasks; a higher pass rate results in a higher value. During the correction, the actual distance between each waypoint in the first waypoint sequence and its adjacent waypoints is first calculated. The absolute value of the difference between the actual distance and the average distance of the same source sequence is taken as the degree of distance deviation. Then, the absolute value of the difference between the adjacent heading angles at each waypoint and the average difference of the heading angles of the same source sequence is calculated as the degree of heading angle deviation. The two deviations are normalized by dividing by the corresponding statistical mean and then summed with weights. The weight of distance deviation is 0.6 and the weight of heading angle deviation is 0.4. The weights are based on the fact that the impact of abrupt changes in distance on the inspection route is greater than that of abrupt changes in orientation. The weighted result is multiplied by the correction coefficient and then subtracted from the basic confidence level. The correction coefficient is between 0.2 and 0.4. When the correction result is less than 0, it is taken as 0.

[0023] Following each completed historical inspection task, the confidence level is updated based on the pass rate of waypoints from the same source in those tasks. It's important to understand that the pass rate refers to the percentage of waypoints from the same source within the statistical window that pass both collision status verification and on-site review. Specifically, the statistical window contains the most recent 20 inspection tasks. To balance the timeliness of the pass rate estimate with sample stability, the pass rate is the ratio of the number of waypoints from the same source that passed verification to the total number of waypoints from that source. This pass rate is then multiplied by the base confidence level, replacing the original confidence level for the corresponding waypoint, to obtain the updated confidence level.

[0024] Then, for waypoints whose updated confidence level is lower than the preset confidence threshold, a reacquisition command is output to enable the waypoint acquisition unit to reacquire the corresponding waypoints. Finally, waypoints with confidence levels not lower than the preset confidence threshold are arranged in the inspection order to obtain a sequence of prior key waypoints with confidence levels. It is important to understand that the waypoint acquisition unit refers to the functional unit on the robot used to acquire waypoints, which can be a teaching recording module, a visual perception module, or an interface module for interacting with external large models. The reacquisition command is a command sent to the waypoint acquisition unit instructing it to reacquire waypoints at a specified location; the command carries the waypoint location and source marker. The preset confidence threshold is a pre-set lower limit of confidence, ranging from 0.5 to 0.7, determined based on the fact that the confidence levels of waypoints that failed verification in historical data are concentrated below this range. Specifically, the updated confidence level is compared with a preset confidence threshold. Waypoints below the threshold send a reacquisition command to the waypoint acquisition unit. Upon receiving the command, the waypoint acquisition unit reacquires waypoints at the location specified in the command. If reacquisition fails due to field-of-view obstruction or other reasons, the corresponding waypoint is marked as requiring manual confirmation and is not included in subsequent arrangement. Waypoints with confidence levels not lower than the threshold are arranged in the inspection order, and each waypoint retains its own confidence level, resulting in a sequence of prior key waypoints with confidence levels for use in subsequent trajectory construction.

[0025] Step S20: Generate straight line segments based on adjacent waypoints in the prior key waypoint sequence. Under the constraint of the minimum turning radius of the inspection robot, perform tangent continuous smoothing on the inflection points between adjacent straight line segments and then discretize them according to the preset sampling step size to obtain candidate trajectories.

[0026] It should be noted that an inflection point refers to the connection point of two adjacent straight line segments. Tangent continuity and smoothness means connecting the two straight line segments at the inflection point with a transition curve, ensuring that the tangent directions of the trajectories on both sides of the connection are consistent. The minimum turning radius refers to the minimum turning radius allowed by the robot chassis kinematics, determined by the wheelbase and steering mechanism parameters, with a common range of 0.3m to 1.5m. The preset sampling step size refers to the arc length interval between adjacent sampling points during discretization, preset and slightly smaller than the longitudinal length of the robot's bounding box along the travel direction; for example, 0.4m to 0.55m when the longitudinal length is 0.6m. The value is chosen to ensure that the bounding boxes of adjacent sampling points overlap and leave no detection blind spots. A candidate trajectory refers to a complete trajectory composed of straight line segments and inflection point transition curves, which has been discretized but has not yet undergone collision detection.

[0027] Further, step S20 includes: First, generating straight line segments based on adjacent waypoints in the prior key waypoint sequence to obtain an initial trajectory. It is important to understand that the initial trajectory refers to the trajectory consisting only of straight line segments obtained by connecting adjacent waypoints pairwise in the prior key waypoint sequence. Specifically, adjacent waypoints in the prior key waypoint sequence are connected with straight lines to generate straight line segments. The heading angle at each point within a straight line segment is consistent with the direction of travel of that straight line segment, i.e., from the starting point to the ending point. All straight line segments are connected in the inspection sequence to obtain the initial trajectory.

[0028] Secondly, the distances to obstacles around each inflection point on the initial trajectory are obtained. The transition radius of each inflection point is determined based on the obstacle distances and the minimum turning radius of the inspection robot. It's important to understand that obstacle distance refers to the distance between the inflection point and the nearest obstacle, measured in meters (m). The transition radius refers to the radius of the transition curve at the inflection point, also measured in meters. The transition radius is not less than the minimum turning radius and decreases as the obstacle distance decreases within a range not less than the minimum turning radius. Specifically, the inflection point position is projected onto the environmental map, and the distance between the inflection point and the nearest obstacle's grid cell is taken as the obstacle distance. Alternatively, the distance to the nearest obstacle point in the laser point cloud can be used directly. The transition radius is the larger of the minimum turning radius and the obstacle distance reduction value. The obstacle distance reduction value is half the obstacle distance; that is, the smaller the obstacle distance, the smaller the transition radius, but it is not less than the minimum turning radius and does not exceed the maximum allowable transition radius. In this example, for waypoints with confidence levels below the preset confidence threshold, the transition radius is calculated by multiplying the result by a conservative coefficient of 1.2. This value is based on the assumption that the position of low-confidence waypoints may be deviated, allowing for a turning margin.

[0029] Next, for the inflection points between adjacent straight line segments, a smoothed trajectory is obtained by continuously smoothing the tangent using any one of the following methods: circular arc transition, polynomial interpolation, or interpolation-type parametric curve, based on the corresponding transition radius. It's important to understand that a smoothed trajectory refers to the trajectory obtained after continuously smoothing the inflection points with tangents. The rate of change of curvature refers to how quickly the trajectory curvature changes along the arc length, measured in rad / m², reflecting the degree of abruptness of the turn. Specifically, smoothing is performed on each inflection point with a determined transition radius. When using a circular arc transition, an arc is drawn with the transition radius and tangent to the straight line segments on both sides of the inflection point; the straight line segments between the tangent points are replaced by the arc. When using polynomial interpolation or interpolation-type parametric curves, a cubic Bézier curve connects the straight line segments on both sides, with control points taken in the extension direction of the straight line segments on both sides, ensuring that the tangent direction at the connection point is consistent, and the heading angle continuously changes with the tangent direction of the trajectory. After processing all inflection points, a smoothed trajectory is obtained.

[0030] Then, the process of increasing the transition radius and smoothing the tangent line is repeated at the inflection point. This iteration continues until the rate of curvature change is no greater than the preset rate of curvature change threshold or the transition radius reaches the maximum allowable transition radius of the inspection robot, resulting in a verified smooth trajectory. It's important to understand that the preset rate of curvature change threshold refers to a pre-set upper limit for the rate of curvature change, ranging from 1 to 3 rad / m². This value is based on the upper limit of curvature change that the steering mechanism of the inspection robot can track at maximum speed. The maximum allowable transition radius refers to the upper limit of the transition radius, determined by the lengths of the straight segments on both sides of the inflection point. It is taken as half the length of the shorter of the two straight segments, to avoid the transition curve exceeding the range of the straight segments and overlapping with the transition curve of adjacent inflection points. Specifically, the curvature is calculated point by point along the smooth trajectory. The curvature difference between adjacent sampling points is calculated and divided by the arc length interval to obtain the curvature change rate. When the curvature change rate exceeds the preset curvature change rate threshold, the transition radius is increased by a step size and then smoothed again. The step size is 0.1m or 10% of the current transition radius, whichever is larger. The increase and smoothing process is repeated until the curvature change rate is no greater than the threshold or the transition radius reaches the maximum allowable transition radius, thus obtaining a smooth trajectory that has passed the verification.

[0031] Finally, the validated smooth trajectory is uniformly sampled along the arc length at a preset sampling step size. For sections of the validated smooth trajectory where the curvature exceeds a preset curvature threshold, the sampling step size is reduced to obtain discretized candidate trajectories. The preset sampling step size is less than the longitudinal length of the inspection robot's bounding box along the travel direction. It's important to understand that the preset curvature threshold is a pre-set curvature boundary value, taken as 0.8 times the curvature corresponding to the minimum turning radius, chosen to allow for a margin in high-curvature sections. Specifically, the validated smooth trajectory is uniformly sampled along the arc length at a preset sampling step size, recording the position coordinates and heading angle at each sampling point. For sections where the curvature exceeds the preset curvature threshold, the sampling step size is reduced to 1 / 2 of the preset sampling step size; for sections where the curvature further exceeds 1.5 times the preset curvature threshold, the sampling step size is reduced to 1 / 4 of the preset sampling step size. The lower limit of the reduced sampling step size is set to 0.1m, based on balancing detection density and data volume. After sampling, discretized candidate trajectories are obtained.

[0032] Step S30: Obtain the predicted trajectory of the dynamic obstacle, perform spatiotemporal collision detection on the candidate trajectory and the predicted trajectory, and obtain the collision interval.

[0033] It should be noted that dynamic obstacles refer to obstacles whose positions change over time, such as walking inspection personnel or moving work vehicles. Predicted trajectory refers to a sequence of positions over a future period extrapolated from the current position and speed of dynamic obstacles. Spatiotemporal collision detection is a collision detection method that simultaneously compares spatial position and arrival time, i.e., determining whether a point on the trajectory is occupied by an obstacle at the moment the robot arrives at that point. A collision interval refers to a segment on the candidate trajectory consisting of consecutive sampling points in a collision state.

[0034] Further, step S30 includes: First, acquiring the environmental map, the bounding box of the inspection robot, and the current position and velocity of the dynamic obstacles; extrapolating the current position and velocity to generate a predicted trajectory for the dynamic obstacles; and determining the prediction time corresponding to each predicted position on the predicted trajectory. It should be understood that the environmental map can be a two-dimensional grid cost map or a three-dimensional point cloud map. Specifically, the current position and velocity of the dynamic obstacles are estimated by Kalman filtering on consecutive observation frames. Extrapolating using a uniform velocity model with the current position as the starting point and the velocity as the direction, the prediction duration is 5s to 15s, based on the typical time taken for the robot to traverse a single segment; the prediction interval is 0.2s to 0.5s, based on the rate of change of the obstacle's motion; the prediction time corresponding to each predicted position is the current time plus the cumulative product of the prediction interval. The specific formula for representing the predicted position is: in, For obstacles at the predicted time The corresponding predicted location; The current position of the obstacle; The speed of the obstacle; Indicates the first The predicted time corresponding to each predicted location; The current moment; The prediction interval is N; the total number of prediction steps is N, calculated by dividing the prediction duration by 1 / N. Sure; This indicates the prediction step number.

[0035] Secondly, the prediction uncertainty range for each prediction location is determined based on the time difference between each prediction time and the current time. It's important to understand that the prediction uncertainty range refers to the spatial area centered on the prediction location, representing the possible deviation from the predicted location. It can be a circular region with a radius that increases over time, and the prediction uncertainty range increases with the time difference. In this example, the specific formula for calculating the prediction uncertainty range is: in, For the predicted time The corresponding radius of the prediction uncertainty range; The base radius is the radius of the circumcircle of the obstacle. In this example, the radius is 0.3m to 0.5m for pedestrians and 1.0m to 1.5m for work vehicles. The expansion coefficient is taken as 0.1 m / s to 0.3 m / s in this example. The value is based on the statistical results of the deviation between the extrapolated position and the actual position of the obstacle in historical inspections. The larger the time difference, the greater the expansion.

[0036] Next, the estimated arrival time to each discrete point on the candidate trajectory is calculated based on the inspection robot's operating speed. It's important to understand that the estimated arrival time refers to the moment the robot, starting from its current position and traveling along the candidate trajectory at its current speed, reaches a specific discrete point. Specifically, starting from the beginning of the candidate trajectory, the arc lengths between adjacent discrete points are added to obtain the cumulative arc length for each discrete point. This cumulative arc length is then divided by the inspection robot's operating speed to obtain the estimated arrival time to each discrete point. The specific formula is as follows: in, To reach the first candidate trajectory The estimated arrival time of each discrete point; For the first The and the first The arc length between discrete points; The target speed is the speed at the corresponding position in the initial speed curve. If no speed curve is generated, the preset cruise speed is used. The preset cruise speed is 0.8m / s to 1.2m / s, based on the common operating speed in the inspection scenario.

[0037] Then, for each discrete point on the candidate trajectory, the predicted position on the predicted trajectory corresponding to the expected arrival time of the discrete point, the predicted uncertainty range of the predicted position, the environmental map, and the bounding box are compared. Discrete points in a collision state are marked, and the collision time period corresponding to the discrete point is recorded. The determination that a discrete point is in a collision state is that the bounding box of the inspection robot and the predicted uncertainty range corresponding to the predicted position of the dynamic obstacle spatially overlap. It should be understood that the collision time period refers to the start and end time interval of the dynamic obstacle occupying the position of a certain discrete point in space, which is determined by the predicted time sequence when the predicted trajectory and the robot bounding box overlap. Specifically, for each discrete point, the robot bounding box is placed according to the position and heading angle of the discrete point, and compared with the occupied grid in the environmental map. If the bounding box covers the occupied grid, a static collision is determined. At the same time, the predicted position corresponding to the expected arrival time is taken out, and a circular area is formed by the predicted position and the predicted uncertainty range. It is determined whether the circular area and the bounding box spatially overlap. If they overlap, a dynamic collision is determined. If either a static collision or a dynamic collision occurs, the discrete point is marked as being in a collision state, and the corresponding collision time period is recorded. The collision time period is taken from the first prediction time when the obstacle and the bounding box overlap on the predicted trajectory to the last prediction time.

[0038] Finally, the set of continuously marked discrete points is determined as the initial collision interval, and the collision time interval is associated with the initial collision interval to obtain the collision interval carrying the collision time interval. It is important to understand that the initial collision interval refers to the set of continuously marked discrete points on the candidate trajectory, without any associated time information. Specifically, the set of continuously marked discrete points on the candidate trajectory is determined as the initial collision interval. The union of the collision time intervals of each discrete point within the interval is taken and associated with the initial collision interval to obtain the collision interval carrying the collision time interval, which is then output to the local repair step and the time-energy scheduling layer.

[0039] Step S40: Select non-collision waypoints on both sides of the collision zone as the start and end points of local planning, generate obstacle bypass sub-paths between the start and end points of local planning and obtain the travel time of the obstacle bypass sub-paths, and splice the obstacle bypass sub-paths with the reserved candidate trajectories to obtain the inspection path.

[0040] It should be noted that the local planning start and end points refer to the nearest non-collision waypoints on either side of the collision zone, serving as the start and end points of the local search, respectively. The obstacle avoidance sub-path refers to the local path generated between the local planning start and end points to bypass the collision zone. Travel time refers to the time required for the robot to traverse the obstacle avoidance sub-path at the planned speed. The inspection path refers to the complete executable path output after repairs are completed.

[0041] Further, step S40 includes: First, selecting the nearest collision-free waypoints on both sides of the collision interval as the local planning start and end points, deleting the collision segment between the local planning start and end points, and retaining the safe trajectory segments before and after the collision segment. It should be understood that a collision segment refers to a trajectory segment on the candidate trajectory located between the local planning start and end points and containing the collision interval. A safe trajectory segment refers to the portion of the candidate trajectory before and after the collision segment that has not been deleted. Specifically, starting from both ends of the collision interval, searching forward and backward along the candidate trajectory, selecting the nearest collision-free waypoints as the local planning start and end points, deleting the collision segment between the two local planning start and end points, retaining the safe trajectory segments before and after the collision segment, and leaving the preset inspection routes for the remaining segments unaffected.

[0042] Secondly, for the segment between the start and end points of the local planning, a search algorithm is used to generate multiple initial sub-paths. It's important to understand that initial sub-paths refer to unfiltered and unsmoothed sub-paths generated by the search algorithm between the start and end points of the local planning. Specifically, for the segment between the start and end points of the local planning, a weighted A* algorithm is used for local search. By setting different heuristic weights, multiple initial sub-paths are obtained. The heuristic weights are set to 1.0, 1.5, and 2.0, respectively. Higher weights result in faster search speeds but the paths are closer to a greedy algorithm. Three sets of weights correspond to three initial sub-paths. Alternatively, a hybrid A* algorithm can be used for direct search. The grid resolution is set to 0.1m to 0.2m, based on the bounding box size and obstacle description accuracy.

[0043] Next, based on the collision time interval carried by the collision interval, initial sub-paths that are still in a collision state with the predicted trajectory of the dynamic obstacle during the collision time interval are eliminated, resulting in a set of feasible sub-paths. It's important to understand that the set of feasible sub-paths refers to the set of sub-paths remaining after removing sub-paths from multiple initial sub-paths that will still collide in the time dimension. Specifically, for each initial sub-path, the estimated arrival time at each path point on the sub-path is compared with the collision time interval carried by the collision interval. If a sub-path still spatially overlaps with the predicted trajectory of the dynamic obstacle and its prediction uncertainty range during the collision time interval, then that sub-path is eliminated, and the remaining sub-paths constitute the set of feasible sub-paths. If the set of feasible sub-paths is empty, it means that detours are not possible in a short time, and the local planning start and end points at both ends of the collision interval are extended outward by one waypoint, and the search is restarted.

[0044] Then, the sub-paths in the feasible sub-path set are sorted according to the comprehensive cost, which is obtained by weighting the path length and estimated travel time. The sub-path with the lowest comprehensive cost is selected for line-of-sight pruning and tangent smoothing to obtain the obstacle-around sub-path and its travel time. It's important to understand that the comprehensive cost is an evaluation value obtained by weighting the path length and estimated travel time, used to compare the merits of each sub-path. Line-of-sight pruning refers to checking each point from the sub-path's starting point; if there is no collision between two points on a straight line, redundant points in the intermediate path are removed. The specific formula for calculating the comprehensive cost is: in, For the first feasible sub-path in the set The path length of the sub-path. For the first Estimated travel time for the strip route, This represents the maximum path length of all sub-paths in the feasible sub-path set. The maximum estimated travel time for each sub-path. , These are the normalized path length and the estimated travel time, respectively. Normalization is used to eliminate the difference between the two dimensions. For the first The smaller the overall cost of the sub-path, the better; The path length weight is set to 0.4; The weight for passage time is set to 0.6, and the sum of the two is 1. The weight is based on the fact that the inspection task is constrained by the remaining time window, the impact of passage time on task completion is greater than that of path length, and the remaining time window is less than 1.2 times the sum of the times of each segment. Upgraded to 0.8 The corresponding value is adjusted to 0.2. The sub-path with the lowest overall cost is selected for line-of-sight pruning, and then tangent smoothing is performed according to the arc transition to obtain the obstacle bypass sub-path. The travel time is obtained by summing the arc lengths of each segment of the obstacle bypass sub-path divided by the planned speed.

[0045] Finally, the gap corresponding to the collision segment inserted into the bypass path is spliced ​​with the safe trajectory segment. The spliced ​​joint is then tangentially fused continuously, and the local collision state after splicing is re-inspected to obtain the inspection path. It's important to understand that the spliced ​​joint refers to the connection point between the bypass path and the safe trajectory segment. The preset retry threshold is the upper limit of the number of times a local repair can be repeatedly attempted, typically between 3 and 5 times. This value is chosen to balance repair success rate and real-time performance; too many attempts will delay task execution. Specifically, the path around the obstacle is inserted into the gap corresponding to the collision segment and spliced ​​with the safe trajectory segment. Tangential continuity is performed at the splicing seam. The seam is considered continuous when the positional deviation is no more than 0.05m and the heading angle deviation is no more than 5°. If the conditions are not met, a cubic Bézier curve is used for transition. After fusion, the collision status of the spliced ​​local trajectory is rechecked according to the bounding box, environment map and predicted trajectory. If it passes, the inspection path is output. If the recheck fails, the local repair is re-executed. If the number of retries reaches the preset retry threshold and still fails, the candidate trajectory is discarded. The hybrid A* algorithm is called to perform a global search with the first and last waypoints of the prior key waypoint sequence as the start and end points to generate a complete path as a fallback.

[0046] Step S50: Allocate energy budget and time for each section according to the inspection path and the initial power of the inspection robot, and generate the initial speed curve of the inspection robot.

[0047] It should be noted that a "segment" refers to multiple path segments obtained by dividing the inspection path according to path length and terrain complexity. The energy budget refers to the maximum amount of electricity allocated to each segment, which the segment's operating energy consumption must not exceed. The initial speed curve is a curve generated before the mission begins, providing the operating speed of targets at various locations along the inspection path. Terrain complexity is a coefficient characterizing the ease of passage through a segment; it is set based on slope and ground material, with a value ranging from 1.0 to 2.0; the higher the value, the more energy is required for passage. Initial battery power refers to the remaining battery power at the start of the mission.

[0048] Specifically, the initial battery level is acquired and converted into total available energy. The total time window for the task is determined, and the total energy and time are allocated proportionally to the path length and terrain complexity of each segment, resulting in the energy budget and time for each segment. Subsequently, an initial speed curve is generated under constraints: the preset maximum speed is set to 1.0 m / s to 1.5 m / s, based on the factory's speed limits; the preset maximum acceleration and preset jump are set according to the robot chassis's execution capabilities, ensuring that the running time of each segment does not exceed the allocated time and the estimated energy consumption does not exceed the energy budget. The energy consumption estimate is obtained by calculating the traction power segment by segment based on the speed curve and integrating it over time. If the estimated total energy consumption exceeds the total energy, the cruising speed is reduced and the curve is regenerated.

[0049] Step S60: If an abnormal interruption occurs during the operation of the inspection robot and the abnormality is resolved, the speed curve of the inspection robot is regenerated based on the remaining number of inspection points, the remaining time window and the passage time. The speed curve of the regenerated speed curve is corrected by limiting the speed based on the motor temperature of the inspection robot. If the remaining power is insufficient to complete the remaining inspection tasks, the charging amount and charging time are calculated by back-calculating the workload of the remaining inspection tasks.

[0050] It should be noted that abnormal interruption refers to a protective action that causes the robot to pause operation due to conditions such as motor temperature or battery power exceeding limits. Remaining inspection points refer to the number of waypoints that have not yet been inspected. The remaining time window refers to the time between the current moment and the required completion time of the task. Motor temperature refers to the real-time temperature of the drive motor windings, collected by a temperature sensor. Charge amount refers to the amount of electricity that needs to be replenished. Charging time refers to the time required to charge the required amount at the current charging power.

[0051] Further, step S60 includes: First, monitoring the operating status of the inspection robot in real time, classifying and handling it according to the severity of the anomaly; for minor anomalies, degrading operation; for moderate anomalies, triggering a protective interruption and recording the interruption time and location; for severe anomalies, emergency shutdown and return to base; and triggering a recovery process after the anomaly is resolved. It is important to understand that degrading operation refers to limiting the operating speed to continue executing the task. A protective interruption refers to pausing operation and maintaining the current position while waiting for the anomaly to be resolved. Interruption time refers to the time consumed from triggering the protective interruption to resuming operation. Specifically, the system collects real-time data on motor temperature, driver temperature, battery level, ambient temperature, and communication status. A motor temperature between 60°C and 70°C or a battery level below 30% of the total battery level is considered a minor anomaly, and the speed is limited to 70% of the preset maximum speed for continued operation. A motor temperature between 70°C and 80°C is considered a moderate anomaly, triggering a protective interruption and recording the interruption time and location. A motor temperature exceeding 80°C, a communication interruption lasting more than 10 seconds, or a battery level below 10% of the total battery level is considered a severe anomaly, triggering an emergency shutdown and return to base. These limits are set based on the motor insulation level and battery discharge characteristics. During a moderate anomaly, continuous monitoring is performed, and a recovery process is triggered once the parameters return to the normal range.

[0052] Secondly, the interruption time is determined based on the interruption time and location. This interruption time, along with the travel time, is included in the total time consumption. The shortest and longest running times to complete the remaining inspection tasks are estimated based on the remaining number of inspection points and the remaining path length. If the actual travel around the obstacle sub-path has already been completed, the actual travel time is used instead of the travel time in the total time consumption. It's important to understand that the shortest running time refers to the time required to complete the remaining inspection tasks at the maximum permissible speed, while the longest running time refers to the time required to complete the remaining inspection tasks at the preset economic speed. The preset economic speed is a pre-set operating speed with the lowest energy consumption per unit distance, ranging from 0.5 m / s to 0.8 m / s, based on the lowest point of the robot's power-speed curve. Specifically, the interruption time is obtained by adding the difference between the recovery time and the interruption time to the time taken to return from the current position to the interruption position. It is included in the time consumption along with the travel time of the bypass sub-path. If the actual travel time of the bypass sub-path has been completed, the estimated travel time is replaced by the actual travel time. The remaining path length is obtained by adding the arc lengths of the remaining sections. The shortest running time is estimated by dividing the remaining path length by the maximum allowable speed and adding the operation time of each remaining inspection point. The longest running time is estimated by dividing the remaining path length by the preset economic speed and adding the operation time.

[0053] Next, the remaining time window is compared with the shortest and longest running times. If the remaining time window is less than the shortest running time, a warning is issued that the task cannot be completed, and lower-priority inspection points are suggested to be skipped based on the inspection point priority. If the remaining time window is between the shortest and longest running times, the average cruising speed is calculated. If the remaining time window is greater than the longest running time, the speed curve of the inspection robot is regenerated using a preset economic speed, resulting in an updated speed curve. It's important to understand that inspection point priority refers to the pre-set importance level for each inspection waypoint, ranging from 1 to 3, with lower values ​​indicating higher priority. The updated speed curve refers to the speed curve regenerated after the interruption recovery based on the comparison results of the three scenarios. Specifically, when the remaining time window is less than the minimum running time, an alert is issued that the task cannot be completed, and a list of suggested skipped inspection points is provided. The skipping order is arranged from low to high inspection point priority. If skipping 3 levels of inspection points is still insufficient, then skipping 2 levels is suggested. When the remaining time window is between the minimum and maximum running time, the average cruising speed is calculated by dividing the remaining path length by the remaining time window and is limited to between the minimum and maximum permissible speeds. When the remaining time window is greater than the maximum running time, the system operates at a preset economic speed. Based on this, the speed curves for each remaining segment are regenerated according to trapezoidal speed planning. The acceleration and deceleration segments satisfy preset maximum acceleration and preset jump constraints, resulting in updated speed curves.

[0054] Next, based on the predicted heat accumulation trend of the inspection robot's motor temperature, when the heat accumulation trend exceeds a preset temperature threshold, the update speed curve is corrected by speed limiting, resulting in a corrected speed curve. It's important to understand that the heat accumulation trend refers to the motor temperature change curve over a future period extrapolated from the current motor temperature and temperature rise rate. The preset temperature threshold is a pre-set motor temperature speed limit, typically between 75℃ and 80℃, based on the allowable operating temperature corresponding to the motor's insulation class, with a margin of 5℃ to 10℃. Specifically, the heat accumulation trend is extrapolated using a first-order thermal model. Starting from the current motor temperature, the motor temperature over the next 10 to 20 minutes is calculated based on the power loss corresponding to the current and the motor's thermal time constant. The thermal time constant is taken from the motor's factory parameters, with a typical value of 5 to 15 minutes. When the extrapolated temperature exceeds the preset temperature threshold, the speed in the corresponding time period of the update speed curve is multiplied by a speed limiting coefficient of 0.6 to 0.8; the coefficient decreases as the temperature exceeds the threshold, resulting in the corrected speed curve.

[0055] Then, based on the speed curve after speed limit correction, the remaining energy consumption is estimated. If the remaining power is insufficient to complete the remaining inspection tasks, a charging station is selected based on the predicted queuing time of available charging stations and the arrival path length. The selected charging station and the recovery inspection point after charging completion are added as new waypoints and inserted into the prior critical waypoint sequence. The charging path to the charging station and the recovery inspection path after charging completion are generated based on the prior critical waypoint sequence after the insertion of the new waypoints. It is important to understand that the queuing time prediction refers to the estimated waiting time of available charging stations. The recovery inspection point is the first uncompleted inspection waypoint to resume inspection after charging completion. The charging path is the path from the current location to the charging station, and the recovery inspection path is the path from the charging station to the recovery inspection point. Specifically, based on the corrected speed curve, the remaining energy consumption is estimated. If the remaining power is insufficient to complete the remaining inspection tasks, the queuing time for each available charging station is predicted. The queuing time is estimated by multiplying the number of robots queuing in front of the station by the average charging time of each vehicle. The average charging time is taken as the average of historical charging records. The charging station with the smallest sum of queuing time and travel time (divided by the travel speed) is selected. The charging station location and the restored inspection point are added as new waypoints and inserted into the prior critical waypoint sequence. The steps of candidate trajectory construction and local repair mentioned above are reused for the inserted sequence to generate the charging path and the restored inspection path. The specific formula for selecting the charging station is as follows: in, The selected charging station number; This refers to the serial number of the available charging station; To iterate through all available charging stations, find the one with the shortest total time; For the first Predicted queuing time for each charging station; To travel from the robot's current location to the... The path length to each charging station; This represents the robot's current speed. For the first The number of robots queuing to charge at each charging station; The average charging time for each robot is the average of historical charging records.

[0056] Finally, the minimum energy requirement is estimated based on the workload of the remaining inspection tasks, the estimated energy consumption of the charging route, and the estimated energy consumption of the restored inspection route. The charging amount and charging time are then calculated based on this minimum energy requirement. It's important to understand that the minimum energy requirement refers to the minimum amount of electricity required to complete the remaining inspection tasks and travel to and from the charging station. The specific calculation formula is as follows: in, This is the minimum energy requirement, which is the minimum amount of electricity needed to complete the remaining inspection tasks and travel to and from the charging station. The safety margin factor is set between 1.1 and 1.15, and the value is based on historical statistics of energy consumption prediction errors. The estimated energy consumption for the remaining inspection tasks, i.e. the energy required to complete the remaining sections and perform the work actions according to the corrected speed curve; The estimated energy consumption for the charging route, i.e. the energy required to travel from the current location to the selected charging station; The estimated energy consumption for restoring the inspection route, i.e. the energy required to return from the charging pile to the restored inspection point after charging is completed; This refers to the amount of charge. This is the current remaining battery level; Indicates charging time; This indicates the rated charging power of the charging station; This represents the charging efficiency coefficient, ranging from 0.85 to 0.9. The value is based on the nominal charging efficiency of the charging pile and the battery. The charging power is monitored during the charging process, and charging stops when the charging capacity is reached.

[0057] This embodiment uses prior key waypoints with confidence as input, and prioritizes constructing candidate trajectories by connecting straight lines and smoothing inflection point tangents that satisfy minimum turning radius constraints. It then integrates predicted dynamic obstacle trajectories for spatiotemporal collision detection, generating obstacle-around sub-paths only locally within the collision zone and stitching them together to obtain the inspection path. Based on this, it allocates energy budget and time and generates a speed curve. After anomaly recovery, it re-matches the speed based on remaining tasks, time windows, and passage time, and limits the speed according to motor temperature. When battery power is insufficient, it back-calculates the charging amount and charging time. The beneficial effects include high inspection route fidelity and executability, no missed spatiotemporal collision detection, local obstacles not disrupting the global route, high energy utilization, robust interruption recovery, and dynamic matching of charging and tasks.

[0058] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 The path planning and task scheduling method S50 of the inspection robot further includes steps S201 to S205: Step S201: Divide the inspection path into multiple sections according to the path length and terrain complexity. Determine the total energy based on the initial battery level of the inspection robot. Allocate the total energy and total time according to the ratio of the path length and terrain complexity of each section to obtain the energy budget and time for each section.

[0059] It should be noted that total energy refers to the electrical power available for travel and operation during this inspection mission. It is obtained by multiplying the initial electrical power by the availability coefficient, which is between 0.85 and 0.9. The basis for this value is to reserve 10% to 15% of the safe electrical power to prevent power depletion during the journey. Total time refers to the duration available for travel within the mission time window after deducting the sum of the operation time at each inspection point. In this example, the division of sections is based on prior key waypoints as boundaries. The inspection path between two adjacent waypoints constitutes one section. The terrain complexity is assigned a value based on the slope and ground material within the section, ranging from 1.0 to 2.0. A value of 1.0 is used for flat, hard surfaces, and 1.5 to 2.0 is used for slopes or soft surfaces.

[0060] Specifically, firstly, the inspection path is divided into multiple segments using prior critical waypoints as dividing points. The path length of each segment is obtained by adding the arc lengths between sampling points within the segment. The terrain complexity is assigned a value based on the slope and ground material within the segment, using a table. If the slope or material is inconsistent within a segment, the average value is taken by weighting the lengths of various segments. Then, the total energy and total time are determined. The total energy is obtained by multiplying the initial power supply by the available coefficient. The total time is obtained by subtracting the sum of the operation times of each inspection point from the task time window. The operation time is preset according to the detection items at each inspection point, ranging from 30s to 120s per inspection point, based on the typical time consumption of instrument readings, infrared temperature measurement, and other detection items. Finally, the energy and time are allocated proportionally. The allocation ratio for each segment is determined by the workload coefficient obtained by multiplying the segment path length by the terrain complexity. The specific formula for energy budget and time allocation is as follows: in, , The first Energy budget and time for each section; Total energy; Total time; For the first The path length of each segment; For the first The terrain complexity of each section; Number of segments; This is the sum of the workload coefficients for all sections; the larger the workload coefficient, the more energy budget and time are allocated.

[0061] Step S202: Determine the upper limit of the permissible speed for each segment based on the curvature of each segment.

[0062] It should be noted that the maximum permissible speed refers to the highest speed at which the robot is allowed to operate within a section, measured in m / s. This speed is determined by the lateral acceleration constraints corresponding to the curvature of the section. Curvature is a measure of the degree of trajectory bending; its value is equal to the reciprocal of the instantaneous turning radius at the current location, measured in 1 / m. A higher curvature indicates a sharper bend, while the curvature of a straight section is 0.

[0063] Specifically, for each sampling point within a section, the curvature of that point is obtained by dividing the difference in heading angle between the two adjacent sampling points by the arc length between them. The curvature of the section is taken as the maximum value of the curvature of all sampling points within the section. The basis for taking the maximum value is to determine the speed limit level of the entire section based on the location of the sharpest turn, so as to avoid local sharp turns being masked by averaging. Then, the allowable speed limit is calculated from the curvature. The conversion is based on lateral acceleration constraints, and the specific formula is as follows: in, For the first The maximum permissible speed limit for each section; For the first The curvature of each segment; The permissible lateral acceleration is set at 0.3 m / s² to 0.5 m / s², based on the adhesion conditions of the wheeled chassis and the stability of the load, to prevent sideslip or cargo overturning during turns. The preset maximum speed is used for straight sections with curvature close to 0. The square root term is very large, and the upper limit of the speed is capped by the preset maximum speed. For sections with greater curvature, the square root term acts as a limit.

[0064] Step S203: Based on the collision time period, reserve avoidance waiting time in the time segment corresponding to the collision time period to obtain the updated time of each segment.

[0065] It should be noted that the avoidance waiting time refers to the waiting period reserved in a time segment to avoid dynamic obstacles, measured in seconds. It corresponds to the period when the dynamic obstacle occupies the trajectory, and the robot needs to decelerate or pause briefly. The updated time for each segment refers to the result after adding the avoidance waiting time to the segment allocation time.

[0066] Specifically, first, the segments corresponding to the avoidance waiting time are determined. The start and end times of the robot's passage through each segment are calculated based on the estimated arrival time. If a collision time period overlaps with the start and end times of a certain segment, that collision time period is determined to belong to the corresponding segment. The same segment may fall into multiple collision time periods, which are processed one by one. Then, the avoidance waiting time is calculated. For each collision time period falling into a segment, the avoidance waiting time is the length of the overlapping portion plus a safety margin. The safety margin is 2s to 5s, based on the statistical deviation between the actual passage time of the dynamic obstacle and the predicted time. The avoidance waiting time of a segment is the sum of the avoidance waiting times corresponding to all collision time periods within the segment. The specific formula is: in, For the first Waiting time for each section to avoid obstacles; The first in the district The duration of the overlap between the collision time period and the start and end times of the segment; To provide a safety margin, a value of 2s to 5s is used. The value is based on historical statistics of the deviation between the actual time of passage of the dynamic obstacle and the predicted time, in order to cover the deviation caused by inaccurate prediction. For the first Time allocated to each segment; For the updated number The time for each segment.

[0067] Step S204: Under the conditions of satisfying the preset maximum speed, preset maximum acceleration and preset jolt constraints and not exceeding the allowable speed limit of each segment, generate an initial speed curve in which the running time of each segment does not exceed the updated time of each segment and the running energy consumption does not exceed the energy budget of each segment.

[0068] It should be noted that the preset maximum acceleration refers to the pre-set upper limit of acceleration, ranging from 0.5 m / s² to 1.0 m / s², and the value is determined based on the chassis driving capability and ground adhesion conditions. The preset jerk refers to the pre-set upper limit of the rate of change of acceleration, i.e., the jerk, ranging from 0.5 m / s³ to 1.0 m / s³, and the value is determined based on the stability requirements for passenger and cargo transport and the response capability of the actuators. The initial velocity curve is generated according to trapezoidal velocity planning, which refers to a planning method in which each segment consists of three segments: an acceleration segment, a constant speed segment, and a deceleration segment, forming the velocity curve.

[0069] Specifically, the target speed for each segment is first determined. The initial value of the segment target speed is the cruising speed. The cruising speed is calculated by working backward from the segment allocation time, that is, the segment path length is divided by the updated segment time, and then compared with the upper limit of the allowed speed and the preset maximum speed. The minimum value of the three is taken as the segment target speed.

[0070] Then, a trapezoidal velocity curve is generated. For each segment, the vehicle accelerates from the segment entrance velocity to the target velocity with a preset maximum acceleration, travels at a constant speed, and then decelerates to the segment exit velocity with a preset maximum acceleration. The rate of change of acceleration does not exceed a preset jump, that is, the beginning and end of acceleration and deceleration are made into an arc transition. The segment entrance and exit velocities are taken as the smaller value among the target velocities of adjacent segments to ensure the continuity of velocity at the segment connection.

[0071] Next, time and energy consumption are verified. Time verification calculates the running time based on the actual curve of the segment and compares it with the updated segment time. If the time exceeds the limit, the target speed is increased and regenerated within the limit of the allowable speed limit. Energy consumption verification calculates the segment's running energy consumption by multiplying the traction power of each sampling interval within the segment by the time interval and summing the results. This is then compared with the segment's energy budget. If the energy exceeds the budget, the target speed is reduced and regenerated. These two types of verification are iterated repeatedly, with 3 to 5 iterations. If the requirements cannot be met simultaneously after reaching the required number of iterations, the segment is recorded and the excess is reported. After all segments pass the time and energy consumption verification, the speed curves of each segment are connected by arc length to obtain the initial speed curve.

[0072] Step S205: Estimate the total energy consumption based on the initial speed curve. When the total energy consumption exceeds the total energy, reduce the cruising speed and regenerate the initial speed curve.

[0073] It should be noted that total energy consumption refers to the estimated total energy consumed to complete the entire inspection mission according to the initial speed curve, including the energy consumption of driving in each section and the energy consumption of operation at each inspection point. Cruise speed refers to the target speed used in the constant speed section of the segment, and it is used as a global adjustment variable in energy consumption control.

[0074] Specifically, the first step is to estimate the total energy consumption. The energy consumption for each section is calculated segment by segment using the energy consumption formula mentioned above and then summed. The energy consumption for operation is calculated by multiplying the power of the testing equipment at each inspection point by the operation time and then summing the two parts together to obtain the total energy consumption.

[0075] Then, the values ​​are compared and adjusted. The total energy consumption is compared with the total energy. If the total energy consumption is not exceeded, the initial speed curve is output directly. If the total energy consumption is exceeded, the cruising speed is reduced and the initial speed curve is regenerated. The cruising speed is reduced by 5% to 10% each time. The reason for the reduction is that the driving energy consumption changes approximately with the square of the speed. A small reduction in speed can bring about a significant decrease in energy consumption. After regenerating, the total energy consumption is estimated again and compared. The number of iterations is 3 to 5.

[0076] When the iteration reaches the maximum number of iterations and still exceeds the total energy, the speed reduction will stop. It is determined that the initial power is insufficient to complete the task. The power shortage is recorded and the charging decision process is initiated. The charging decision process is the same as the previous process of calculating the charging amount based on the remaining task workload. When the reduced cruising speed is lower than the minimum allowable operating speed, the speed reduction will also stop to avoid the time constraint not being met due to low-speed driving.

[0077] This embodiment divides the inspection path into multiple segments based on path length and terrain complexity, allocating energy budget and time proportionally; determines the allowable speed limit based on segment curvature; reserves avoidance waiting time in corresponding segments according to collision time periods; generates initial speed curves for each segment that do not exceed time or energy consumption limits under multiple constraints; and reduces cruising speed and iteratively regenerates the curves when total energy consumption exceeds the total energy. The beneficial effects include proactive allocation of energy and time based on task load, advance speed limits on curves, reserved waiting time during dynamic obstacle periods, immediate execution upon speed curve generation, and early identification of battery depletion risks, thus improving on-time task completion rate and energy utilization.

[0078] Based on the first embodiment of this application, this application also provides a path planning and task scheduling device for an inspection robot. Please refer to... Figure 3 The device includes: The waypoint acquisition module 10 is used to acquire the prior key waypoint sequence and the confidence level of each waypoint in the prior key waypoint sequence.

[0079] The candidate trajectory construction module 20 is used to generate straight line segments based on adjacent waypoints in the prior key waypoint sequence. Under the constraint of the minimum turning radius of the inspection robot, the inflection points between adjacent straight line segments are continuously smoothed by tangents and then discretized according to a preset sampling step size to obtain the candidate trajectory.

[0080] The spatiotemporal collision detection module 30 is used to acquire the predicted trajectory of dynamic obstacles, perform spatiotemporal collision detection on the candidate trajectory and the predicted trajectory, and obtain the collision interval.

[0081] The local repair module 40 is used to select non-collision waypoints on both sides of the collision zone as the start and end points of local planning, generate obstacle bypass sub-paths between the start and end points of local planning and obtain the travel time of the obstacle bypass sub-paths, and splice the obstacle bypass sub-paths with the retained candidate trajectories to obtain the inspection path.

[0082] The energy-time allocation module 50 is used to allocate the energy budget and time for each section according to the inspection path and the initial power of the inspection robot, and to generate the initial speed curve of the inspection robot.

[0083] The scheduling and adjustment module 60 is used to regenerate the speed curve of the inspection robot based on the remaining number of inspection points, the remaining time window, and the passage time after an abnormal interruption occurs during the operation of the inspection robot and the abnormality is cleared. The module also performs speed limit correction on the regenerated speed curve based on the motor temperature of the inspection robot, and calculates the charging amount and charging time based on the workload of the remaining inspection tasks when the remaining power is insufficient to complete the remaining inspection tasks.

[0084] The path planning and task scheduling device for inspection robots provided in this application adopts the path planning and task scheduling method for inspection robots in the above embodiments. It can solve the technical problem of how to ensure the path faithfully follows the preset route while meeting spatiotemporal safety requirements, and how to dynamically match speed, charging, and round-trip routes with remaining tasks, time windows, and thermal states. Compared with the prior art, the beneficial effects of the path planning and task scheduling device for inspection robots provided in this application are the same as those of the path planning and task scheduling method for inspection robots provided in the above embodiments. Furthermore, other technical features in the path planning and task scheduling device for inspection robots are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0085] This application provides a path planning and task scheduling device for an inspection robot. The path planning and task scheduling device for the inspection robot includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the path planning and task scheduling method for the inspection robot in the first embodiment described above.

[0086] The following is for reference.Figure 4 The diagram illustrates a structural schematic of a path planning and task scheduling device suitable for implementing the inspection robot in the embodiments of this application. The path planning and task scheduling device for the inspection robot in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), vehicle terminals (e.g., vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The path planning and task scheduling device for the inspection robot shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0087] like Figure 4 As shown, the path planning and task scheduling device of the inspection robot may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the inspection robot's path planning and task scheduling device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the path planning and task scheduling equipment of the inspection robot to exchange data wirelessly or via wired communication with other devices. Although various path planning and task scheduling devices for inspection robots are shown in the figures, it should be understood that implementation or possession of all of them is not required. More or fewer may be implemented alternatively.

[0088] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0089] The path planning and task scheduling device for inspection robots provided in this application adopts the path planning and task scheduling method for inspection robots in the above embodiments. It can solve the technical problem of how to make the path faithful to the preset route and meet the requirements of spatiotemporal safety, and how to dynamically match speed, charging, and round-trip path with the remaining tasks, time window, and thermal state. Compared with the prior art, the beneficial effects of the path planning and task scheduling device for inspection robots provided in this application are the same as the beneficial effects of the path planning and task scheduling method for inspection robots provided in the above embodiments. Moreover, other technical features in the path planning and task scheduling device for inspection robots are the same as the features disclosed in the previous embodiment method, and will not be repeated here.

[0090] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0091] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0092] This application provides a computer-readable medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the path planning and task scheduling method of the inspection robot in the above embodiments.

[0093] The computer-readable medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, or any combination thereof. More specific examples of computer-readable media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable medium may be any tangible medium containing or storing a program that can be executed by instructions, used by a device, or used in conjunction with it. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0094] The aforementioned computer-readable medium may be included in the path planning and task scheduling equipment of the inspection robot; or it may exist independently and not be installed in the path planning and task scheduling equipment of the inspection robot.

[0095] The aforementioned computer-readable medium carries one or more programs that, when executed by the path planning and task scheduling device of the inspection robot, enable the path planning and task scheduling device to write computer program code for performing the operations of this application in one or more programming languages ​​or a combination thereof. These programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of this application. In this regard, all blocks in the flowcharts or block diagrams may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that all blocks in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using dedicated hardware-based implementations that perform the specified functions or operations, or using a combination of dedicated hardware and computer instructions.

[0097] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0098] The readable medium provided in this application is a computer-readable medium that stores computer-readable program instructions (i.e., a computer program) for executing the path planning and task scheduling method of the inspection robot described above. This solves the technical problem of how to ensure the path faithfully adheres to a preset route while meeting spatiotemporal safety requirements, and how to dynamically match speed, charging, and round-trip paths with remaining tasks, time windows, and thermal states. Compared with the prior art, the beneficial effects of the computer-readable medium provided in this application are the same as those of the path planning and task scheduling method of the inspection robot provided in the above embodiments, and will not be repeated here.

[0099] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the path planning and task scheduling method for the inspection robot described above.

[0100] The computer program product provided in this application can solve the technical problem of how to make the path faithful to the preset route and meet the requirements of spatiotemporal safety, and how to dynamically match speed, charging and round-trip path with the remaining tasks, time window and thermal state. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the path planning and task scheduling method of the inspection robot provided in the above embodiments, and will not be repeated here.

[0101] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A path planning and task scheduling method for an inspection robot, characterized in that, The method includes: Obtain the prior key waypoint sequence and the confidence level of each waypoint in the prior key waypoint sequence; Based on the prior key waypoint sequence, straight line segments are generated from adjacent waypoints. Under the constraint of the minimum turning radius of the inspection robot, the inflection points between adjacent straight line segments are continuously smoothed by tangents and then discretized according to a preset sampling step size to obtain candidate trajectories. Obtain the predicted trajectory of the dynamic obstacle, and perform spatiotemporal collision detection on the candidate trajectory and the predicted trajectory to obtain the collision interval; Select collision-free waypoints on both sides of the collision zone as local planning start and end points, generate obstacle bypass sub-paths between the local planning start and end points and obtain the travel time of the obstacle bypass sub-paths, and splice the obstacle bypass sub-paths with the reserved candidate trajectories to obtain the inspection path. Based on the inspection path and the initial power of the inspection robot, the energy budget and time for each section are allocated, and the initial speed curve of the inspection robot is generated. If an abnormal interruption occurs during the operation of the inspection robot and is resolved, the speed curve of the inspection robot is regenerated based on the remaining number of inspection points, the remaining time window, and the passage time. The speed curve of the regenerated speed curve is then corrected by limiting the speed based on the motor temperature of the inspection robot. If the remaining power is insufficient to complete the remaining inspection tasks, the charging amount and charging time are calculated by back-calculating the workload of the remaining inspection tasks.

2. The method as described in claim 1, characterized in that, The steps of obtaining the prior key waypoint sequence and the confidence level of each waypoint in the prior key waypoint sequence include: Waypoints are obtained through any one or more of manual teaching, visual perception extraction, or large model semantic reasoning to obtain an initial waypoint sequence, wherein the waypoints include position coordinates and heading angles; Collision status verification is performed on each waypoint in the initial waypoint sequence, and waypoints in a collision state are removed to obtain the first waypoint sequence; The basic confidence level of each waypoint is determined based on its origin in the first waypoint sequence. The basic confidence level is then corrected based on the degree of distance deviation and heading angle deviation between each waypoint and its adjacent waypoints to obtain the confidence level of each waypoint. The confidence level decreases as the degree of distance deviation and heading angle deviation increases. After each historical inspection task is completed, the confidence level is updated based on the pass rate of the verification of waypoints with the same source in the historical inspection task, and the updated confidence level is obtained. For waypoints whose updated confidence level is lower than a preset confidence threshold, a reacquisition command is output so that the waypoint acquisition unit can reacquire the corresponding waypoints. Waypoints with a confidence level not lower than the preset confidence threshold are arranged in the inspection order to obtain a sequence of prior key waypoints with confidence levels.

3. The method as described in claim 1, characterized in that, The step of generating straight line segments based on adjacent waypoints in the prior key waypoint sequence, and then discretizing the inflection points between adjacent straight line segments by performing tangent continuous smoothing under the minimum turning radius constraint of the inspection robot, and then discretizing the segments according to a preset sampling step size to obtain candidate trajectories includes: A straight line segment is generated based on adjacent waypoints in the prior key waypoint sequence to obtain an initial trajectory, wherein the heading angle within the straight line segment is consistent with the direction of travel; Obtain the distance of obstacles around each inflection point on the initial trajectory, and determine the transition radius of each inflection point based on the obstacle distance and the minimum turning radius of the inspection robot. The transition radius is not less than the minimum turning radius, and decreases as the obstacle distance decreases within a range not less than the minimum turning radius. For the inflection points between adjacent straight line segments, according to the corresponding transition radius, tangent continuity smoothing is performed using any one of circular arc transition, polynomial interpolation, or interpolation-type parametric curve to obtain a smooth trajectory; Repeatedly perform the process of increasing the transition radius and smoothing the tangent at the inflection point, iterating until the rate of curvature change is no greater than the preset rate of curvature change threshold or the transition radius reaches the maximum allowable transition radius of the inspection robot, to obtain a smooth trajectory that has passed the verification. The verified smooth trajectory is sampled uniformly along the arc length at a preset sampling step size, and the sampling step size is reduced in the section of the verified smooth trajectory where the curvature exceeds a preset curvature threshold to obtain a discretized candidate trajectory. The preset sampling step size is less than the longitudinal length of the inspection robot's bounding box along the travel direction.

4. The method as described in claim 1, characterized in that, The steps of acquiring the predicted trajectory of the dynamic obstacle and performing spatiotemporal collision detection on the candidate trajectory and the predicted trajectory to obtain the collision interval include: The system acquires the environmental map, the bounding box of the inspection robot, and the current position and speed of the dynamic obstacles. Based on the current position and speed, it extrapolates to generate a predicted trajectory of the dynamic obstacles and determines the predicted time corresponding to each predicted position on the predicted trajectory. The prediction uncertainty range for each prediction position is determined based on the time difference between each prediction time and the current time, and the prediction uncertainty range increases as the time difference increases. The estimated arrival time to each discrete point on the candidate trajectory is calculated based on the operating speed of the inspection robot. For each discrete point on the candidate trajectory, the predicted position on the predicted trajectory corresponding to the expected arrival time of the discrete point and the prediction uncertainty range of the predicted position, the environmental map and the bounding box are compared, the discrete points in the collision state are marked and the collision time period corresponding to the discrete point is recorded. The discrete point is determined to be in the collision state when the bounding box of the inspection robot and the prediction uncertainty range corresponding to the predicted position of the dynamic obstacle spatially overlap. The initial collision interval is determined by a set of continuously marked discrete points, and the collision time interval is associated with the initial collision interval to obtain a collision interval carrying the collision time interval.

5. The method as described in claim 1, characterized in that, The steps of selecting collision-free waypoints on both sides of the collision zone as local planning start and end points, generating obstacle-avoidance sub-paths between the local planning start and end points and obtaining the travel time of the obstacle-avoidance sub-paths, and concatenating the obstacle-avoidance sub-paths with the retained candidate trajectories to obtain the inspection path include: Select the nearest non-collision waypoints on both sides of the collision zone as the local planning start and end points, delete the collision segments between the local planning start and end points, and retain the safe trajectory segments before and after the collision segments; For the segment between the start and end points of the local planning, a search algorithm is invoked to generate multiple initial sub-paths; Based on the collision time period carried by the collision interval, the initial sub-paths that are still in a collision state with the predicted trajectory of the dynamic obstacle during the collision time period are eliminated to obtain a set of feasible sub-paths. The sub-paths in the feasible sub-path set are sorted according to the comprehensive cost obtained by weighting the path length weight term and the estimated travel time weight term. The sub-path with the lowest comprehensive cost is selected for line-of-sight pruning and tangent smoothing to obtain the obstacle bypass sub-path and the travel time of the obstacle bypass sub-path. The bypass sub-path is inserted into the gap corresponding to the collision segment and spliced ​​with the safety trajectory segment. The splicing seam is tangentially continuously fused and the local collision state after splicing is re-inspected to obtain the inspection path.

6. The method as described in claim 1, characterized in that, The step of allocating energy budgets and time for each segment based on the inspection path and the initial battery level of the inspection robot, and generating the initial speed curve of the inspection robot, includes: The inspection path is divided into multiple sections according to the path length and terrain complexity. The total energy is determined based on the initial battery power of the inspection robot. The total energy and total time are allocated according to the ratio of the path length and terrain complexity of each section to obtain the energy budget and time for each section. The upper limit of permissible speed for each section is determined based on the curvature of each section; Based on the collision time period, a waiting time is reserved in the time of the segment corresponding to the collision time period to obtain the updated time of each segment; Under the conditions of satisfying the preset maximum speed, preset maximum acceleration and preset jerk constraints and not exceeding the allowable speed limit of each segment, an initial speed curve is generated in which the running time of each segment does not exceed the updated time of each segment and the running energy consumption does not exceed the energy budget of each segment. Based on the initial speed curve, the total energy consumption is estimated, and when the total energy consumption exceeds the total energy, the cruise speed is reduced and the initial speed curve is regenerated.

7. The method as described in claim 1, characterized in that, The steps described above, after an abnormal interruption occurs and is resolved during the operation of the inspection robot, include: regenerating the robot's speed curve based on the remaining inspection points, the remaining time window, and the passage time; adjusting the speed curve based on the robot's motor temperature; and calculating the charging amount and charging time based on the workload of the remaining inspection tasks when the remaining battery power is insufficient to complete the remaining inspection tasks. The system monitors the operation status of the inspection robot in real time, and handles it according to the severity of the anomaly. For minor anomalies, the robot is degraded; for moderate anomalies, a protective interruption is triggered and the interruption time and location are recorded; for severe anomalies, the robot is stopped in an emergency and returns to its home location. After the anomaly is resolved, the recovery process is triggered. The interruption time is determined based on the interruption time and the interruption location. The interruption time and the passage time are included in the time consumption. The shortest running time and the longest running time to complete the remaining inspection tasks are estimated based on the remaining number of inspection points and the remaining path length. The remaining time window is compared with the shortest running time and the longest running time. When the remaining time window is less than the shortest running time, a warning is issued that the task cannot be completed, and low-priority inspection points are suggested to be skipped according to the inspection point priority. When the remaining time window is between the shortest running time and the longest running time, the average cruising speed is calculated. When the remaining time window is greater than the longest running time, the speed curve of the inspection robot is regenerated using a preset economic speed to obtain an updated speed curve. Based on the predicted heat accumulation trend of the inspection robot's motor temperature, when the heat accumulation trend exceeds a preset temperature threshold, the updated speed curve is speed-limited and corrected to obtain a corrected speed curve. Based on the speed curve after speed limit correction, the remaining energy consumption is estimated. When the remaining power is insufficient to complete the remaining inspection task, a charging pile is selected based on the predicted queuing time of available charging piles and the arrival path length. The selected charging pile and the recovery inspection point after charging are added as new waypoints and inserted into the prior key waypoint sequence. The charging path to the charging pile and the recovery inspection path after charging are generated based on the prior key waypoint sequence after the insertion of the new waypoints. The minimum energy requirement is estimated based on the workload of the remaining inspection tasks, the estimated energy consumption of the charging path and the restored inspection path, and the charging amount and charging time are calculated based on the minimum energy requirement.

8. A path planning and task scheduling device for an inspection robot, characterized in that, The device is applied to the path planning and task scheduling method for the inspection robot as described in any one of claims 1 to 7, and the device comprises: The waypoint acquisition module is used to acquire a sequence of prior key waypoints and the confidence level of each waypoint in the sequence of prior key waypoints; The candidate trajectory construction module is used to generate straight line segments based on adjacent waypoints in the prior key waypoint sequence. Under the constraint of the minimum turning radius of the inspection robot, the inflection points between adjacent straight line segments are continuously smoothed by tangents and then discretized according to a preset sampling step size to obtain the candidate trajectory. The spatiotemporal collision detection module is used to acquire the predicted trajectory of dynamic obstacles, perform spatiotemporal collision detection on the candidate trajectory and the predicted trajectory, and obtain the collision interval. The local repair module is used to select non-collision waypoints on both sides of the collision zone as local planning start and end points, generate obstacle bypass sub-paths between the local planning start and end points and obtain the travel time of the obstacle bypass sub-paths, and splice the obstacle bypass sub-paths with the reserved candidate trajectories to obtain the inspection path. The energy-time allocation module is used to allocate the energy budget and time for each segment according to the inspection path and the initial power of the inspection robot, and to generate the initial speed curve of the inspection robot. The scheduling and adjustment module is used to regenerate the speed curve of the inspection robot based on the remaining number of inspection points, the remaining time window, and the passage time after an abnormal interruption occurs during the operation of the inspection robot and the abnormality is resolved. The module also performs speed limit correction on the regenerated speed curve based on the motor temperature of the inspection robot, and calculates the charging amount and charging time based on the workload of the remaining inspection tasks when the remaining power is insufficient to complete the remaining inspection tasks.

9. A path planning and task scheduling device for an inspection robot, characterized in that, The device includes: a memory, a processor, and a path planning and task scheduling program for the inspection robot stored in the memory and running on the processor, the path planning and task scheduling program for the inspection robot being configured to implement the steps of the path planning and task scheduling method for the inspection robot as described in any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium stores a path planning and task scheduling program for the inspection robot. When the path planning and task scheduling program for the inspection robot is executed by the processor, it implements the steps of the path planning and task scheduling method for the inspection robot as described in any one of claims 1 to 7.