[go: up one dir, main page]

CN112633600B - Path generation method and device, unmanned equipment and storage medium - Google Patents

Path generation method and device, unmanned equipment and storage medium Download PDF

Info

Publication number
CN112633600B
CN112633600B CN202011632664.1A CN202011632664A CN112633600B CN 112633600 B CN112633600 B CN 112633600B CN 202011632664 A CN202011632664 A CN 202011632664A CN 112633600 B CN112633600 B CN 112633600B
Authority
CN
China
Prior art keywords
point
original
current
path
intersection point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011632664.1A
Other languages
Chinese (zh)
Other versions
CN112633600A (en
Inventor
林墩
李文奇
吴尧晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xaircraft Technology Co Ltd
Original Assignee
Guangzhou Xaircraft Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xaircraft Technology Co Ltd filed Critical Guangzhou Xaircraft Technology Co Ltd
Priority to CN202011632664.1A priority Critical patent/CN112633600B/en
Publication of CN112633600A publication Critical patent/CN112633600A/en
Application granted granted Critical
Publication of CN112633600B publication Critical patent/CN112633600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Navigation (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The embodiment of the application relates to the field of path planning, and provides a path generation method, a device, unmanned equipment and a storage medium, when a specified point of an original path is changed, firstly, position information and auxiliary information of the current specified point are acquired, and an auxiliary line passing through the current specified point is generated; then, an intersection point where the auxiliary line and the original path intersect for the first time is determined, a first road section between the currently specified point and the intersection point is generated, and then the target path is generated based on the intersection point and the first road section, so that the target path can be generated without discarding the original path, and the path planning efficiency and the unmanned equipment operation efficiency are improved.

Description

路径生成方法、装置、无人设备及存储介质Path generation method, device, unmanned equipment and storage medium

技术领域technical field

本申请实施例涉及路径规划领域,具体而言,涉及一种路径生成方法、装置、无人设备及存储介质。The embodiments of the present application relate to the field of path planning, and in particular, relate to a path generation method, device, unmanned equipment, and storage medium.

背景技术Background technique

现有的路径规划方法,首先需要确定起点、终点和作业区域,然后在作业区域内规划从起点到终点的路径。但是,在实际应用中,由于作业需求,可能需要对起点或终点进行变更,这种情况下需要丢弃原路径,并根据新的起点或新的终点重新规划路径。因此,一旦变更起点或终点,就需要重新规划路径,从而需要耗费大量时间,影响无人设备的作业效率。In the existing path planning method, the starting point, the end point and the operation area need to be determined first, and then the path from the starting point to the end point is planned within the operation area. However, in practical applications, due to job requirements, it may be necessary to change the start point or end point. In this case, the original path needs to be discarded and the path should be re-planned according to the new start point or new end point. Therefore, once the starting point or end point is changed, the path needs to be re-planned, which takes a lot of time and affects the operating efficiency of the unmanned equipment.

发明内容Contents of the invention

本申请实施例的目的在于提供一种路径生成方法、装置、无人设备及存储介质,用以解决现有的路径规划方法在变更起点或终点时需要重新规划路径,影响无人设备的作业效率的问题。The purpose of the embodiment of the present application is to provide a path generation method, device, unmanned equipment and storage medium to solve the problem that the existing path planning method needs to re-plan the path when changing the starting point or end point, which affects the operating efficiency of the unmanned equipment The problem.

为了实现上述目的,本申请实施例采用的技术方案如下:In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

第一方面,本申请实施例提供了一种路径生成方法,所述方法包括:响应指定点变更指令,获取当前指定点的位置信息和辅助信息;根据所述当前指定点的位置信息和所述辅助信息,生成辅助线,所述当前指定点位于所述辅助线上;确定所述辅助线与原路径首次相交的交点;生成所述当前指定点与所述交点之间的第一路段;基于所述交点和所述第一路段,生成目标路径。In the first aspect, the embodiment of the present application provides a path generation method, the method comprising: responding to a designated point change instruction, acquiring the position information and auxiliary information of the current designated point; according to the position information of the current designated point and the Auxiliary information, generating an auxiliary line, the current designated point is located on the auxiliary line; determining the intersection point where the auxiliary line intersects with the original path for the first time; generating the first section between the current designated point and the intersection point; based on The intersection point and the first road section generate a target path.

可选地,所述基于所述交点和所述第一路段,生成目标路径的步骤,包括:基于所述交点和所述原路径的原指定点,从所述原路径中确定待处理路段;合并所述第一路段和所述待处理路段,得到所述目标路径。Optionally, the step of generating a target path based on the intersection point and the first road section includes: determining the road section to be processed from the original path based on the intersection point and the original designated point of the original path; Combining the first road segment and the road segment to be processed to obtain the target route.

可选地,所述基于所述交点和所述原路径的原指定点,从所述原路径中确定待处理路段的步骤,包括:确定所述交点是否为所述原指定点;若所述交点是所述原指定点,则确定所述待处理路段为所述原路径;若所述交点不是所述原指定点,则删除所述原路径中与所述当前指定点的类型相同的所述原指定点和所述交点之间的第二路段,得到所述待处理路段。Optionally, the step of determining the road segment to be processed from the original route based on the intersection point and the original designated point of the original route includes: determining whether the intersection point is the original designated point; if the If the intersection point is the original designated point, then it is determined that the section to be processed is the original path; if the intersection point is not the original designated point, then delete all the same types of the current designated point in the original path. The second road section between the original specified point and the intersection point is obtained to obtain the road section to be processed.

可选地,所述删除所述原路径中所述原指定点与所述交点之间的第二路段,得到所述待处理路段的步骤,包括:若所述当前指定点为当前起点,则所述原指定点为原起点,删除所述原路径中所述原起点与所述交点之间的第二路段,得到所述待处理路段;若所述当前指定点为当前终点,则所述原指定点为原终点,删除所述原路径中所述原终点与所述交点之间的第二路段,得到所述待处理路段。Optionally, the step of deleting the second road segment between the original designated point and the intersection point in the original route to obtain the road segment to be processed includes: if the current designated point is the current starting point, then The original designated point is the original starting point, and the second road section between the original starting point and the intersection point in the original path is deleted to obtain the road section to be processed; if the current designated point is the current end point, the The original designated point is the original end point, and the second road section between the original end point and the intersection point in the original path is deleted to obtain the road section to be processed.

可选地,所述辅助信息为设定点;所述根据所述当前指定点的位置信息和所述辅助信息,生成辅助线的步骤,包括:连接所述当前指定点和所述设定点,并将所述当前指定点和所述设定点的连线作为所述辅助线。Optionally, the auxiliary information is a set point; the step of generating an auxiliary line according to the position information of the current designated point and the auxiliary information includes: connecting the currently designated point and the set point , and use the line connecting the current designated point and the set point as the auxiliary line.

可选地,所述辅助信息为设定线,所述设定线经过所述当前指定点;所述根据所述当前指定点的位置信息和所述辅助信息,生成辅助线的步骤,包括:延长所述设定线直至与所述原路径相交,并将延长后的设定线作为所述辅助线。Optionally, the auxiliary information is a set line, and the set line passes through the current designated point; the step of generating an auxiliary line according to the position information of the currently designated point and the auxiliary information includes: The setting line is extended until it intersects with the original path, and the extended setting line is used as the auxiliary line.

可选地,所述辅助信息为设定直线斜率;所述根据所述当前指定点的位置信息和所述辅助信息,生成辅助线的步骤,包括:根据所述当前指定点和所述设定直线斜率生成直线,并将所述直线作为所述辅助线。Optionally, the auxiliary information is a set straight line slope; the step of generating an auxiliary line according to the position information of the current designated point and the auxiliary information includes: according to the current designated point and the set The slope of the line generates a straight line and uses the straight line as the auxiliary line.

可选地,所述生成所述当前指定点与所述交点之间的第一路段的步骤,包括:若所述当前指定点和所述交点之间存在障碍物,则获取所述障碍物的位置信息;根据所述障碍物的位置信息进行避障路径规划,以生成不存在所述障碍物的所述第一路段。Optionally, the step of generating the first road section between the current specified point and the intersection point includes: if there is an obstacle between the current specified point and the intersection point, obtaining the Location information: performing obstacle avoidance path planning according to the location information of the obstacle, so as to generate the first road section where the obstacle does not exist.

第二方面,本申请实施例还提供了一种路径生成装置,所述装置包括:获取模块,用于响应指定点变更指令,获取当前指定点的位置信息和辅助信息;处理模块,用于:根据所述当前指定点的位置信息和所述辅助信息,生成辅助线,所述当前指定点位于所述辅助线上;确定所述辅助线与原路径首次相交的交点;生成所述当前指定点与所述交点之间的第一路段;基于所述交点和所述第一路段,生成目标路径。In the second aspect, the embodiment of the present application also provides a route generating device, the device comprising: an acquisition module, configured to respond to a designated point change instruction, and obtain the location information and auxiliary information of the current designated point; a processing module, configured to: Generate an auxiliary line according to the position information of the current designated point and the auxiliary information, and the current designated point is located on the auxiliary line; determine the intersection point where the auxiliary line intersects with the original path for the first time; generate the current designated point and a first road section between the intersection point; based on the intersection point and the first road section, a target path is generated.

第三方面,本申请实施例还提供了一种无人设备,所述无人设备包括:一个或多个处理器;存储器,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现上述的路径生成方法。In the third aspect, the embodiment of the present application also provides an unmanned device, which includes: one or more processors; memory, used to store one or more programs, when the one or more programs When executed by the one or more processors, the one or more processors are made to implement the above path generation method.

第四方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述的路径生成方法。In a fourth aspect, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above path generation method is implemented.

相对现有技术,本申请实施例提供的一种路径生成方法、装置、无人设备及存储介质,当原路径的指定点发生变更时,首先获取当前指定点的位置信息和辅助信息,并生成经过当前指定点的辅助线;然后,确定出辅助线和原路径首次相交的交点,并生成当前指定点和交点之间的第一路段,进而基于交点和第一路段生成目标路径,从而无需丢弃原路径即可生成目标路径,提高了路径规划的效率和无人设备的作业效率。Compared with the prior art, a route generation method, device, unmanned equipment and storage medium provided by the embodiments of the present application, when the designated point of the original route is changed, first obtain the position information and auxiliary information of the current designated point, and generate The auxiliary line passing through the current specified point; then, determine the intersection point where the auxiliary line intersects with the original path for the first time, and generate the first road segment between the current designated point and the intersection point, and then generate the target path based on the intersection point and the first road segment, so that there is no need to discard The target path can be generated from the original path, which improves the efficiency of path planning and the operation efficiency of unmanned equipment.

附图说明Description of drawings

图1示出了本申请实施例提供的路径生成方法的流程示意图。FIG. 1 shows a schematic flowchart of a path generation method provided by an embodiment of the present application.

图2示出了本申请实施例提供的目标路径的一种示例图。FIG. 2 shows an exemplary diagram of a target path provided by the embodiment of the present application.

图3示出了本申请实施例提供的目标路径的另一种示例图。FIG. 3 shows another example diagram of the target path provided by the embodiment of the present application.

图4示出了本申请实施例提供的辅助线的一种示例图。FIG. 4 shows an exemplary diagram of an auxiliary line provided by an embodiment of the present application.

图5示出了本申请实施例提供的辅助线的另一种示例图。FIG. 5 shows another example diagram of the auxiliary line provided by the embodiment of the present application.

图6示出了本申请实施例提供的辅助线的又一种示例图。FIG. 6 shows another exemplary diagram of the auxiliary line provided by the embodiment of the present application.

图7为图1示出的路径生成方法中步骤S104的流程示意图。FIG. 7 is a schematic flowchart of step S104 in the route generation method shown in FIG. 1 .

图8为图1示出的路径生成方法中步骤S105的流程示意图。FIG. 8 is a schematic flowchart of step S105 in the path generation method shown in FIG. 1 .

图9示出了本申请实施例提供的目标路径的又一种示例图。FIG. 9 shows another exemplary diagram of the target path provided by the embodiment of the present application.

图10示出了本申请实施例提供的目标路径的又一种示例图。FIG. 10 shows another exemplary diagram of the target path provided by the embodiment of the present application.

图11示出了本申请实施例提供的路径生成装置的方框示意图。FIG. 11 shows a schematic block diagram of a path generation device provided by an embodiment of the present application.

图12示出了本申请实施例提供的无人设备的方框示意图。Fig. 12 shows a schematic block diagram of an unmanned device provided by an embodiment of the present application.

图标:100-路径生成装置;101-获取模块;102-处理模块;10-无人设备;11-处理器;12-存储器;13-总线。Icons: 100-path generation device; 101-acquisition module; 102-processing module; 10-unmanned equipment; 11-processor; 12-memory; 13-bus.

具体实施方式detailed description

下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application.

请参照图1,图1示出了本申请实施例提供的路径生成方法的流程示意图。该路径生成方法应用于无人设备,该路径生成方法包括以下步骤:Please refer to FIG. 1 . FIG. 1 shows a schematic flowchart of a path generation method provided by an embodiment of the present application. The path generation method is applied to unmanned equipment, and the path generation method includes the following steps:

S101,响应指定点变更指令,获取当前指定点的位置信息和辅助信息。S101. Acquiring position information and auxiliary information of a current designated point in response to a designated point change instruction.

在一个实施例中,指定点变更指令是用户通过与无人设备通信连接的控制设备输入的,指定点变更指令包括当前指定点的位置信息和辅助信息,辅助信息可以表征从当前指定点到原路径的方向。In one embodiment, the command to change the designated point is input by the user through a control device that communicates with the unmanned device. The command to change the designated point includes position information and auxiliary information of the current designated point. The auxiliary information can represent the distance from the current designated point to the original The direction of the path.

可选地,控制设备可以是具备RTK(Real-time kinematic,载波相位差分技术)的控制器,例如,单手控等。Optionally, the control device may be a controller equipped with RTK (Real-time kinematic, carrier phase difference technology), for example, single-handed control.

用户可以携带单手控走到特定位置,然后通过单手控打点定位,从而触发指定点更改,随后,用户通过单手控输入辅助信息。The user can carry the one-hand control to a specific location, and then use the one-hand control to mark the location, thereby triggering the change of the designated point, and then the user inputs auxiliary information through the one-hand control.

用户还可以手持单手控到达原路径的起点或终点处,然后在原路径的起点或终点处,通过单手控进行打点操作或者按下单手控的指令发送按钮,从而触发指定点更改;之后用户沿某一路段行进,同时不断地通过单手控进行打点操作、或者一直按下单手控的指令发送按钮;直至行进至目的地点才停止打点操作或松开指令发送按钮,以对原路径的起点或终点进行变更。此时,目的地点即为当前指定点,用户的行进轨迹即为辅助信息。The user can also hold the single-hand control to reach the starting point or end point of the original path, and then at the starting point or end point of the original path, use the single-hand control to perform a dot operation or press the command sending button of the single-hand control, thereby triggering the change of the specified point; after that The user travels along a certain road section, and at the same time continuously performs dot operations through one-hand control, or keeps pressing the command sending button of one-hand control; until the destination point is reached, the dot operation is stopped or the command sending button is released, so as to change the original path. Change the start or end point of the . At this time, the destination point is the currently designated point, and the user's traveling track is the auxiliary information.

可选地,控制设备还可以是终端,例如,智能手机、平板电脑、便携式笔记本电脑、台式电脑、服务器等中的任意一种。终端安装有与无人设备控制相关的APP(Application,应用程序),该APP界面中展示有原路径和作业地图,用户可以通过该APP界面进行指定点变更操作。Optionally, the control device may also be a terminal, for example, any one of a smart phone, a tablet computer, a portable notebook computer, a desktop computer, a server, and the like. The terminal is installed with an APP (Application, application program) related to the control of the unmanned equipment. The original route and the operation map are displayed in the APP interface, and the user can change the designated point through the APP interface.

用户可以通过点击的方式实现指定点的更改,例如,用户可以点击该APP界面展示的作业地图中的某个点,以作为变更后的指定点,从而触发指定点更改。随后,该APP界面可以显示提示信息,以提示用户输入辅助信息。The user can realize the change of the specified point by clicking. For example, the user can click a certain point in the operation map displayed on the APP interface as the changed specified point, thereby triggering the change of the specified point. Subsequently, the APP interface may display prompt information to prompt the user to input auxiliary information.

用户还可以通过拖动的方式同时实现对指定点的更改和辅助信息的输入。例如,用户可以选中该APP界面展示的原路径的原指定点,即,原路径的起点或终点;然后,对选中的原指定点进行拖动操作,以对原指定点的位置进行变更,拖动操作结束时所在的点即为当前指定点,拖动操作的拖动轨迹即为辅助信息。Users can also change the specified point and input auxiliary information at the same time by dragging. For example, the user can select the original specified point of the original path displayed on the APP interface, that is, the starting point or end point of the original path; then, drag the selected original specified point to change the position of the original specified point, drag The point where the moving operation ends is the current designated point, and the dragging track of the dragging operation is the auxiliary information.

从前述的指定点变更方式可知,每变更一次指定点,就需要用户行进到特定位置或者对APP界面进行一次操作。因此,对于需要进行指定点多次更改的场景,例如,果实装载等,用户需要分开多次操作,导致操作过于麻烦,不利于用户体验,同时也会影响路径规划的效率和无人设备的作业效率。It can be known from the foregoing method of changing the designated point that the user needs to travel to a specific location or perform an operation on the APP interface every time the designated point is changed. Therefore, for scenarios that require multiple changes to specified points, such as fruit loading, the user needs to perform multiple operations separately, which makes the operation too cumbersome, which is not conducive to user experience, and also affects the efficiency of path planning and the operation of unmanned equipment. efficiency.

因此,在另一个实施例中,用户可以通过与无人设备通信连接的控制设备,提前将需要依次作业的多个指定点和每个指定点的触发条件存储到无人设备中。这样,无人设备在作业过程中,当达到某一指定点的触发条件时,无人设备的处理器会产生指定点变更指令,将该指定点的后一个指定点作为当前指定点,从而实现指定点的更改。Therefore, in another embodiment, the user can store in the unmanned device in advance the multiple designated points that need to be operated sequentially and the trigger conditions of each designated point through the control device that is communicatively connected with the unmanned device. In this way, when the unmanned equipment reaches the trigger condition of a specified point during the operation process, the processor of the unmanned equipment will generate a specified point change command, and the specified point after the specified point will be used as the current specified point, thereby realizing Changes to specified points.

例如,当达到第一个指定点的触发条件时,无人设备的处理器会产生指定点变更指令,将当前指定点变更为第二个指定点,采用本申请实施例提供的路径生成方法规划对应的路径,并按照对应路径进行作业;由此往复执行,直至完成所有指定点对应路径的作业。For example, when the trigger condition of the first specified point is reached, the processor of the unmanned device will generate a specified point change command to change the current specified point to the second specified point, and plan using the path generation method provided in the embodiment of the present application The corresponding path, and carry out the operation according to the corresponding path; from this reciprocating execution, until the operation of the corresponding path of all specified points is completed.

可选地,触发条件可以是每个指定点对应的作业时长,例如,在达到某一指定点对应的作业时长后,将该指定点的后一个指定点作为当前指定点。触发条件也可以是用户通过控制设备远程发送的切换指令,例如,用户通过远程或者现场监控的方式,看到无人设备完成某一个指定点对应路径的作业后,通过控制设备远程发送切换指令,无人设备在接收到切换指令后,将该指定点的后一个指定点作为当前指定点。Optionally, the trigger condition may be the working duration corresponding to each specified point, for example, after reaching the working duration corresponding to a certain specified point, the specified point after the specified point is used as the current specified point. The trigger condition can also be a switching command sent remotely by the user through the control device. For example, the user sees that the unmanned device completes the operation of a specified path corresponding to a certain point through remote or on-site monitoring, and sends a switching command remotely through the control device. After receiving the switching instruction, the unmanned device takes the designated point after the designated point as the current designated point.

S102,根据当前指定点的位置信息和辅助信息,生成辅助线,当前指定点位于辅助线上。S102. Generate an auxiliary line according to the position information and auxiliary information of the currently designated point, where the currently designated point is located on the auxiliary line.

由于辅助信息可以表征从当前指定点到原路径的方向,所以根据目标点的位置信息和辅助信息,就能生成一条辅助线。该辅助线经过当前指定点,且与原路径相交。Since the auxiliary information can represent the direction from the current specified point to the original path, an auxiliary line can be generated according to the position information of the target point and the auxiliary information. The auxiliary line passes through the current specified point and intersects with the original path.

可选地,辅助信息可以是一个点,也可以是一个直线斜率,还可以是一条经过当前指定点的线,例如,曲线或直线。Optionally, the auxiliary information may be a point, or a slope of a straight line, or a line passing through the currently specified point, for example, a curve or a straight line.

S103,确定辅助线与原路径首次相交的交点。S103. Determine an intersection point where the auxiliary line intersects with the original path for the first time.

S104,生成当前指定点与交点之间的第一路段。S104. Generate a first road segment between the current designated point and the intersection point.

在本实施例中,可以通过现有的插值算法或者其他基于两个点生成路径的技术,生成当前指定点和交点之间的第一路段,在此不再赘述。In this embodiment, an existing interpolation algorithm or other techniques for generating a path based on two points may be used to generate the first road segment between the current designated point and the intersection point, which will not be repeated here.

S105,基于交点和第一路段,生成目标路径。S105. Generate a target path based on the intersection point and the first road section.

在本实施例中,得到辅助线和原路径首次相交的交点、以及当前指定点和交点之间的第一路段之后,可以通过判断该交点是否为原路径的原指定点,即,原路径的起点或终点,来生成目标路径。In this embodiment, after obtaining the intersection point where the auxiliary line intersects with the original path for the first time, and the first section between the current designated point and the intersection point, it is possible to determine whether the intersection point is the original designated point of the original path, that is, the original path start or end point to generate the target path.

如果该交点不是原路径的原指定点,则第一步,生成当前指定点和该交点之间的路段;第二步,删除原路径中与当前指定点类型相同的原指定点和该交点之间的路段,以得到剩余路段;类型相同是指:当前指定点为起点,则原指定点也为起点,即删除原路径中起点和该交点之间的路段;当前指定点为终点,则原指定点也为终点,即删除原路径中终点和该交点之间的路段;第三步,将第一步中得到的当前指定点和该交点之间的路段、与第二步中得到的剩余路段进行合并,由此生成目标路径。If the intersection point is not the original designated point of the original path, then the first step is to generate the road segment between the current designated point and the intersection point; the second step is to delete the original designated point of the same type as the current designated point in the original route and the intersection point The same type means: the current specified point is the starting point, then the original specified point is also the starting point, that is, the section between the starting point and the intersection point in the original path is deleted; the current specified point is the end point, the original The specified point is also the end point, that is, delete the road segment between the end point and the intersection point in the original path; the third step is to combine the road segment between the current designated point and the intersection point obtained in the first step and the remaining road segment obtained in the second step Links are merged to generate the target path.

例如,请参照图2,A→B为原路径,A为起点,B为终点;a是变更后的起点,l为辅助线,M是辅助线与原路径首次相交的交点,由于M不是原路径的起点或终点,则生成变更后的起点a与交点M之间的路段,如a→M;然后,删除原路径中原起点A与该交点M之间的路段,即,A→M,得到剩余路段M→B;最后,合并变更后的起点a与交点M之间的路段a→M和剩余路段M→B,得到目标路径a→M→B。For example, please refer to Figure 2, A→B is the original path, A is the starting point, and B is the end point; For the starting point or end point of the path, the section between the changed starting point a and the intersection point M is generated, such as a→M; then, the section between the original starting point A and the intersection point M in the original path is deleted, that is, A→M, to obtain The remaining road section M→B; finally, merge the road section a→M between the changed starting point a and the intersection point M and the remaining road section M→B to obtain the target path a→M→B.

如果该交点是原路径的原指定点,则第一步,生成当前指定点和该交点之间的路段;第二步,将第一步中得到的当前指定点和该交点之间的路段、与原路径进行合并,由此生成目标路径。If the intersection point is the original designated point of the original path, then the first step is to generate the road segment between the current designated point and the intersection point; the second step is to generate the road segment between the current designated point and the intersection point obtained in the first step, Merge with the original path to generate the target path.

例如,请参照图3,A→B为原路径,A为起点,B为终点;a是变更后的起点,l为辅助线,辅助线与原路径首次相交的交点为A,由于交点A为原路径的起点,则生成变更后的起点a与交点A之间的路段,如a→A;然后,合并变更后的起点a与交点A之间的路段a→A和原路径A→B,得到目标路径a→A→B。For example, please refer to Figure 3, A→B is the original path, A is the starting point, and B is the end point; a is the changed starting point, l is the auxiliary line, and the intersection point where the auxiliary line intersects the original path for the first time is A, because the intersection point A is For the starting point of the original path, a road section between the changed starting point a and the intersection point A is generated, such as a→A; then, the road section a→A between the changed starting point a and the intersection point A is merged with the original path A→B, Get the target path a→A→B.

下面对步骤S102进行详细介绍。Step S102 will be described in detail below.

在一个实施例中,辅助信息为设定点,例如,用户通过控制设备输入的一个点。这种情形下,步骤S102可以包括子步骤S1021。In one embodiment, the auxiliary information is a set point, eg a point entered by the user via the control device. In this case, step S102 may include sub-step S1021.

S1021,连接当前指定点和设定点,并将当前指定点和设定点的连线作为辅助线。S1021, connect the current designated point and the set point, and use the connecting line between the current designated point and the set point as an auxiliary line.

例如,请参照图4,A→B为原路径,A为起点,B为终点;a是变更后的起点,b为设定点,则连接a和b得到二者的连线l,l即为辅助线。For example, please refer to Figure 4, A → B is the original path, A is the starting point, and B is the end point; a is the changed starting point, b is the set point, then connect a and b to obtain the connection line l of the two, l is for the auxiliary line.

在另一个实施例中,辅助信息为设定线且该设定线经过当前指定点,例如,用户通过控制设备输入的一条经过当前指定点的线,该设定线可以是直线或者曲线,在此不作限定。这种情形下,步骤S102可以包括子步骤S1022。In another embodiment, the auxiliary information is a set line and the set line passes through the current specified point, for example, a line passed through the current specified point input by the user through the control device, the set line can be a straight line or a curve, and This is not limited. In this case, step S102 may include sub-step S1022.

S1022,延长设定线直至与原路径相交,并将延长后的设定线作为辅助线。S1022. Extend the setting line until it intersects with the original path, and use the extended setting line as an auxiliary line.

例如,请参照图5,A→B为原路径,A为起点,B为终点;a是变更后的起点,l为经过a的设定线,则延长l直至与原路径相交,延长后的l即为辅助线。For example, please refer to Figure 5, A → B is the original path, A is the starting point, and B is the end point; a is the changed starting point, l is the setting line passing through a, then extend l until it intersects with the original path, and the extended l is the auxiliary line.

在又一个实施例中,辅助信息为设定直线斜率,例如,用户通过控制设备输入的一个直线斜率。这种情形下,步骤S102可以包括子步骤S1023。In yet another embodiment, the auxiliary information is a set straight line slope, for example, a straight line slope input by a user through a control device. In this case, step S102 may include sub-step S1023.

S1023,根据当前指定点和设定直线斜率生成直线,并将直线作为辅助线。S1023. Generate a straight line according to the current designated point and the set slope of the straight line, and use the straight line as an auxiliary line.

例如,请参照图6,A→B为原路径,A为起点,B为终点;a是变更后的起点,k为设定的直线斜率,则根据变更后的起点a和斜率k生成直线l,l即为辅助线。For example, please refer to Figure 6, A → B is the original path, A is the starting point, and B is the end point; a is the changed starting point, and k is the set straight line slope, then a straight line l is generated according to the changed starting point a and slope k , l is the auxiliary line.

在一种可能的情形下,由于第一路段是无人设备基于当前指定点和辅助线与原路径首次相交的交点生成的,所以生成的第一路段中可能会存在障碍物。为了解决这一问题,可以在生成第一路段之前,预先获取障碍物的位置并进行避障路径规划,以生成不存在障碍物的第一路段。In a possible situation, since the first road segment is generated by the unmanned device based on the current designated point and the intersection point where the auxiliary line intersects the original route for the first time, there may be obstacles in the generated first road segment. In order to solve this problem, before generating the first road segment, the position of the obstacle can be obtained in advance and the path planning for obstacle avoidance can be performed, so as to generate the first road segment without obstacles.

因此,在图1的基础上,请参照图7,步骤S104可以包括以下子步骤:Therefore, on the basis of FIG. 1, please refer to FIG. 7, step S104 may include the following sub-steps:

S1041,若当前指定点和交点之间存在障碍物,则获取障碍物的位置信息。S1041, if there is an obstacle between the currently designated point and the intersection point, obtain the position information of the obstacle.

如果当前指定点和交点之间的区域存在障碍物,则用户可以通过控制设备预先将障碍物的位置信息输入无人设备进行存储,这样无人设备在进行路径规划时,就能直接获取到相应的障碍物信息。If there is an obstacle in the area between the currently designated point and the intersection point, the user can input the location information of the obstacle into the unmanned device for storage in advance through the control device, so that the unmanned device can directly obtain the corresponding information when planning the path. obstacle information.

S1042,根据障碍物的位置信息进行避障路径规划,以生成不存在障碍物的第一路段。S1042. Perform obstacle avoidance path planning according to the position information of the obstacle, so as to generate a first road section without any obstacle.

可以采用现有的避障路径生成算法完成当前指定点和交点之间的避障路径规划,在此不再赘述。The existing obstacle avoidance path generation algorithm can be used to complete the obstacle avoidance path planning between the current designated point and the intersection point, which will not be repeated here.

另外,在实际应用中,也可以直接基于当前指定点和辅助线与原路径首次相交的交点生成第一路段,后续无人设备沿第一路段作业过程中,可以通过障碍物检测装置来实现避障。In addition, in practical applications, the first road section can also be generated directly based on the current designated point and the intersection point where the auxiliary line intersects the original path for the first time. During the subsequent operation of the unmanned equipment along the first road section, the obstacle detection device can be used to achieve avoidance. barrier.

下面对步骤S105进行详细介绍。在图1的基础上,请参照图8,步骤S105可以包括以下子步骤:Step S105 will be described in detail below. On the basis of Figure 1, please refer to Figure 8, step S105 may include the following sub-steps:

S1051,基于交点和原路径的原指定点,从原路径中确定待处理路段。S1051. Based on the intersection point and the original designated point of the original route, determine the road section to be processed from the original route.

S1052,合并第一路段和待处理路段,得到目标路径。S1052. Merge the first road segment and the road segment to be processed to obtain the target path.

在本实施例中,原路径包括待处理路段,即,待处理路段可以是原路径,也可以是原路径中的一段路径段。In this embodiment, the original route includes a road segment to be processed, that is, the road segment to be processed may be the original route or a segment of the original route.

基于交点和原路径的原指定点,从原路径中确定待处理路段的过程,可以包括:首先,确定交点是否为原指定点,即,确定交点是否为原路径的起点或终点;然后,若交点是原指定点,则确定待处理路段为原路径;若交点不是原指定点,则删除原路径中与当前指定点的类型相同的原指定点和交点之间的第二路段,得到待处理路段。Based on the intersection point and the original specified point of the original path, the process of determining the road section to be processed from the original path may include: first, determining whether the intersection point is the original specified point, that is, determining whether the intersection point is the starting point or the end point of the original path; then, if If the intersection point is the original designated point, it is determined that the road segment to be processed is the original path; if the intersection point is not the original designated point, then delete the second road segment between the original designated point and the intersection point that is the same type as the current designated point in the original path, and obtain the pending road section.

即,如果当前指定点为当前起点,则原指定点为原起点,删除原路径中原起点与交点之间的第二路段,得到待处理路段;当前指定点为当前终点,则所述原指定点为原终点,删除所述原路径中原终点与交点之间的第二路段,得到待处理路段。That is, if the current designated point is the current starting point, the original designated point is the original starting point, and the second road segment between the original starting point and the intersection point in the original path is deleted to obtain the road segment to be processed; the current designated point is the current end point, and the original designated point is the original end point, delete the second road section between the original end point and the intersection point in the original path, and obtain the road section to be processed.

例如,请参照图9,图中A→B为原路径,A为起点,B为终点;其中,左图中,a为当前起点,M为交点,则删除原起点A和交点M之间的路段A→M,得到待处理路段M→B,假设第一路段为a→M,则合并第一路段a→M和待处理路段M→B,得到目标路径a→M→B;右图中,b为当前终点,N为交点,则删除原终点B和交点N之间的路段,得到待处理路段A→N,假设第一路段为b→N,则合并第一路段b→N和待处理路段A→N,得到目标路径A→N→b。For example, please refer to Figure 9, A → B in the figure is the original path, A is the starting point, and B is the end point; in the left figure, a is the current starting point, and M is the intersection point, then delete the original starting point A and the intersection point M Road section A→M, to get the road section to be processed M→B, assuming that the first road section is a→M, then merge the first road section a→M and the road section to be processed M→B to obtain the target path a→M→B; the right figure , b is the current end point, N is the intersection point, delete the road section between the original end point B and the intersection point N, and get the road section A→N to be processed, assuming that the first road section is b→N, then merge the first road section b→N and the pending road section Process the road section A→N to obtain the target path A→N→b.

需要指出的是,上述是以变更起点或者变更终点为例进行说明的,应当理解,本申请实施例提供的路径生成方法也能应用在同时变更起点和终点的场景。It should be pointed out that the above is described by changing the starting point or the changing end point as an example, and it should be understood that the path generation method provided in the embodiment of the present application can also be applied to the scene where the starting point and the ending point are changed at the same time.

例如,请参照图10,图中A→B为原路径,A为起点,B为终点,a为变更后的起点,b为变更后的终点,M和N为交点,则删除原起点A和交点M之间的路段、以及原终点和交点N之间的路段,得到待处理路段M→N;假设第一路段为a→M和b→N,则合并第一路段a→M、b→N和待处理路段M→N,得到目标路径a→M→N→b。For example, please refer to Figure 10, where A → B is the original path, A is the starting point, B is the end point, a is the changed starting point, b is the changed end point, M and N are the intersection points, then delete the original starting point A and The road section between the intersection point M, and the road section between the original end point and the intersection point N, get the road section M→N to be processed; assuming that the first road section is a→M and b→N, merge the first road section a→M, b→ N and the road segment to be processed M→N, the target path a→M→N→b is obtained.

本申请实施例提供的路径生成方法可以应用在:因作业需求,原作业区域需要缩小或扩大的场景。原作业区域缩小的原因可以是:原作业区域内的某个子区域已经完成作业或者因其他因素无需作业。原作业区域扩大的原因可以是:原作业区域外的其他区域需要作业。因此,针对上述应用场景,可以采用本申请实施例提供的路径生成方法,保留原路径,并在原路径的基础上生成目标路径,从而简化路径规划的过程,提高了无人设备的作业效率。The path generation method provided in the embodiment of the present application can be applied in a scenario where the original work area needs to be reduced or expanded due to work requirements. The reason for the reduction of the original work area may be that a certain sub-area in the original work area has completed the work or no work is required due to other factors. The reason for the expansion of the original operation area may be that other areas outside the original operation area need to be operated. Therefore, for the above application scenarios, the path generation method provided by the embodiment of the present application can be used to retain the original path and generate the target path on the basis of the original path, thereby simplifying the path planning process and improving the operating efficiency of the unmanned equipment.

与现有技术相比,本申请实施例具有以下有益效果:Compared with the prior art, the embodiment of the present application has the following beneficial effects:

首先,当原路径的指定点发生变更时,通过获取当前指定点的位置信息和辅助信息,生成经过当前指定点的辅助线,再确定出辅助线和原路径首次相交的交点,进而生成当前指定点和交点之间的第一路段;之后,通过判断该交点是否为原路径的起点或终点,在原路径的基础上生成目标路径,从而无需丢弃原路径即可生成目标路径,提高了路径规划的效率和无人设备的作业效率;First, when the designated point of the original path changes, the auxiliary line passing through the current designated point is generated by obtaining the position information and auxiliary information of the current designated point, and then the intersection point where the auxiliary line and the original path intersect for the first time is determined to generate the current designated point. The first section between the point and the intersection point; after that, by judging whether the intersection point is the starting point or the end point of the original path, the target path is generated on the basis of the original path, so that the target path can be generated without discarding the original path, and the accuracy of path planning is improved. Efficiency and operating efficiency of unmanned equipment;

其次,在生成当前指定点和交点之间的第一路段之前,可以预先获取障碍物的位置并进行避障路径规划,以生成不存在障碍物的第一路段,进一步提高了无人设备的作业效率。Secondly, before generating the first road section between the current designated point and the intersection point, the position of the obstacle can be obtained in advance and the obstacle avoidance path planning can be performed to generate the first road section without obstacles, which further improves the operation of the unmanned equipment. efficiency.

为了执行上述方法实施例及各个可能的实施方式中的相应步骤,下面给出一种路径生成装置的实现方式。请参照图11,图11示出了本申请实施例提供的路径生成装置100的方框示意图。路径生成装置100应用于无人设备,该路径生成装置100包括:获取模块101及处理模块102。In order to execute the corresponding steps in the foregoing method embodiments and various possible implementation manners, an implementation manner of a path generation device is given below. Please refer to FIG. 11 . FIG. 11 shows a schematic block diagram of a path generating device 100 provided by an embodiment of the present application. The path generation device 100 is applied to unmanned equipment, and the path generation device 100 includes: an acquisition module 101 and a processing module 102 .

获取模块101,用于响应指定点变更指令,获取当前指定点的位置信息和辅助信息。The acquisition module 101 is configured to acquire the position information and auxiliary information of the current designated point in response to the designated point change instruction.

处理模块102,用于根据当前指定点的位置信息和辅助信息,生成辅助线,当前指定点位于辅助线上;确定辅助线与原路径首次相交的交点;生成当前指定点与交点之间的第一路段;基于交点和第一路段,生成目标路径。The processing module 102 is used to generate an auxiliary line according to the position information and auxiliary information of the current designated point, and the current designated point is located on the auxiliary line; determine the intersection point where the auxiliary line intersects with the original path for the first time; generate the first intersection point between the current designated point and the intersection point A road segment; based on the intersection point and the first road segment, a target path is generated.

可选地,处理模块102执行基于交点和第一路段,生成目标路径的方式,包括:基于交点和原路径的原指定点,从原路径中确定待处理路段;合并第一路段和待处理路段,得到目标路径。Optionally, the processing module 102 executes the method of generating the target path based on the intersection point and the first road section, including: determining the road section to be processed from the original path based on the intersection point and the original designated point of the original path; merging the first road section and the road section to be processed , to get the target path.

可选地,处理模块102执行基于交点和原路径的原指定点,从原路径中确定待处理路段的方式,包括:确定交点是否为原指定点;若交点是原指定点,则确定待处理路段为原路径;若交点不是原指定点,则删除原路径中与当前指定点的类型相同的原指定点与交点之间的第二路段,得到待处理路段。Optionally, the processing module 102 executes the method of determining the road segment to be processed from the original route based on the intersection point and the original designated point of the original route, including: determining whether the intersection point is the original designated point; The road segment is the original path; if the intersection point is not the original designated point, delete the second road segment between the original designated point and the intersection point in the original path, which is the same type as the current designated point, to obtain the road segment to be processed.

可选地,处理模块102执行删除原路径中与当前指定点的类型相同的原指定点与交点之间的第二路段,得到待处理路段的方式,包括:若当前指定点为当前起点,则原指定点为原起点,删除原路径中原起点与交点之间的第二路段,得到待处理路段;若当前指定点为当前终点,则原指定点为原终点,删除原路径中原终点与交点之间的第二路段,得到待处理路段。Optionally, the processing module 102 executes the method of deleting the second road segment between the original designated point and the intersection point of the same type as the current designated point in the original route to obtain the road segment to be processed, including: if the current designated point is the current starting point, then The original designated point is the original starting point, delete the second road section between the original starting point and the intersection point in the original path, and obtain the road section to be processed; The second road segment between is obtained to obtain the road segment to be processed.

可选地,辅助信息为设定点;Optionally, the auxiliary information is a set point;

处理模块102执行根据当前指定点的位置信息和辅助信息,生成辅助线的方式,包括:连接所当前指定点和设定点,并将当前指定点和设定点的连线作为辅助线。The processing module 102 performs a method of generating an auxiliary line based on the position information and auxiliary information of the currently designated point, including: connecting the currently designated point and the set point, and using the connecting line between the currently designated point and the set point as the auxiliary line.

可选地,辅助信息为设定线,设定线经过当前指定点;Optionally, the auxiliary information is a set line, and the set line passes through the current designated point;

处理模块102执行根据当前指定点的位置信息和辅助信息,生成辅助线的方式,包括:延长设定线直至与原路径相交,并将延长后的设定线作为辅助线。The processing module 102 performs a method of generating an auxiliary line based on the position information and auxiliary information of the currently designated point, including: extending the set line until it intersects with the original path, and using the extended set line as the auxiliary line.

可选地,辅助信息为设定直线斜率;Optionally, the auxiliary information is setting the slope of the straight line;

处理模块102执行根据当前指定点的位置信息和辅助信息,生成辅助线的方式,包括:根据当前指定点和设定直线斜率生成直线,并将直线作为辅助线。The processing module 102 executes the method of generating an auxiliary line based on the position information and auxiliary information of the currently designated point, including: generating a straight line according to the currently designated point and the set slope of the straight line, and using the straight line as the auxiliary line.

可选地,处理模块102执行生成当前指定点与交点之间的第一路段的方式,包括:若当前指定点和交点之间存在障碍物,则获取障碍物的位置信息;根据障碍物的位置信息进行避障路径规划,以生成不存在障碍物的第一路段。Optionally, the processing module 102 executes the method of generating the first road segment between the current designated point and the intersection point, including: if there is an obstacle between the current designated point and the intersection point, obtaining the position information of the obstacle; Information for obstacle avoidance path planning to generate the first road segment without obstacles.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的路径生成装置100的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the path generation device 100 described above can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.

请参照图12,图12示出了本申请实施例提供的无人设备10的方框示意图。本实施例中的无人设备可以是飞行器,也可以是无人车、无人船、机器人等,用户可以根据应用场景选择不同的设备,在此不做限定。无人设备10包括处理器11、存储器12及总线13,处理器11通过总线13与存储器12连接。Please refer to FIG. 12 , which shows a schematic block diagram of an unmanned device 10 provided by an embodiment of the present application. The unmanned device in this embodiment can be an aircraft, or an unmanned vehicle, an unmanned ship, a robot, etc. The user can choose different devices according to the application scenario, which is not limited here. The unmanned device 10 includes a processor 11 , a memory 12 and a bus 13 , and the processor 11 is connected to the memory 12 through the bus 13 .

存储器12用于存储程序,例如图11所示的路径生成装置100,路径生成装置100包括至少一个可以软件或固件(firmware)的形式存储于存储器12中的软件功能模块,处理器11在接收到执行指令后,执行所述程序以实现上述实施例揭示的路径生成方法。The memory 12 is used to store programs, such as the path generating device 100 shown in FIG. After the instruction is executed, the program is executed to implement the path generation method disclosed in the above embodiments.

存储器12可能包括高速随机存取存储器(Random Access Memory,RAM),也可能还包括非易失存储器(non-volatile memory,NVM)。The memory 12 may include a high-speed random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory, NVM).

处理器11可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器11中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器11可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、微控制单元(Microcontroller Unit,MCU)、复杂可编程逻辑器件(Complex Programmable LogicDevice,CPLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、嵌入式ARM等芯片。The processor 11 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 11 or instructions in the form of software. The above-mentioned processor 11 can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a micro control unit (Microcontroller Unit, MCU), a complex programmable logic device (Complex Programmable LogicDevice, CPLD), a field programmable gate Array (Field Programmable Gate Array, FPGA), embedded ARM and other chips.

本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器11执行时实现上述实施例揭示的路径生成方法。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 11, the path generation method disclosed in the above-mentioned embodiment is implemented.

综上所述,本申请实施例提供的一种路径生成方法、装置、无人设备及存储介质,当原路径的指定点发生变更时,首先获取当前指定点的位置信息和辅助信息,并生成经过当前指定点的辅助线;然后,确定出辅助线和原路径首次相交的交点,并生成当前指定点和交点之间的第一路段,进而基于交点和第一路段生成目标路径,从而无需丢弃原路径即可生成目标路径,提高了路径规划的效率和无人设备的作业效率。To sum up, in the route generation method, device, unmanned equipment and storage medium provided by the embodiments of the present application, when the designated point of the original route is changed, the location information and auxiliary information of the current designated point are first obtained, and generated The auxiliary line passing through the current specified point; then, determine the intersection point where the auxiliary line intersects with the original path for the first time, and generate the first road segment between the current designated point and the intersection point, and then generate the target path based on the intersection point and the first road segment, so that there is no need to discard The target path can be generated from the original path, which improves the efficiency of path planning and the operation efficiency of unmanned equipment.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (11)

1. A method for path generation, the method comprising:
responding to a designated point change instruction, and acquiring position information and auxiliary information of a current designated point, wherein the auxiliary information represents a direction from the current designated point to an original path, and the current designated point comprises a current starting point and/or a current end point;
generating an auxiliary line according to the position information of the current designated point and the auxiliary information, wherein the current designated point is positioned on the auxiliary line;
determining an intersection point of the auxiliary line and the original path, wherein the intersection point comprises an intersection point corresponding to the current starting point and/or an intersection point corresponding to the current end point;
generating a first road segment between the current designated point and the intersection point, wherein the first road segment comprises a first road segment between the current starting point and the intersection point corresponding to the current starting point and/or a first road segment between the current terminal point and the intersection point corresponding to the current terminal point;
generating a target path based on the intersection point and the first segment;
if the intersection point is not the original starting point and/or the original end point of the original path, the target path is the sum of the first road section, the road section between the intersection point corresponding to the current starting point and the original end point in the original path, and/or the road section between the intersection point corresponding to the current end point and the original starting point in the original path; and if the intersection point is the original starting point and/or the original end point of the original path, the target path is the sum of the first road section and the original path.
2. The method of claim 1, wherein the step of generating a target path based on the intersection point and the first segment comprises:
determining a road section to be processed from the original path based on the intersection point and the original designated point of the original path;
and combining the first road section and the road section to be processed to obtain the target path.
3. The method of claim 2, wherein the step of determining a road segment to be processed from the original route based on the intersection point and an originally specified point of the original route comprises:
determining whether the intersection point is the originally designated point;
if the intersection point is the original designated point, determining the road section to be processed as the original path;
and if the intersection point is not the original designated point, deleting a second road section between the original designated point and the intersection point, which are in the same type as the current designated point, in the original path to obtain the road section to be processed.
4. The method according to claim 3, wherein the step of deleting the second segment between the original designated point and the intersection point in the original path to obtain the segment to be processed comprises:
if the current designated point is the current starting point, the original designated point is the original starting point, and a second road section between the original starting point and the intersection point in the original path is deleted to obtain the road section to be processed;
and if the current designated point is the current end point, the original designated point is the original end point, and a second road section between the original end point and the intersection point in the original path is deleted to obtain the road section to be processed.
5. The method of claim 1, wherein the auxiliary information is a set point;
the step of generating an auxiliary line based on the position information of the currently specified point and the auxiliary information includes:
and connecting the current designated point and the set point, and using a connecting line of the current designated point and the set point as the auxiliary line.
6. The method of claim 1, wherein the auxiliary information is a set line passing through the currently specified point;
the step of generating an auxiliary line based on the position information of the currently specified point and the auxiliary information includes:
and extending the setting line until the setting line is intersected with the original path, and taking the extended setting line as the auxiliary line.
7. The method of claim 1, wherein the auxiliary information is a set straight line slope;
the step of generating an auxiliary line based on the position information of the currently specified point and the auxiliary information includes:
and generating a straight line according to the current specified point and the set straight line slope, and taking the straight line as the auxiliary line.
8. The method of claim 1, wherein the step of generating the first road segment between the currently specified point and the intersection point comprises:
if an obstacle exists between the current designated point and the intersection point, acquiring position information of the obstacle;
and planning an obstacle avoidance path according to the position information of the obstacle so as to generate the first road section without the obstacle.
9. A path generation apparatus, characterized in that the apparatus comprises:
the acquisition module is used for responding to a change instruction of the appointed point, and acquiring the position information and the auxiliary information of the current appointed point, wherein the auxiliary information represents the direction from the current appointed point to an original path, and the current appointed point comprises a current starting point and/or a current end point;
a processing module to:
generating an auxiliary line according to the position information of the current designated point and the auxiliary information, wherein the current designated point is positioned on the auxiliary line;
determining an intersection point of the auxiliary line and the original path, wherein the intersection point comprises an intersection point corresponding to the current starting point and/or an intersection point corresponding to the current end point;
generating a first road segment between the current designated point and the intersection point, wherein the first road segment comprises a first road segment between the current starting point and the intersection point corresponding to the current starting point and/or a first road segment between the current terminal point and the intersection point corresponding to the current terminal point;
generating a target path based on the intersection point and the first segment;
if the intersection point is not the original starting point and/or the original end point of the original path, the target path is the sum of the first road section, the road section between the intersection point corresponding to the current starting point and the original end point in the original path, and/or the road section between the intersection point corresponding to the current end point and the original starting point in the original path; and if the intersection point is the original starting point and/or the original end point of the original path, the target path is the sum of the first road section and the original path.
10. An unmanned device, comprising:
one or more processors;
memory storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN202011632664.1A 2020-12-31 2020-12-31 Path generation method and device, unmanned equipment and storage medium Active CN112633600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011632664.1A CN112633600B (en) 2020-12-31 2020-12-31 Path generation method and device, unmanned equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011632664.1A CN112633600B (en) 2020-12-31 2020-12-31 Path generation method and device, unmanned equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112633600A CN112633600A (en) 2021-04-09
CN112633600B true CN112633600B (en) 2022-12-27

Family

ID=75289940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011632664.1A Active CN112633600B (en) 2020-12-31 2020-12-31 Path generation method and device, unmanned equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112633600B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114675656A (en) * 2022-04-22 2022-06-28 上海快仓智能科技有限公司 Robot path planning method, device, equipment, storage medium and program product

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005017855A1 (en) * 2003-07-17 2005-02-24 Harman Becker Automotive Systems Gmbh Route calculation around traffic obstacles using marked diversions
JP4522294B2 (en) * 2005-03-17 2010-08-11 三洋電機株式会社 Route search apparatus and route search method
CN102200440A (en) * 2010-03-25 2011-09-28 苏州汉扬精密电子有限公司 Vehicle navigation system and method
JP6789893B2 (en) * 2017-07-11 2020-11-25 エスゼット ディージェイアイ テクノロジー カンパニー リミテッドSz Dji Technology Co.,Ltd Information processing equipment, air vehicles, transportation network generation methods, transportation methods, programs, and recording media
US10964220B2 (en) * 2018-09-11 2021-03-30 The Boeing Company Methods and apparatus for providing continuous flight trajectories for aircraft
CN111829539A (en) * 2019-04-23 2020-10-27 广州数鹏通科技有限公司 Navigation path planning method and device, navigation terminal and storage medium
CN110567479B (en) * 2019-10-21 2021-03-09 合肥工业大学 Shortest path acquisition method considering channel change in congestion
CN111752302B (en) * 2020-02-26 2021-09-10 广州极飞科技股份有限公司 Path planning method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112633600A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US20190314991A1 (en) Method for controlling robot movement and robot
KR20190080782A (en) Method for planning robot motion path, device, recording medium and terminal device
CN110146098A (en) A kind of robot map enlargement method, device, control equipment and storage medium
CN103150018B (en) Gesture identification method and device
US12179364B2 (en) Motion trajectory planning method for robotic manipulator, robotic manipulator and computer-readable storage medium
US10466877B2 (en) Method and device for selecting entity in drawing
CN116952252B (en) Method for adjusting moving path, terminal equipment and medium
CN116952253B (en) Method for adjusting moving path, terminal device and storage medium
US11609547B2 (en) Gestural control of an industrial robot
WO2020024226A1 (en) Route planning method and apparatus for plot operation, plot operation method and apparatus, and device and medium
CN112633600B (en) Path generation method and device, unmanned equipment and storage medium
CN112797983B (en) Path planning method, path planning device, unmanned equipment and storage medium
CN115933751A (en) Full-coverage path planning method, device and electronic equipment for unmanned agricultural machinery
CN112504276B (en) Path planning method, device, unmanned equipment and storage medium
WO2024222011A1 (en) Mobile robot and navigation method and apparatus therefor, and device, medium and product
US20200209876A1 (en) Positioning method and apparatus with the same
CN115609594B (en) Planning method and device for mechanical arm path, upper control end and storage medium
CN115167439B (en) A path planning method, device, equipment and storage medium for a quadruped robot
CN113985882B (en) Job path planning method, job path planning device, electronic equipment and storage medium
WO2025246702A1 (en) Driving path generation system and method
CN111844021B (en) Mechanical arm cooperative control method, device, equipment and storage medium
CN115493581B (en) Robot movement map generation method, device, equipment and storage medium
CN113253687B (en) Method and device for optimizing scheduling based on arc connectivity and electronic equipment
CN114253261B (en) Path generation method, job control method and related device
CN116442218A (en) Teleoperation tracking method, device, equipment, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant after: XAG Co., Ltd.

Address before: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: Guangzhou Xaircraft Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510000 Guangdong Province Guangzhou City Huangpu District Xinrui Road No. 9 Building 1 101 Room

Patentee after: XAG Co., Ltd.

Country or region after: China

Address before: 510000 Block C, 115 Gaopu Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: XAG Co., Ltd.

Country or region before: China