Method and device for adding obstacles, electronic equipment and storage medium

文档序号:1950492 发布日期:2021-12-10 浏览:9次 中文

阅读说明:本技术 一种添加障碍的方法、装置、电子设备及存储介质 (Method and device for adding obstacles, electronic equipment and storage medium ) 是由 张飞 吴俊镐 万永辉 唐旋来 李通 于 2021-09-03 设计创作,主要内容包括:本发明实施例公开了一种添加障碍的方法、装置、电子设备及存储介质。其中,该方法包括:通过安装于机器人身上的雷达扫描设备,采集预设扫描范围内的环境信息;获取机器人当前位置点,判断机器人当前位置点是否满足预设的雷达点确定条件,若是,则在机器人当前位置显示候选雷达点至目标地图中,确定并保存所述环境信息;响应于障碍点添加指令,确定候选雷达点中的目标雷达点,查找目标雷达点的目标环境信息,将目标环境信息中的至少一个障碍点添加至目标地图中。实现在推动机器人行走后对周围环境随时查看,提高障碍点的添加效率。(The embodiment of the invention discloses a method and a device for adding obstacles, electronic equipment and a storage medium. Wherein, the method comprises the following steps: collecting environmental information in a preset scanning range through radar scanning equipment arranged on a robot body; acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determination condition, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing the environmental information; and responding to the obstacle point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one obstacle point in the target environment information to the target map. The robot is pushed to walk and then the surrounding environment is checked at any time, and the adding efficiency of the obstacle points is improved.)

1. A method of adding obstacles, comprising:

collecting environmental information in a preset scanning range through radar scanning equipment arranged on a robot body;

acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determination condition, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing the environmental information;

and responding to a barrier point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one barrier point in the target environment information to the target map.

2. The method of claim 1, wherein determining whether the current position point of the robot satisfies a preset radar point determination condition comprises:

determining whether the distance between the current position point of the robot and the last candidate radar point exceeds a preset radar point distance threshold value or not;

and if so, determining that the current position point of the robot meets a preset radar point determination condition.

3. The method of claim 1, wherein determining whether the current position point of the robot satisfies a preset radar point determination condition further comprises:

determining the current time of the robot at the current position point and the historical time of the robot for generating the last candidate radar point;

judging whether the time difference between the current time and the historical time exceeds a preset time threshold value or not;

and if so, determining that the current position point of the robot meets a preset radar point determination condition.

4. The method of claim 1, wherein determining a target radar point of the candidate radar points comprises:

determining at least one target radar point selected by a user from the candidate radar points in response to the radar point viewing instruction; alternatively, the first and second electrodes may be,

in response to the all radar point look-up instructions, all candidate radar points are determined as target radar points.

5. The method of claim 1, wherein adding at least one obstacle point in the target environment information to the target map comprises:

in response to an obstacle point selection instruction, determining obstacle point coordinates of a selected obstacle point to be added in the target map;

and judging whether the coordinates of the obstacle points are located in the target environment information, if so, adding the obstacle points to be added into the target map.

6. The method of claim 1, before collecting the environmental information within the preset scanning range by a radar scanning device installed on the robot body, further comprising:

and acquiring a current position point of the robot, determining a current path point according to the current position point of the robot, and establishing a connecting line between the current path point and the previous path point as a running path of the robot.

7. The method of claim 6, wherein determining the current waypoint from the current location point of the robot comprises:

judging whether the current position point of the robot is within a preset path range, if so, determining whether the current position point of the robot meets a preset path point establishment condition; the first path point is a preset robot running starting point;

and if so, determining the current position point as the current path point of the robot driving path.

8. The method of claim 7, wherein the robot current location point is a location point other than a first waypoint;

if the current position point of the robot is within the path range, determining whether the current position point of the robot meets a preset path point establishing condition, wherein the step comprises the following steps:

if the current position point of the robot is within the path range, determining the distance between the current position point of the robot and the previous path point according to the positions of the current position point and the previous path point of the robot;

and judging whether the distance between the current position point of the robot and the previous path point exceeds a preset distance threshold value, if so, determining that the current position point of the robot meets a preset path point establishment condition.

9. The method of claim 6, wherein establishing a connection between the current waypoint and the previous waypoint comprises:

determining a road section distance between the current path point and any candidate path point in the target map;

and judging whether the current path point and the candidate path point meet a preset path point connection condition or not according to the road section distance, and if so, establishing a bidirectional line between the current path point and the candidate path point.

10. The method according to claim 9, wherein determining whether a preset waypoint connection condition is satisfied between the current waypoint and the candidate waypoint according to the link distance comprises:

comparing the road section distance with a preset road section length threshold;

and judging whether the road section distance exceeds a preset road section length threshold value, and if not, determining that the preset path point connection condition is met between the current path point and the candidate path point.

11. The method of claim 6, wherein after establishing a connection line between the current path point and the previous path point as the travel path of the robot, the method further comprises:

responding to a target point setting instruction, and acquiring the current position and the current orientation of the robot;

and determining the current position of the robot as the position of the target point, and determining the current orientation of the robot as the parking orientation of the robot at the target point.

12. The method of claim 11, after acquiring the current position and the current orientation of the robot in response to the target point setting instruction, further comprising:

determining the stopping distance between any path point on the target map and the current position of the robot according to the current position of the robot;

comparing the stopping distance with a preset stopping distance threshold;

and if any stopping distance is smaller than or equal to the preset stopping distance threshold, determining that the current position of the robot cannot be set as the target point, and sending out prompt information for resetting the target point on a screen of the robot.

13. An apparatus for adding obstacles, comprising:

the environment information acquisition module is used for acquiring environment information in a preset scanning range through radar scanning equipment arranged on a robot body;

the radar point determining module is used for acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determining condition or not, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing the environmental information;

and the obstacle point adding module is used for responding to an obstacle point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one obstacle point in the target environment information to the target map.

14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of adding obstacles according to any one of claims 1-12 when executing the program.

15. A storage medium containing computer-executable instructions for performing the method of adding obstacles of any of claims 1-12 when executed by a computer processor.

Technical Field

The embodiment of the invention relates to a computer mapping technology, in particular to a method and a device for adding obstacles, electronic equipment and a storage medium.

Background

In order to safely travel in a predetermined area, it is necessary to add an accurate obstacle point to a map of a travel area of the robot before the robot is actually used, and to safely avoid the robot from the obstacle point while the robot travels.

In the prior art, when a World Wide Web (Web) is created, a worker needs to edit an obstacle again on a map by using a map editor after determining the obstacle point, which causes inaccurate obstacle point addition and affects the obstacle point addition efficiency.

Disclosure of Invention

The embodiment of the invention provides a method and a device for adding obstacles, electronic equipment and a storage medium, and aims to improve the adding efficiency of obstacle points.

In a first aspect, an embodiment of the present invention provides a method for adding obstacles, where the method includes:

collecting environmental information in a preset scanning range through radar scanning equipment arranged on a robot body;

acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determination condition, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing the environmental information;

and responding to a barrier point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one barrier point in the target environment information to the target map.

In a second aspect, an embodiment of the present invention further provides an apparatus for adding obstacles, where the apparatus includes:

the environment information acquisition module is used for acquiring environment information in a preset scanning range through radar scanning equipment arranged on a robot body;

the radar point determining module is used for acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determining condition or not, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing the environmental information;

and the obstacle point adding module is used for responding to an obstacle point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one obstacle point in the target environment information to the target map.

In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for adding obstacles according to any embodiment of the present invention.

In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a method of adding obstacles as described in any of the embodiments of the present invention.

According to the embodiment of the invention, the current environmental information is scanned in real time, whether the current position point of the robot meets the preset radar point determination condition is judged, a plurality of candidate radar points are added on the target map, and the environmental information of each candidate radar point is stored. After the robot is pushed to walk, the working personnel can check the target environment information of any radar point on the robot screen at any time, and determine whether obstacles exist around the radar point according to the target environment information, so that obstacle points are added on a target map. The problem of among the prior art, can't scan the barrier with the radar is solved, the process of user's manual editting drawing has been reduced, through storage environmental information, avoids the user to add wrong barrier point, improves the interpolation precision and the efficiency of barrier point.

Drawings

FIG. 1 is a flow chart of a method for adding obstacles according to a first embodiment of the present invention;

FIG. 2 is a flow chart of a method for adding obstacles according to a second embodiment of the present invention;

FIG. 3 is a flow chart illustrating a method for adding obstacles in a third embodiment of the present invention

FIG. 4 is a block diagram of a flow chart of an apparatus for adding obstacles in a fourth embodiment of the present invention;

fig. 5 is a schematic structural diagram of an apparatus for adding obstacles in a fifth embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

Example one

Fig. 1 is a flowchart illustrating a method for adding obstacles according to an embodiment of the present invention, where the embodiment is applicable to a case where an obstacle point in a driving process is added to a robot, and the method may be performed by an apparatus for adding obstacles. As shown in fig. 1, the method specifically includes the following steps:

and 110, collecting environmental information in a preset scanning range through radar scanning equipment arranged on a robot body.

The robot is driven by workers to walk in an actual working scene, radar scanning equipment is mounted on the robot, and the scanning range of the radar scanning equipment can be preset. When the robot is pushed to walk, the radar scanning equipment scans the surrounding environment in real time to acquire the environmental information of the radar scanning equipment in a preset scanning range. For example, the environmental information within the preset scanning range may be acquired in the form of an image.

And 120, acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determination condition, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing environmental information.

The robot is driven by the staff to walk in an actual operation place, and the current position of the robot is obtained in real time while the robot walks. A radar point determination condition is set in advance, and for example, the radar point determination condition may be that a candidate radar point is set every 5 meters. After the robot obtains the current position, whether the current position point meets the preset radar point determination condition or not can be automatically judged. If not, the robot continues to acquire a new current position point; if yes, the current position point is used as a candidate radar point to be displayed in the target map, and all the candidate radar points which are determined currently can be displayed in the target map. The target map is a workplace map of the robot, and the target map may include an automatic travel path, a radar point, an obstacle point, a stop point, and the like. The robot is provided with radar scanning equipment, and after the current position point is determined to be a candidate radar point, the acquired environmental information in the preset scanning range of the current position point is stored, so that the environmental information can be stored in the form of an image. For example, environment information within a range of 3 meters as a radius centered on the current position is acquired. The candidate radar points can be numbered, and the acquired environment information and the numbers of the candidate radar points are stored in a correlation mode, so that the environment information can be called conveniently in the follow-up process.

Step 130, responding to the obstacle point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one obstacle point in the target environment information to the target map.

The environment information of any candidate radar point in the target map can be checked at any time by the staff in the process of pushing the robot to walk or after the robot walks. The staff can send out an obstacle point adding instruction on the screen of the robot, the robot responds to the obstacle point adding instruction, selects a target radar point from the candidate radar points, searches the environment information of the target radar point from the stored environment information of each candidate radar point to be used as target environment information, and displays the target environment information on the screen of the robot. For example, a new layer may be added on the screen to show the image of the target environment information.

After checking the target environment information scanned by the candidate radar points, the staff can determine whether an obstacle exists in the target environment information and determine the position of the obstacle, wherein the position of the obstacle is the obstacle point. According to the position of the obstacle, the worker can add the obstacle point on the target map, for example, the worker performs double click on the target map, and determines the coordinate of the obstacle point to be added on the target map according to the coordinate position of the double click sent by the worker on the target map, for example, the position of the double click performed by the worker on the target map is the coordinate position of the obstacle point to be added.

According to the embodiment of the invention, the current environmental information is scanned in real time, whether the current position point of the robot meets the preset radar point determination condition is judged, a plurality of candidate radar points are added on the target map, and the environmental information of each candidate radar point is stored. After the robot is pushed to walk, the working personnel can check the target environment information of any radar point on the robot screen at any time, and determine whether obstacles exist around the radar point according to the target environment information, so that obstacle points are added on a target map. The problem of among the prior art, can't scan the barrier with the radar is solved, the process of user's manual editting drawing has been reduced, through storage environmental information, avoids the user to add wrong barrier point, improves the interpolation precision and the efficiency of barrier point.

Example two

Fig. 2 is a flowchart illustrating a method for adding obstacles according to a second embodiment of the present invention, which is an alternative embodiment based on the above-mentioned embodiments.

In this embodiment, at least one obstacle point in the target environment information is added to the target map, and may be detailed as: in response to an obstacle point selection instruction, determining obstacle point coordinates of the selected obstacle point to be added in the target map; and judging whether the coordinates of the obstacle points are located in the target environment information, if so, adding the obstacle points to be added into the target map.

As shown in fig. 2, the method specifically includes the following steps:

and step 210, collecting environmental information in a preset scanning range through radar scanning equipment arranged on a robot body.

And step 220, acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determination condition, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing environmental information.

The robot is driven by the staff to walk in an actual operation place, and the current position of the robot is obtained in real time while the robot walks. A radar point determining condition is preset, and after the robot obtains the current position, whether the current position point meets the preset radar point determining condition or not can be automatically judged. If not, the robot continues to acquire a new current position point; and if so, displaying the current position point as a candidate radar point in the target map. After the robot determines that the current position point is the candidate radar point, the robot stores the acquired environment information in the preset scanning range of the current position point, and the environment information can be stored in the form of an image.

In this embodiment, optionally, the determining whether the current position point of the robot meets the preset radar point determination condition includes: determining whether the distance between the current position point of the robot and the last candidate radar point exceeds a preset radar point distance threshold value or not; and if so, determining that the current position point of the robot meets a preset radar point determination condition.

Specifically, a radar point distance threshold between two candidate radar points may be preset, and one candidate radar point may be generated when the robot walks for each radar point distance threshold, that is, the preset radar point determination condition may be that the distance between the two candidate radar points exceeds the preset radar point distance threshold. The first candidate radar point may be preset as the starting point for the robot action. And in the process of pushing the robot, acquiring the current position point of the robot in real time, comparing the current position point with the position of the previous candidate radar point, and determining the distance between the current position point and the previous candidate radar point. If the distance between the current position point of the robot and the last candidate radar point exceeds a preset radar point distance threshold value, the current position point of the robot is determined to meet a preset radar point determination condition, and the current position point of the robot can be set as the candidate radar point to be displayed in a target map. And if the distance between the current position point of the robot and the last candidate radar point does not exceed the preset radar point distance threshold, determining that the current position point of the robot does not meet the preset radar point determination condition, and continuously acquiring a new current position by the robot until the distance between the current position point and the last candidate radar point exceeds the preset radar point distance threshold. For example, the robot may be set to set one candidate radar point per 2 meters of walking. The beneficial effect who sets up like this lies in, can reduce staff's operation according to radar point distance threshold value automatic determination candidate radar point, and can make candidate radar point evenly distributed, avoids the omission of surrounding environment information, improves the interpolation efficiency and the precision of obstacle point.

In this embodiment, optionally, determining whether the current position point of the robot meets a preset radar point determination condition further includes: determining the current time of the robot at the current position point and the historical time of the robot for generating the last candidate radar point; judging whether the time difference between the current time and the historical time exceeds a preset time threshold value or not; and if so, determining that the current position point of the robot meets a preset radar point determination condition.

Specifically, a radar point determination condition is preset, and the radar point determination condition may be that a time difference between two candidate radar points is generated to exceed a preset time threshold. And recording the generation time of the candidate radar point every time the robot generates one candidate radar point, and storing the generation time as historical time. The robot acquires the current time at the current position in real time, and determines the time difference between the current time and the historical time according to the current time and the historical time of the last candidate radar point. And comparing the obtained time difference with a preset time threshold value, and judging whether the time difference between the current time and the historical time exceeds the preset time threshold value. If not, determining that the current position point is not set as a candidate radar point, and continuously acquiring new current time by the robot; if the current position point of the robot meets the preset radar point determination condition, the current position point can be set as a candidate radar point, and the current position point is displayed on the target map by using the preset icon of the candidate radar point. For example, the robot may be set to generate one candidate radar point every 10 seconds. The beneficial effect who sets up like this lies in, realizes that the robot automatically generation candidate radar point reduces user operation, improves the generation efficiency of radar point, and then improves the definite efficiency of obstacle point.

And step 230, responding to the obstacle point adding instruction, determining a target radar point in the candidate radar points, and searching for target environment information of the target radar point.

The method comprises the steps that a user sends out an obstacle point adding instruction on a target map of a robot screen, candidate radar points are selected, and the selected candidate radar points are used as target radar points. In this embodiment, the number of target radar points is not limited.

In this embodiment, optionally, the determining a target radar point in the candidate radar points includes: determining at least one target radar point selected by a user from the candidate radar points in response to the radar point viewing instruction; alternatively, all candidate radar points are determined as target radar points in response to the all radar point view instruction.

Specifically, the user may select at least one target radar point from the candidate radar points one or more times, or all the candidate radar points may be used as the target radar points. The user can select one or more target radar points from the candidate radar points and send out a radar point viewing instruction to view the environment information. For example, the worker may click on the candidate radar points on the target map in a touch manner to serve as the target radar points, and the environment information scanned by all the candidate radar points is not displayed on the screen of the robot, but only the environment information of the selected target radar points is displayed. The staff member can also trigger the control of displaying all radar point information without selecting candidate radar points. If the staff sends out all radar point viewing instructions, all candidate radar points can be used as target radar points, radar information scanned by all candidate radar points can be displayed on the screen, for example, the environmental information of all candidate radar points can be spliced into the overall environmental information of the actual operation place, so that the staff can view the obstacle distribution situation of the whole actual operation place. The beneficial effect who sets up like this lies in, through selecting target radar point, can show whole or local barrier distribution condition on the screen, makes the staff can look over everywhere barrier directly perceivedly, confirms the position of barrier, avoids the omission of information, improves the definite efficiency and the precision of barrier point.

Step 240, responding to the obstacle point selection instruction, and determining the obstacle point coordinates of the selected obstacle point to be added in the target map; and judging whether the coordinates of the obstacle points are located in the target environment information, if so, adding the obstacle points to be added into the target map.

After looking up the target environment information of the target radar point, the user can know the obstacle information in the environment, for example, obtain the position of the obstacle. According to the obstacle information, an obstacle point may be added on the target map. The user can send out an obstacle point selection instruction on the target map, for example, the user can perform double-click on any position on the target map, the double-click operation is sending out the obstacle point selection instruction, and the position of the double-click is the position of the obstacle point to be added. The robot determines the position of the obstacle point selected by the user, and adds the position of the obstacle point selected by the user as the obstacle point to the target map. When the user adds the obstacle point, the location of the double click may not be the location within the viewed target environment information. That is, although the user can view the target environment information of the target radar point, when the user adds the obstacle point, it cannot be guaranteed that the obstacle point is always within the target environment information. In this embodiment, to avoid the error of the obstacle point adding position, after the position of the obstacle point is selected, it may be determined whether the position of this point is in the target environment information. The staff can select the target radar point first, look over the target environmental information of target radar point, confirm the position of barrier according to target environmental information. After the obstacle point to be added is selected, whether the coordinate of the obstacle point to be added is located in the target environment information or not can be determined, if not, a worker is prompted to have an error in the adding position of the obstacle point, and the worker checks the error; if yes, the obstacle point to be added can be added into the target map. The coordinates of the obstacle points may not be compared with the environmental information ranges of the radar points, and the obstacle points may be added to the target map as long as an obstacle point adding instruction of the worker is received.

According to the embodiment of the invention, the current environmental information is scanned in real time, whether the current position point of the robot meets the preset radar point determination condition is judged, a plurality of candidate radar points are added on the target map, and the environmental information of each candidate radar point is stored. After the pushing robot walks, the staff can check the target environment information of any radar point at any time on the robot screen, determine whether obstacles exist around the radar point according to the target environment information, judge whether the obstacle point to be added is located in the target environment, and if so, add the obstacle point on the target map. The problem of among the prior art, can't scan the barrier with the radar is solved, the process of user's manual editting drawing has been reduced, through storage environmental information, avoids the user to add wrong barrier point, improves the interpolation precision and the efficiency of barrier point.

EXAMPLE III

Fig. 3 is a flowchart illustrating a method for adding obstacles according to a third embodiment of the present invention, which is an alternative embodiment based on the above-mentioned embodiments and can be performed by an apparatus for adding obstacles. As shown in fig. 3, the method specifically includes the following steps:

and 310, acquiring a current position point of the robot, determining a current path point according to the current position point of the robot, and establishing a connection line between the current path point and the previous path point as a running path of the robot.

The worker can push the robot to walk in the actual operation place according to the pre-planned path, for example, the pre-planned path of the worker is a path for pushing the robot to walk in a 'return' shape in the actual operation place. The path range of the robot walking is preset, and the path range refers to the maximum range of the path when the robot walks, namely the robot cannot walk in a space outside the path range. The robot acquires the current position point in real time in the walking process and judges whether the current position point is within a preset path range. If not, determining that the current position point of the robot exceeds the path range, and not taking the current position point as the path point to prompt the staff to push the robot to the position within the path range. If the current position point of the robot is determined to be within the preset path range, determining whether the current position point of the robot meets a preset path point establishing condition, namely determining whether the current position point can be set as a path point. For example, the preset path point establishing condition is that the number of path points cannot exceed 10, and if the number of path points is 11 after the current position point is taken as a path point, it is determined that the current position point does not satisfy the preset path point establishing condition, and the current position point cannot be taken as a path point. The waypoints are position points on the robot travel path, the first waypoint may be a start point of the travel path, and the last waypoint may be an end point of the travel path. When a current path point is determined, a connection line between the current path point and the previous path point can be established on a target map, wherein the target map is displayed on a screen, and the screen is installed on the robot body. The connecting line between the current path point and the previous path point can be a bidirectional line, and the bidirectional line means that the running direction of the robot can run from the current path point to the previous path point and can also run from the previous path point to the current path point. And when the staff pushes the robot to move to the path end point, the addition of the running path of the robot is completed.

In this embodiment, optionally, determining the current path point according to the current position point of the robot includes: judging whether the current position point of the robot is within a preset path range, if so, determining whether the current position point of the robot meets a preset path point establishment condition; the first path point is a preset robot running starting point; and if so, determining the current position point as the current path point of the robot driving path.

Specifically, in the process that the working personnel push the robot, the current position point of the robot is obtained in real time. The current waypoint may be a location point other than the first waypoint, and the first waypoint may be a preset robot travel starting point. And determining whether the current position point of the robot is within the path range or not according to the path range of the robot. If not, sending a prompt message on a screen to remind a worker to push the robot to be within the path range; if yes, further judging whether the current position point of the robot meets the preset path point establishment condition. The waypoint establishment condition is a condition for determining the current position point as a waypoint, which is a position point through which the robot passes when actually working. If the current position point of the robot is not in the path range, prompt information can be sent out to prompt staff to push the robot to the path range. The staff member may also add waypoints manually, for example, the corner positions may be set as waypoints. The efficiency and the precision of determining the path point are improved, and the working efficiency and the running precision of the robot are further improved.

In this embodiment, optionally, the current position point of the robot is a position point other than the first path point; if the current position point of the robot is within the path range, determining whether the current position point of the robot meets a preset path point establishing condition, wherein the step comprises the following steps: if the current position point of the robot is within the path range, determining the distance between the current position point of the robot and the previous path point according to the positions of the current position point and the previous path point of the robot; and judging whether the distance between the current position point of the robot and the previous path point exceeds a preset distance threshold value, if so, determining that the current position point of the robot meets a preset path point establishment condition.

Specifically, the first waypoint is the starting point of travel, a location predetermined for the worker. The working personnel pushes the robot to walk from the driving starting point, and the robot continuously acquires the current position point, wherein the current position point is a position point except the first path point, namely the current position point is a position point except the driving starting point. And after the current position point is determined to be within the path range, determining whether the current position point of the robot meets a preset path point establishment condition. The path point establishing condition may be whether a distance between the current position point and the previous path point exceeds a preset distance threshold, and if so, it is determined that the current position point of the robot meets a preset path point establishing condition. For example, if the preset distance threshold is 1.5 meters, a waypoint is established every 1.5 meters. Each time a waypoint is established, location information of the waypoint, which may be coordinates of the waypoint on the target map, is stored.

After the current position point of the robot is obtained, the position information of the previous path point is searched, and the distance between the current position point of the robot and the previous path point is determined according to the positions of the current position point of the robot and the previous path point. Comparing the distance between the current position point of the robot and the previous path point with a preset distance threshold, if the distance between the current position point of the robot and the previous path point exceeds the preset distance threshold, determining that the current position point of the robot meets a preset path point establishment condition, and determining the current position point as a path point. And if the distance between the current position point of the robot and the previous path point does not exceed the preset distance threshold, determining that the current position point of the robot does not meet the preset path point establishment condition, and continuously acquiring a new current position by the robot. The robot has the advantages that whether the current position point can be used as the path point or not can be judged in real time by setting the distance threshold, so that the robot can generate the path point in real time in the process of pushing the robot to walk by workers, and the adding efficiency of the path point is improved.

And if the current position point of the robot is determined to meet the preset path point establishing condition, taking the current position point of the robot as the current path point, and connecting the current path point with the last established path point to obtain a running path between the current path point and the last path point. And after the working personnel finish pushing the robot, obtaining a complete running path of the robot.

In this embodiment, optionally, the establishing a connection line between the current path point and the previous path point includes: determining a road section distance between the current path point and any candidate path point in the target map; and judging whether the current path point and the candidate path point meet the preset path point connection condition or not according to the distance of the road section, and if so, establishing a bidirectional line between the current path point and the candidate path point.

Specifically, after the current waypoint is determined, the current waypoint may be connected with the previous waypoint, or the current waypoint may be connected with other waypoints. The robot may obtain a link distance between the current waypoint and any one of candidate waypoints after determining the current waypoint, the candidate waypoint being a waypoint that has been generated in addition to the current path. And presetting a path point connection condition, and if the distance of the road section meets the path point connection condition, performing bidirectional line connection on the current path point and the candidate path point corresponding to the distance of the road section. Namely, one path point can be connected with one or more other path points, so that the diversity of the traveling paths of the robot during actual work is improved.

In this embodiment, optionally, determining whether the current waypoint and the candidate waypoint satisfy a preset waypoint connection condition according to the distance between the road sections includes: comparing the road section distance with a preset road section length threshold; and judging whether the road section distance exceeds a preset road section length threshold value, and if not, determining that the preset path point connection condition is met between the current path point and the candidate path point.

Specifically, the preset route point connection condition may be that the distance between the route section exceeds a preset route section length threshold, and after determining the distance between the current route point and the candidate route point, the distance between the route section and the preset route section length threshold is compared. If the distance of the road section does not exceed the preset road section length threshold value, it is determined that the preset path point connection condition is met between the current path point and the candidate path point, and the current path point and the candidate path point can be connected. The method comprises the steps of determining all path points, sequentially determining the distance between each path point and other path points after the path points are determined, comparing the distance between each path point and a path length threshold value, determining the distance between the path points smaller than a preset path length threshold value, connecting the two path points smaller than the path length threshold value to generate a connecting line between the path points, wherein the connecting line between all the path points is the driving path of the robot. The robot has the advantages that the problem that the positioning of the robot is influenced due to the fact that the distance between the two path points is too long is avoided, whether a walking path is correct or not can be determined according to the path points when the robot runs, and running efficiency and precision of the robot are improved.

Because the connecting line between two path points is a bidirectional line, when the robot walks to a repeated route, a worker can close the function of automatically generating the path points by the robot, and the problem that the robot repeatedly generates the path points and the path sections to cause data confusion is avoided. When the robot walks out of the repeated road section, the function of automatically generating the path points can be opened again, so that the robot can generate one path point at certain intervals, and the accuracy of determining the path is improved.

In this embodiment, optionally, after establishing a connection line between the current path point and the previous path point as a travel path of the robot, the method further includes: responding to a target point setting instruction, and acquiring the current position and the current orientation of the robot; the current position of the robot is determined as the position of the target point, and the current orientation of the robot is determined as the docking orientation of the robot at the target point.

Specifically, after the path is added, a target point may be added to the target map, where the target point is a point where the robot may stop in the driving process, for example, the target point may be an avoidance point or a charging pile. The avoidance point can be a position where the robot meets an obstacle in the driving process and waits for avoiding the obstacle. After the driving path is added on the target map, the working personnel can push the robot to reach the position of a planned target point in an actual operation place, turn the robot to the planned direction and send a target point setting instruction. And responding to the target point setting instruction, acquiring the current position and the current orientation of the robot, and taking the direction of the front face of the robot as the current orientation. The current position of the robot is determined as the position of a target point, and the current orientation of the robot is determined as the parking orientation of the robot at the target point, so that the robot automatically walks to the target point when needing to be parked, and is parked according to the current orientation direction. A plurality of target points can be set, and in the working process of the robot, if the robot needs to stop, the distances between the current position of the robot and all the target points are determined, and the target point with the closest distance is selected for stopping. The addition of the target point may be performed after the addition of the obstacle point, or the addition of the obstacle point may be performed after the addition of the target point.

In this embodiment, optionally, after acquiring the current position and the current orientation of the robot in response to the target point setting instruction, the method further includes: determining the stopping distance between any path point on the target map and the current position of the robot according to the current position of the robot; comparing the stopping distance with a preset stopping distance threshold; and if any stopping distance is smaller than or equal to the preset stopping distance threshold, determining that the current position of the robot cannot be set as the target point, and sending out prompt information for resetting the target point on a screen of the robot.

Specifically, the determination condition of the target point may be preset, for example, the determination condition of the target point may be that the distance between the target point and any one of the waypoints is greater than the stopping distance threshold, so as to avoid that the position of the target point is too close to the position of the waypoint, so as to ensure the meaning of setting the target point. The working personnel push the robot to the preset position of the target point, the robot obtains the current position and the positions of all path points on the target map, and the stopping distance between the current position and any path point is determined. And comparing the stopping distance with a preset stopping distance threshold, if at least one stopping distance is smaller than or equal to the preset stopping distance threshold, determining that the current position of the robot cannot be set as a target point, and sending a prompt message for resetting the target point on a robot screen to remind a worker to push the robot to a new position to set the target point. If each stopping distance at the current position is greater than the stopping distance threshold, the current position may be set as the target point. The beneficial effect of the arrangement is that the target point is prevented from being too close to the path point and losing the significance of the target point, so that the robot can effectively avoid when staying at the target point, and the running efficiency and the running safety of the robot are improved.

And 320, collecting environmental information in a preset scanning range through radar scanning equipment arranged on a robot body.

And 330, acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determination condition, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing environmental information.

Step 340, responding to the obstacle point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one obstacle point in the target environment information to the target map.

The embodiment of the invention establishes the connection line between the path points by determining the path points in real time to obtain the running path of the robot. After the driving path is obtained, scanning environment information near the path, judging whether the current position point of the robot meets a preset radar point determining condition, adding a plurality of candidate radar points on a target map, and storing the environment information of each candidate radar point. After the robot is pushed to walk, the working personnel can check the target environment information of any radar point on the robot screen at any time, and determine whether obstacles exist around the radar point according to the target environment information, so that obstacle points are added on a target map. The problem of among the prior art, can't scan the barrier with the radar is solved, the process of user's manual editting drawing has been reduced, through storage environmental information, avoids the user to add wrong barrier point, improves the interpolation precision and the efficiency of barrier point.

Example four

Fig. 4 is a block diagram of a device for adding obstacles according to a fourth embodiment of the present invention, which is capable of executing a method for adding obstacles according to any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method. As shown in fig. 4, the apparatus specifically includes:

the environment information acquisition module 401 is configured to acquire environment information within a preset scanning range through a radar scanning device installed on a robot body;

a radar point determining module 402, configured to obtain a current position of the robot, determine whether the current position point of the robot meets a preset radar point determining condition, if yes, display a candidate radar point in a target map at the current position of the robot, and determine and store the environment information;

the obstacle point adding module 403 is configured to determine a target radar point in the candidate radar points in response to an obstacle point adding instruction, search for target environment information of the target radar point, and add at least one obstacle point in the target environment information to the target map.

Optionally, the radar point determining module 402 is specifically configured to:

determining whether the distance between the current position point of the robot and the last candidate radar point exceeds a preset radar point distance threshold value or not;

and if so, determining that the current position point of the robot meets a preset radar point determination condition.

Optionally, the radar point determining module 402 is further specifically configured to:

determining the current time of the robot at the current position point and the historical time of the robot for generating the last candidate radar point;

judging whether the time difference between the current time and the historical time exceeds a preset time threshold value or not;

and if so, determining that the current position point of the robot meets a preset radar point determination condition.

Optionally, the obstacle point adding module 403 includes:

the radar point viewing unit is used for responding to the radar point viewing instruction and determining at least one target radar point selected from the candidate radar points by the user; alternatively, the first and second electrodes may be,

in response to the all radar point look-up instructions, all candidate radar points are determined as target radar points.

Optionally, the obstacle point adding module 403 further includes:

the obstacle point selection unit is used for responding to an obstacle point selection instruction and determining obstacle point coordinates of the selected obstacle point to be added in the target map;

and the obstacle point judging unit is used for judging whether the obstacle point coordinates are positioned in the target environment information, and if so, adding the obstacle point to be added into the target map.

Optionally, the apparatus further comprises:

and the path determining module is used for acquiring the current position point of the robot before acquiring the environmental information in the preset scanning range through the radar scanning equipment arranged on the robot body, determining the current path point according to the current position point of the robot, and establishing a connecting line between the current path point and the previous path point as a running path of the robot.

Optionally, the path determining module includes:

the path point judging unit is used for judging whether the current position point of the robot is within a preset path range, and if so, determining whether the current position point of the robot meets a preset path point establishing condition; the first path point is a preset robot running starting point;

and the path point determining unit is used for determining that the current position point is the current path point of the robot driving path if the current position point is the current path point of the robot driving path.

Optionally, the current position point of the robot is a position point other than the first path point;

correspondingly, the path point judging module is specifically configured to:

if the current position point of the robot is within the path range, determining the distance between the current position point of the robot and the previous path point according to the positions of the current position point and the previous path point of the robot;

and judging whether the distance between the current position point of the robot and the previous path point exceeds a preset distance threshold value, if so, determining that the current position point of the robot meets a preset path point establishment condition.

Optionally, the path determining module includes:

the road section distance determining unit is used for determining the road section distance between the current path point and any candidate path point in the target map;

and the road section distance judging unit is used for judging whether the connection condition of the current path point and the candidate path point meets the preset path point connection condition or not according to the road section distance, and if so, establishing a bidirectional line between the current path point and the candidate path point.

Optionally, the road section distance determining unit is specifically configured to:

comparing the road section distance with a preset road section length threshold;

and judging whether the road section distance exceeds a preset road section length threshold value, and if not, determining that the preset path point connection condition is met between the current path point and the candidate path point.

Optionally, the apparatus further comprises:

the target point setting module is used for responding to a target point setting instruction to acquire the current position and the current orientation of the robot after determining that the current position is the current path point of the robot driving path and establishing a two-way line between the current path point and the previous path point as the driving path of the robot;

and the target point determining module is used for determining the current position of the robot as the position of the target point and determining the current orientation of the robot as the parking orientation of the robot at the target point.

Optionally, the apparatus further comprises:

the target point judging module is used for determining the stopping distance between any path point on the target map and the current position of the robot according to the current position of the robot after responding to a target point setting instruction and acquiring the current position and the current orientation of the robot;

comparing the stopping distance with a preset stopping distance threshold;

and if any stopping distance is smaller than or equal to the preset stopping distance threshold, determining that the current position of the robot cannot be set as the target point, and sending out prompt information for resetting the target point on a screen of the robot.

According to the embodiment of the invention, the current environmental information is scanned in real time, whether the current position point of the robot meets the preset radar point determination condition is judged, a plurality of candidate radar points are added on the target map, and the environmental information of each candidate radar point is stored. After the robot is pushed to walk, the working personnel can check the target environment information of any radar point on the robot screen at any time, and determine whether obstacles exist around the radar point according to the target environment information, so that obstacle points are added on a target map. The problem of among the prior art, can't scan the barrier with the radar is solved, the process of user's manual editting drawing has been reduced, through storage environmental information, avoids the user to add wrong barrier point, improves the interpolation precision and the efficiency of barrier point.

EXAMPLE five

Fig. 5 is a schematic structural diagram of an apparatus for adding obstacles according to a fifth embodiment of the present invention. The device that adds obstacles is an electronic device and fig. 5 shows a block diagram of an exemplary electronic device 500 suitable for use in implementing embodiments of the present invention. The electronic device 500 shown in fig. 5 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.

As shown in fig. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 that couples the various system components (including the system memory 502 and the processing unit 501).

Bus 503 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

Electronic device 500 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 500 and includes both volatile and nonvolatile media, removable and non-removable media.

The system memory 502 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)504 and/or cache memory 505. The electronic device 500 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 506 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 by one or more data media interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.

A program/utility 508 having a set (at least one) of program modules 507 may be stored, for instance, in memory 502, such program modules 507 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 507 generally perform the functions and/or methodologies of embodiments of the invention as described herein.

The electronic device 500 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 510, etc.), with one or more devices that enable a user to interact with the electronic device 500, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 500 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 511. Also, the electronic device 500 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 512. As shown in FIG. 5, the network adapter 512 communicates with the other modules of the electronic device 500 over the bus 503. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.

The processing unit 501 executes various functional applications and data processing by executing programs stored in the system memory 502, for example, to implement a method for adding obstacles provided by the embodiment of the present invention, including:

collecting environmental information in a preset scanning range through radar scanning equipment arranged on a robot body;

acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determination condition, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing the environmental information;

and responding to a barrier point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one barrier point in the target environment information to the target map.

EXAMPLE six

The sixth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements a method for adding obstacles according to the sixth embodiment of the present invention, including:

collecting environmental information in a preset scanning range through radar scanning equipment arranged on a robot body;

acquiring a current position point of the robot, judging whether the current position point of the robot meets a preset radar point determination condition, if so, displaying candidate radar points to a target map at the current position of the robot, and determining and storing the environmental information;

and responding to a barrier point adding instruction, determining a target radar point in the candidate radar points, searching target environment information of the target radar point, and adding at least one barrier point in the target environment information to the target map.

Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:地图生成方法、装置、系统、存储介质及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!