CN113524193B - Robot motion space marking method and device, robot and storage medium - Google Patents

Robot motion space marking method and device, robot and storage medium Download PDF

Info

Publication number
CN113524193B
CN113524193B CN202110895691.6A CN202110895691A CN113524193B CN 113524193 B CN113524193 B CN 113524193B CN 202110895691 A CN202110895691 A CN 202110895691A CN 113524193 B CN113524193 B CN 113524193B
Authority
CN
China
Prior art keywords
robot
point
point cloud
risk
map
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
CN202110895691.6A
Other languages
Chinese (zh)
Other versions
CN113524193A (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.)
Noah Robot Technology Shanghai Co ltd
Original Assignee
Noah Robot Technology Shanghai 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 Noah Robot Technology Shanghai Co ltd filed Critical Noah Robot Technology Shanghai Co ltd
Priority to CN202110895691.6A priority Critical patent/CN113524193B/en
Publication of CN113524193A publication Critical patent/CN113524193A/en
Application granted granted Critical
Publication of CN113524193B publication Critical patent/CN113524193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Manipulator (AREA)

Abstract

本发明提供了一种机器人运动空间标记方法,包括:采集机器人在运动空间下的探测数据帧,并根据所述探测数据帧建立所述运动空间下的3D点云地图、2D地图;利用所述3D点云地图、机器人高度,获取机器人高度所在平面以下的第一点云地图;根据机器人工作数据,在所述2D地图上确定机器人运动的起点、终点及运动路线;对所述运动路线进行采样,并结合机器人轮廓数据,计算机器人在所述运动路线上的轮廓点云;根据所述第一点云地图、轮廓点云获取机器人运动的风险点,并标记所述风险点,从而解决机器人运动路线规划中过于依赖工程人员经验的问题。

Figure 202110895691

The invention provides a robot motion space marking method, comprising: collecting detection data frames of a robot in the motion space, and establishing a 3D point cloud map and a 2D map under the motion space according to the detection data frames; 3D point cloud map, robot height, obtain the first point cloud map below the plane where the robot height is located; according to the robot work data, determine the starting point, end point and movement route of the robot movement on the 2D map; sample the movement route , and combined with the robot outline data, calculate the outline point cloud of the robot on the movement route; obtain the risk point of the robot movement according to the first point cloud map and the outline point cloud, and mark the risk point, so as to solve the problem of robot movement The problem of relying too much on the experience of engineers in route planning.

Figure 202110895691

Description

机器人运动空间标记方法、装置、机器人及可存储介质Robot motion space marking method, device, robot and storage medium

技术领域technical field

本发明涉及人工智能技术领域,尤指一种机器人运动空间标记方法、装置、机器人及可存储介质。The present invention relates to the technical field of artificial intelligence, in particular to a robot motion space marking method, device, robot and storage medium.

背景技术Background technique

可自主移动的机器人在进入应用现场前,最重要的就是设置机器人运动路线。而目前路线建立大多通过工程现场的施工人员根据现场情况来手动建立,而建立的运动路线是否合适,则完全依赖现场施工人员的经验和能力,但由于现场环境较为复杂多变,且经常会出现不可预料的环境障碍物,这种通过预先设置的机器人运动路线,会对机器人运动的抗干扰能力产生较大的障碍,因此,亟待一种对自主移动机器人的运动路线的实时标记方法,使得对机器人运动路线进行合理规划,从而机器人可在各种环境中自主移动,不过多被环境障碍物障碍。Before a robot that can move autonomously enters the application site, the most important thing is to set the robot movement route. At present, most of the routes are established manually by the construction personnel on the project site according to the on-site conditions, and whether the established movement route is suitable completely depends on the experience and ability of the on-site construction personnel. However, due to the complex and changeable site environment, and often Unpredictable environmental obstacles, such as the pre-set robot motion route, will cause great obstacles to the anti-interference ability of the robot motion. Therefore, a real-time marking method for the motion route of the autonomous mobile robot is urgently needed. The movement route of the robot is reasonably planned, so that the robot can move autonomously in various environments, but is often hindered by environmental obstacles.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种机器人运动空间标记方法、装置、机器人及计算机可存储介质,用于解决机器人运动路线规划中过于依赖工程人员经验的问题。The purpose of the present invention is to provide a robot motion space marking method, device, robot and computer storable medium, which are used to solve the problem that the robot motion route planning relies too much on the experience of engineers.

本发明提供的技术方案如下:The technical scheme provided by the present invention is as follows:

一种机器人运动空间标记方法,包括:A robot motion space labeling method, comprising:

采集机器人在运动空间下的探测数据帧,并根据所述探测数据帧建立所述运动空间下的3D点云地图、2D地图;Collect the detection data frame of the robot in the motion space, and establish a 3D point cloud map and a 2D map under the motion space according to the detection data frame;

利用所述3D点云地图、机器人高度,获取机器人高度所在平面以下的第一点云地图;Using the 3D point cloud map and the robot height, obtain the first point cloud map below the plane where the robot height is located;

根据机器人工作数据,在所述2D地图上确定机器人运动的起点、终点及运动路线;According to the working data of the robot, determine the starting point, the ending point and the moving route of the robot movement on the 2D map;

对所述运动路线进行采样,并结合机器人轮廓数据,计算机器人在所述运动路线上的轮廓点云;Sampling the movement route, and calculating the outline point cloud of the robot on the movement route in combination with the robot outline data;

根据所述第一点云地图、轮廓点云获取机器人运动的风险点,并标记所述风险点。According to the first point cloud map and the contour point cloud, the risk points of robot motion are acquired, and the risk points are marked.

优选的,所述根据所述第一点云地图、轮廓点云获取机器人运动的风险点,并标记所述风险点具体包括:Preferably, the acquiring the risk point of the robot motion according to the first point cloud map and the contour point cloud, and marking the risk point specifically includes:

根据所述轮廓点云、第一点云地图获取机器人运动的第一风险点集合;Obtain the first risk point set of robot motion according to the contour point cloud and the first point cloud map;

根据所述运动路线、第一点云地图获取机器人运动的第二风险点集合;Acquire a second set of risk points for robot motion according to the motion route and the first point cloud map;

在机器人运动空间标记所述第一风险点集合和所述第二风险点集合。The first risk point set and the second risk point set are marked in the robot motion space.

优选的,所述根据所述轮廓点云、第一点云地图获取机器人运动的第一风险点集合具体包括:Preferably, the obtaining of the first risk point set for robot motion according to the contour point cloud and the first point cloud map specifically includes:

遍历所述轮廓点云中的每个点,获取所述轮廓点云中每个点距离根据所述第一点云地图构造的KD树的距离;Traverse each point in the outline point cloud, and obtain the distance of each point in the outline point cloud from the KD tree constructed according to the first point cloud map;

获取所述轮廓点云中距离所述KD树的第一最近距离及所述第一最近距离对应的点;Obtain the point corresponding to the first closest distance to the KD tree and the first closest distance in the outline point cloud;

当所述第一最近距离小于预设的第一距离阈值时,将所述轮廓点云上的所述第一最近距离对应的点作为第一风险点;When the first closest distance is less than a preset first distance threshold, use the point corresponding to the first closest distance on the contour point cloud as a first risk point;

将所述第一风险点保存于所述第一风险点集合中。The first risk point is stored in the first risk point set.

优选的,所述根据所述运动路线、第一点云地图获取机器人运动的第二风险点集合具体包括:Preferably, the obtaining of the second risk point set of the robot motion according to the motion route and the first point cloud map specifically includes:

在所述2D地图获取机器人行走的所述运动路线预设距离范围内的感兴趣区域;Obtain the region of interest within the preset distance range of the motion route that the robot walks on the 2D map;

遍历所述感兴趣区域中的每个点,获取所述感兴趣区域中每个点距离根据所述第一点云地图构建的KD树的距离;Traverse each point in the region of interest, and obtain the distance of each point in the region of interest from the KD tree constructed according to the first point cloud map;

获取所述感兴趣区域中距离所述KD树的第二最近距离及所述第二最近距离对应的点;Obtain the second closest distance from the KD tree in the region of interest and the point corresponding to the second closest distance;

当所述第二最近距离小于预设的第二距离阈值时,将所述感兴趣区域上的所述第二最近距离对应的点作为第二风险点;When the second closest distance is less than a preset second distance threshold, use the point corresponding to the second closest distance on the region of interest as a second risk point;

将所述第二风险点保存于所述第二风险点集合中。The second risk point is stored in the second risk point set.

为了实现本发明的发明目的,本发明实施例还提供了一种机器人运动空间标记装置,所述装置包括:In order to achieve the purpose of the present invention, an embodiment of the present invention also provides a robot motion space marking device, the device comprising:

地图构建模块,用于通过采集机器人在运动环境下的探测数据帧,并根据所述探测数据帧建立所述运动环境下的3D点云地图、2D地图;a map construction module, used for collecting the detection data frame of the robot in the motion environment, and establishing the 3D point cloud map and the 2D map under the motion environment according to the detection data frame;

第一点云地图计算模块,用于利用所述3D点云地图、机器人高度,获取机器人高度所在平面以下的第一点云地图;The first point cloud map calculation module is used to obtain the first point cloud map below the plane where the robot height is located by using the 3D point cloud map and the height of the robot;

运动路线确定模块,用于根据机器人工作数据,在所述2D地图上确定机器人运动的起点、终点及运动路线;a movement route determination module, used for determining the starting point, the end point and the movement route of the robot movement on the 2D map according to the working data of the robot;

轮廓点云计算模块,用于对所述运动路线进行采样,并结合机器人轮廓数据,计算机器人在所述运动路线上的轮廓点云;The contour point cloud computing module is used to sample the motion route, and combine the robot contour data to calculate the contour point cloud of the robot on the motion route;

运动空间标记模块,用于根据所述第一点云地图、轮廓点云获取机器人运动的风险点,并标记所述风险点。A motion space marking module is used to acquire risk points of robot motion according to the first point cloud map and contour point cloud, and mark the risk points.

优选的,所述运动空间标记模块具体包括:Preferably, the motion space marking module specifically includes:

第一计算单元,用于根据所述轮廓点云、第一点云地图获取机器人运动的第一风险点集合;a first computing unit, configured to obtain a first set of risk points for robot motion according to the contour point cloud and the first point cloud map;

第二计算单元,用于根据所述运动路线、第一点云地图获取机器人运动的第二风险点集合;a second computing unit, configured to obtain a second set of risk points for the robot to move according to the movement route and the first point cloud map;

标记单元,用于在机器人运动空间标记所述第一风险点集合和所述第二风险点集合。A marking unit, configured to mark the first risk point set and the second risk point set in the robot motion space.

优选的,所述第一计算单元包括:Preferably, the first computing unit includes:

用于遍历所述轮廓点云中的每个点,获取所述轮廓点云中每个点距离根据所述第一点云地图构造的KD树的距离的子单元;For traversing each point in the outline point cloud, obtaining the subunit of the distance of each point in the outline point cloud from the KD tree constructed according to the first point cloud map;

用于获取所述轮廓点云中距离所述KD树的第一最近距离及所述第一最近距离对应的点的子单元;For obtaining the subunit of the point corresponding to the first closest distance from the KD tree and the first closest distance in the outline point cloud;

用于当所述第一最近距离小于预设的第一距离阈值时,将所述轮廓点云上的所述第一最近距离对应的点作为第一风险点的子单元;When the first closest distance is less than a preset first distance threshold, the point corresponding to the first closest distance on the contour point cloud is used as a subunit of the first risk point;

用于将所述第一风险点保存于所述第一风险点集合中的子单元。A subunit for storing the first risk point in the first risk point set.

优选的,所述第二计算单元包括:Preferably, the second computing unit includes:

用于在所述2D地图获取机器人行走的所述运动路线预设距离范围内的感兴趣区域的子单元;A subunit for acquiring the region of interest within the preset distance range of the motion route of the robot walking on the 2D map;

用于遍历所述感兴趣区域中的每个点,获取所述感兴趣区域中每个点距离根据所述第一点云地图构建的KD树的距离的子单元;For traversing each point in the region of interest, obtaining the subunit of the distance of each point in the region of interest from the KD tree constructed according to the first point cloud map;

用于获取所述感兴趣区域中距离所述KD树的第二最近距离及所述第二最近距离对应的点的子单元;A subunit for obtaining the second closest distance from the KD tree and the point corresponding to the second closest distance in the region of interest;

用于当所述第二最近距离小于预设的第二距离阈值时,将所述感兴趣区域上的所述第二最近距离对应的点作为第二风险点的子单元;When the second closest distance is smaller than a preset second distance threshold, a subunit of the second risk point corresponding to the second closest distance on the region of interest is used;

用于将所述第二风险点保存于所述第二风险点集合中的子单元。A subunit for storing the second risk point in the second risk point set.

为了实现本发明的发明目的,本发明实施例还提供了一种机器人,所述机器人包括处理器和存储器,所述处理器与所述存储器耦合,其中,In order to achieve the purpose of the present invention, an embodiment of the present invention further provides a robot, the robot includes a processor and a memory, the processor is coupled with the memory, wherein,

所述存储器,用于存储程序;the memory for storing programs;

所述处理器,用于执行所述存储器中的程序,使得所述机器人执行上述任意实现机器人运动空间标记的方法。The processor is configured to execute the program in the memory, so that the robot executes any of the above-mentioned methods for realizing robot motion space marking.

为了实现本发明的发明目的,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述任意实现机器人运动空间标记的方法。In order to achieve the purpose of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute any of the above-mentioned realization robots Methods of motion space labeling.

本发明根据机器人的业务操作需求,通过在规划路径的基础上对机器人运动空间进行运动模拟,实现影响机器人运动的风险点识别,并进行标记,如此有利于后续机器人运动路径的规划和布局,进而优化机器人自主运动的能力和效率。According to the business operation requirements of the robot, the present invention realizes the identification and marking of risk points affecting the robot movement by simulating the movement space of the robot on the basis of the planned path, which is beneficial to the planning and layout of the subsequent movement path of the robot, and further Optimize the ability and efficiency of autonomous motion of robots.

附图说明Description of drawings

下面将以明确易懂的方式,结合附图说明优选实施方式,用户设备准入方法和装置、用户设备切换方法和装置的上述特性、技术特征、优点及其实现方式予以进一步说明。The preferred embodiments will be described below in a clear and easy-to-understand manner with reference to the accompanying drawings, and the above-mentioned characteristics, technical features, advantages and implementations of the method and apparatus for user equipment admission, and the method and apparatus for user equipment handover will be further described.

图1为本发明实施例提供的一种机器人运动空间标记方法的流程图;1 is a flowchart of a method for marking a robot motion space provided by an embodiment of the present invention;

图2为本发明实施例提供的一种机器人运动空间标记装置的示意图;2 is a schematic diagram of a robot motion space marking device according to an embodiment of the present invention;

图3为本发明实施例提供的机器人的示意图。FIG. 3 is a schematic diagram of a robot according to an embodiment of the present invention.

具体实施方式Detailed ways

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。In order to more clearly describe the embodiments of the present invention or the technical solutions in the prior art, the specific embodiments of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts, and obtain other implementations.

为使图面简洁,各图中只示意性地表示出了与本发明相关的部分,它们并不代表其作为产品的实际结构。另外,以使图面简洁便于理解,在有些图中具有相同结构或功能的部件,仅示意性地绘制了其中的一个,或仅标出了其中的一个。在本文中,“一个”不仅表示“仅此一个”,也可以表示“多于一个”的情形。In order to keep the drawings concise, the drawings only schematically show the parts related to the present invention, and they do not represent its actual structure as a product. In addition, in order to make the drawings concise and easy to understand, only one of the components having the same structure or function in some drawings is schematically drawn, or only one of them is marked. As used herein, "one" not only means "only one", but also "more than one".

发明人在智能设备自主移动的开发过程中,为了实现这些智能设备的自主移动,需要利用一些传感器来探测环境。该智能设备可能为一自主移动的机器人,或者自主移动的汽车,或者其他自主行走设备,这些设备或多或少了会采用激光雷达传感器来实现目标物体探测,以使设备可以实现无障碍或者避开障碍物移动。In the development process of the autonomous movement of smart devices, the inventors need to use some sensors to detect the environment in order to realize the autonomous movement of these smart devices. The smart device may be an autonomously moving robot, or an autonomously moving car, or other autonomous walking devices. These devices will more or less use lidar sensors to detect target objects, so that the device can achieve barrier-free or avoidance. Move through obstacles.

而在自主移动机器人技术领域,目前通常会在可移动的机器人设备中,采用2D激光雷达传感器作为探测周围物体的探测传感器,仍然是被经常选择使用的传感器。In the field of autonomous mobile robot technology, 2D lidar sensors are usually used as detection sensors to detect surrounding objects in movable robot equipment, and are still the sensors that are often selected for use.

由于机器人运动空间中环境物体的多变性和随机性,对工程人员的路径规划能力提高了要求,因而,提供一种机器人运动环境的模拟,进而对机器人运动空间的模拟,有利于对机器人运动路径的规划,因此,本发明实施例提供一种机器人运动空间标记方法。Due to the variability and randomness of the environmental objects in the robot motion space, the requirements for the path planning ability of engineers are improved. Therefore, a simulation of the robot motion environment is provided, and then the simulation of the robot motion space is beneficial to the robot motion path. Therefore, an embodiment of the present invention provides a method for marking the movement space of a robot.

请参考图1,本发明实施例的一种机器人运动空间标记方法,包括:Please refer to FIG. 1 , a method for marking a robot motion space according to an embodiment of the present invention includes:

S1.采集机器人在运动空间下的探测数据帧,并根据所述探测数据帧建立所述运动空间下的3D点云地图、2D地图;S1. Collect the detection data frame of the robot under the motion space, and establish a 3D point cloud map and a 2D map under the motion space according to the detection data frame;

在本发明的实施方式下,这里的探测数据帧可以包含机器人传感器例如3D激光雷达获得的探测数据帧,例如目标物体的距离、方向或者反射强度,或者通过机器人配置的摄像头获得的图像数据。通过探测到的数据帧,利用3D激光雷达建图方法或者视觉建图方法,建立机器人在预设的运动空间中的3D点云地图、2D地图。In an embodiment of the present invention, the detection data frame here may include detection data frames obtained by a robot sensor such as a 3D lidar, such as the distance, direction or reflection intensity of a target object, or image data obtained by a camera configured by the robot. Through the detected data frame, the 3D point cloud map and 2D map of the robot in the preset motion space are established by using the 3D lidar mapping method or the visual mapping method.

这里,所述的3D激光雷达云地图利用描述环境、认识环境的数据帧建立,从而通过环境地图来描述其当前运动空间的环境信息。考虑到机器人一般在平面路线上行走,为了减少计算量,此时还建立机器人在运动路线平面的2D地图。将机器人运动路线平面的2D地图作为本发明实施例的运动空间标记的重要参数,一方面可以减少工作量,另一方面也充分考虑了机器人本身的运动特点,将平面的运动路线下的机器人可能遇到的目标物体作为重要的参考对象。Here, the 3D lidar cloud map is established by using data frames describing the environment and recognizing the environment, so as to describe the environment information of the current movement space through the environment map. Considering that the robot generally walks on a plane route, in order to reduce the amount of calculation, a 2D map of the robot's movement route plane is also established at this time. Taking the 2D map of the robot movement route plane as an important parameter of the movement space marking in the embodiment of the present invention can reduce the workload on the one hand, and fully consider the movement characteristics of the robot itself on the other hand. The encountered target object serves as an important reference object.

本发明实施例并不限制利用何种方式构建机器人可能进入的运动空间的3D点云地图,以及使用何种方式建立机器人运动路线平面的2D地图。The embodiments of the present invention do not limit the method used to construct the 3D point cloud map of the movement space that the robot may enter, and the method used to construct the 2D map of the robot movement route plane.

S2.利用所述3D点云地图、机器人高度,获取机器人高度所在平面以下以下的第一点云地图;S2. Using the 3D point cloud map and the robot height, obtain the first point cloud map below the plane where the robot height is located;

本发明实施例除了建立机器人运动路线平面的地图,还结合机器人运动空间下的3D点云地图、机器人高度数据,获取机器人高度以下的第一点云地图,为了减少计算量,可以忽略机器人高度以上的空间的点云数据。In this embodiment of the present invention, in addition to establishing a map of the robot motion route plane, the first point cloud map below the robot height can be obtained by combining the 3D point cloud map and the robot height data in the robot motion space. spatial point cloud data.

S3.根据机器人工作数据,在所述2D地图上确定机器人运动的起点、终点及运动路线;S3. According to the working data of the robot, determine the starting point, the ending point and the movement route of the robot movement on the 2D map;

由于机器人实际工作的需要,运动路线Path多变,因此,在已建立的2D地图中首先确定机器人运动的起点、终点以及选择机器人运动路线。Due to the needs of the actual work of the robot, the movement route Path is changeable. Therefore, in the established 2D map, first determine the starting point and end point of the robot movement and select the robot movement route.

在实际的机器人工作场景中,机器人运动路线的规划选择可以通过人工设定,例如在较远的机器人自主运动行程中,通过给机器人人工设定预定的路线,而在某些场合例如医院中,可以通过自动地方式给机器人设定预定的运动路线限定参数,例如在急救通道中靠右行驶给行走病床留下通道。以上这些信息都将作为机器人运动路线选择的依据,这里不一一赘述。In the actual robot working scene, the planning and selection of the robot's motion route can be manually set. For example, in the remote robot's autonomous motion itinerary, by manually setting the robot's predetermined route, and in some occasions such as hospitals, The robot can be automatically set with predetermined motion route-defining parameters, such as driving to the right in the emergency passage to leave a passage for a walking hospital bed. The above information will be used as the basis for the selection of the robot's motion route, and will not be repeated here.

S4.对所述运动路线进行采样,并结合机器人轮廓数据,计算机器人在所述运动路线上的轮廓点云;S4. Sampling the movement route, and in combination with the robot outline data, calculate the outline point cloud of the robot on the movement route;

对建立的2D地图中,针对已确定的运动路线Path进行采样,同时结合机器人轮廓数据,例如机器人的长度、宽度、最大展开尺寸数据、左右旋转中产生的新的空间伸展数据,获取机器人在选择路线上的轮廓点云,以确定机器人在运动空间下的机器人轮廓,从而使得在后续空间标记的计算过程中,获取机器人在该运动空间中目标物体对机器人运动可能可能产生的影响成为可能。In the established 2D map, sample the determined motion path Path, and combine the robot outline data, such as the length, width, maximum expansion size data of the robot, and new spatial extension data generated in the left and right rotation, to obtain the robot in the selection process. The contour point cloud on the route is used to determine the robot contour in the motion space, so that it is possible to obtain the possible influence of the robot's target object in the motion space on the robot motion in the calculation process of the subsequent space marking.

S5.根据所述第一点云地图、轮廓点云获取机器人运动的风险点,并标记所述风险点。S5. Acquire risk points of robot motion according to the first point cloud map and contour point cloud, and mark the risk points.

在获取了机器人在机器人高度平面以下的点云地图、在运动路线中的轮廓点云后,通过所述点云地图数据,获得影响机器人运动的风险点,同时在2D地图、3D点云地图上标记所述风险点,为后续机器人运动路径规划提供重要的参数依据。After obtaining the point cloud map of the robot below the height plane of the robot and the contour point cloud in the motion route, the risk points affecting the motion of the robot are obtained through the point cloud map data. Mark the risk points to provide important parameter basis for subsequent robot motion path planning.

优选的,所述根据所述第一点云地图、轮廓点云获取机器人运动的风险点,并标记所述风险点具体包括:Preferably, the acquiring the risk point of the robot motion according to the first point cloud map and the contour point cloud, and marking the risk point specifically includes:

根据所述轮廓点云、第一点云地图获取机器人运动的第一风险点集合;Obtain the first risk point set of robot motion according to the contour point cloud and the first point cloud map;

根据所述运动路线、第一点云地图获取机器人运动的第二风险点集合;Acquire a second set of risk points for robot motion according to the motion route and the first point cloud map;

在机器人运动空间标记所述第一风险点集合和所述第二风险点集合。The first risk point set and the second risk point set are marked in the robot motion space.

优选的,所述根据所述轮廓点云、第一点云地图获取机器人运动的第一风险点集合具体包括:Preferably, the obtaining of the first risk point set for robot motion according to the contour point cloud and the first point cloud map specifically includes:

遍历所述轮廓点云中的每个点,获取所述轮廓点云中每个点距离根据所述第一点云地图构造的KD树的距离;Traverse each point in the outline point cloud, and obtain the distance of each point in the outline point cloud from the KD tree constructed according to the first point cloud map;

获取所述轮廓点云中距离所述KD树的第一最近距离及所述第一最近距离对应的点;Obtain the point corresponding to the first closest distance to the KD tree and the first closest distance in the outline point cloud;

当所述第一最近距离小于预设的第一距离阈值时,将所述轮廓点云上的所述第一最近距离对应的点作为第一风险点;When the first closest distance is less than a preset first distance threshold, use the point corresponding to the first closest distance on the contour point cloud as a first risk point;

将所述第一风险点保存于所述第一风险点集合中。The first risk point is stored in the first risk point set.

优选的,所述根据所述运动路线、第一点云地图获取机器人运动的第二风险点集合具体包括:Preferably, the obtaining of the second risk point set of the robot motion according to the motion route and the first point cloud map specifically includes:

在所述2D地图获取机器人行走的所述运动路线预设距离范围内的感兴趣区域;Obtain the region of interest within the preset distance range of the motion route that the robot walks on the 2D map;

遍历所述感兴趣区域中的每个点,获取所述感兴趣区域中每个点距离根据所述第一点云地图构建的KD树的距离;Traverse each point in the region of interest, and obtain the distance of each point in the region of interest from the KD tree constructed according to the first point cloud map;

获取所述感兴趣区域中距离所述KD树的第二最近距离及所述第二最近距离对应的点;Obtain the second closest distance from the KD tree in the region of interest and the point corresponding to the second closest distance;

当所述第二最近距离小于预设的第二距离阈值时,将所述感兴趣区域上的所述第二最近距离对应的点作为第二风险点;When the second closest distance is less than a preset second distance threshold, use the point corresponding to the second closest distance on the region of interest as a second risk point;

将所述第二风险点保存于所述第二风险点集合中。The second risk point is stored in the second risk point set.

为了实现本发明的发明目的,请参考图2,本发明实施例还提供了一种机器人运动空间标记装置100,装置100包括:In order to achieve the purpose of the present invention, please refer to FIG. 2 , an embodiment of the present invention also provides a robot motion space marking device 100, the device 100 includes:

地图构建模块1,用于通过采集机器人在运动环境下的探测数据帧,并根据所述探测数据帧建立所述运动环境下的3D点云地图、2D地图;A map construction module 1 is used to collect the detection data frames of the robot in a motion environment, and establish a 3D point cloud map and a 2D map under the motion environment according to the detection data frames;

在本发明的实施方式下,这里的探测数据帧可以包含机器人传感器例如3D激光雷达获得的探测数据帧,例如目标物体的距离、方向或者反射强度,或者通过机器人配置的摄像头获得的图像数据。通过探测到的数据帧,利用3D激光雷达建图方法或者视觉建图方法,建立机器人在预设的运动空间中的3D点云地图、2D地图。In an embodiment of the present invention, the detection data frame here may include a detection data frame obtained by a robot sensor such as a 3D lidar, such as the distance, direction or reflection intensity of a target object, or image data obtained by a camera configured by the robot. Through the detected data frame, the 3D point cloud map and 2D map of the robot in the preset motion space are established by using the 3D lidar mapping method or the visual mapping method.

这里,所述的3D激光雷达云地图利用描述环境、认识环境的数据帧建立,从而通过环境地图来描述其当前运动空间的环境信息。考虑到机器人一般在平面路线上行走,为了减少计算量,此时还建立机器人在运动路线平面的2D地图。将机器人运动路线平面的2D地图作为本发明实施例的运动空间标记的重要参数,一方面可以减少工作量,另一方面也充分考虑了机器人本身的运动特点,将平面的运动路线下的机器人可能遇到的目标物体作为重要的参考对象。Here, the 3D lidar cloud map is established by using data frames describing the environment and recognizing the environment, so as to describe the environment information of the current movement space through the environment map. Considering that the robot generally walks on a plane route, in order to reduce the amount of calculation, a 2D map of the robot's movement route plane is also established at this time. Taking the 2D map of the robot movement route plane as an important parameter of the movement space marking in the embodiment of the present invention can reduce the workload on the one hand, and fully consider the movement characteristics of the robot itself on the other hand. The encountered target object serves as an important reference object.

本发明实施例并不限制利用何种方式构建机器人可能进入的运动空间的3D点云地图,以及使用何种方式建立机器人运动路线平面的2D地图。The embodiments of the present invention do not limit the method used to construct the 3D point cloud map of the movement space that the robot may enter, and the method used to construct the 2D map of the robot movement route plane.

第一点云地图计算模块2,用于利用所述3D点云地图、机器人高度,获取机器人高度所在平面以下的第一点云地图;本发明实施例除了建立机器人运动路线平面的地图,还结合机器人运动空间下的3D点云地图、机器人高度数据,获取机器人高度以下的第一点云地图,为了减少计算量,可以忽略机器人高度以上的空间的点云数据。The first point cloud map calculation module 2 is used to obtain the first point cloud map below the plane where the robot height is located by using the 3D point cloud map and the height of the robot; the embodiment of the present invention not only establishes a map of the plane of the robot movement route, but also combines The 3D point cloud map and the robot height data in the robot motion space are used to obtain the first point cloud map below the robot height. In order to reduce the amount of calculation, the point cloud data in the space above the robot height can be ignored.

运动路线确定模块3,用于根据机器人工作数据,在所述2D地图上确定机器人运动的起点、终点及运动路线;The motion route determination module 3 is used to determine the starting point, the end point and the motion route of the robot motion on the 2D map according to the working data of the robot;

由于机器人实际工作的需要,运动路线Path多变,因此,在已建立的2D地图中首先确定机器人运动的起点、终点以及选择机器人运动路线。Due to the needs of the actual work of the robot, the movement route Path is changeable. Therefore, in the established 2D map, first determine the starting point and end point of the robot movement and select the robot movement route.

在实际的机器人工作场景中,机器人运动路线的规划选择可以通过人工设定,例如在较远的机器人自主运动行程中,通过给机器人人工设定预定的路线,而在某些场合例如医院中,可以通过自动地方式给机器人设定预定的运动路线限定参数,例如在急救通道中靠右行驶给行走病床留下通道。以上这些信息都将作为机器人运动路线选择的依据,这里不一一赘述。In the actual robot working scene, the planning and selection of the robot's motion route can be manually set. For example, in the remote robot's autonomous motion itinerary, by manually setting the robot's predetermined route, and in some occasions such as hospitals, The robot can be automatically set with predetermined motion route-defining parameters, such as driving to the right in the emergency passage to leave a passage for a walking hospital bed. The above information will be used as the basis for the selection of the robot's motion route, and will not be repeated here.

轮廓点云计算模块4,用于对所述运动路线进行采样,并结合机器人轮廓数据,计算机器人在所述运动路线上的轮廓点云;The contour point cloud computing module 4 is used for sampling the motion route, and in combination with the robot contour data, calculates the contour point cloud of the robot on the motion route;

对建立的2D地图中,针对已确定的运动路线Path进行采样,同时结合机器人轮廓数据,例如机器人的长度、宽度、最大展开尺寸数据、左右旋转中产生的新的空间伸展数据,获取机器人在选择路线上的轮廓点云,以确定机器人在运动空间下的机器人轮廓,从而使得在后续空间标记的计算过程中,获取机器人在该运动空间中目标物体对机器人运动可能产生的影响成为可能。In the established 2D map, sample the determined motion path Path, and combine the robot outline data, such as the length, width, maximum expansion size data of the robot, and new spatial extension data generated in the left and right rotation, to obtain the robot in the selection process. The contour point cloud on the route is used to determine the robot contour in the motion space, which makes it possible to obtain the possible influence of the robot's target object in the motion space on the robot motion in the calculation process of the subsequent space marking.

运动空间标记模块5,用于根据所述第一点云地图、轮廓点云获取机器人运动的风险点,并标记所述风险点。The motion space marking module 5 is used for acquiring the risk points of robot motion according to the first point cloud map and the contour point cloud, and marking the risk points.

在获取了机器人在机器人高度平面以下的点云地图、在运动路线中的轮廓点云后,通过所述点云地图数据,获得影响机器人运动的风险点,同时在2D地图、3D点云地图上标记所述风险点,为后续机器人运动路径规划提供重要的参数依据。After obtaining the point cloud map of the robot below the height plane of the robot and the contour point cloud in the motion route, the risk points affecting the motion of the robot are obtained through the point cloud map data. Mark the risk points to provide important parameter basis for subsequent robot motion path planning.

优选的,所述运动空间标记模块具体包括:Preferably, the motion space marking module specifically includes:

第一计算单元,用于根据所述轮廓点云、第一点云地图获取机器人运动的第一风险点集合;a first computing unit, configured to obtain a first set of risk points for robot motion according to the contour point cloud and the first point cloud map;

第二计算单元,用于根据所述运动路线、第一点云地图获取机器人运动的第二风险点集合;a second computing unit, configured to obtain a second set of risk points for the robot to move according to the movement route and the first point cloud map;

标记单元,用于在机器人运动空间标记所述第一风险点集合和所述第二风险点集合。A marking unit, configured to mark the first risk point set and the second risk point set in the robot motion space.

优选的,所述第一计算单元包括:Preferably, the first computing unit includes:

用于遍历所述轮廓点云中的每个点,获取所述轮廓点云中每个点距离根据所述第一点云地图构造的KD树的距离的子单元;For traversing each point in the outline point cloud, obtaining the subunit of the distance of each point in the outline point cloud from the KD tree constructed according to the first point cloud map;

用于获取所述轮廓点云中距离所述KD树的第一最近距离及所述第一最近距离对应的点的子单元;For obtaining the subunit of the point corresponding to the first closest distance from the KD tree and the first closest distance in the outline point cloud;

用于当所述第一最近距离小于预设的第一距离阈值时,将所述轮廓点云上的所述第一最近距离对应的点作为第一风险点的子单元;When the first closest distance is less than a preset first distance threshold, the point corresponding to the first closest distance on the contour point cloud is used as a subunit of the first risk point;

用于将所述第一风险点保存于所述第一风险点集合中的子单元。A subunit for storing the first risk point in the first risk point set.

优选的,所述第二计算单元包括:Preferably, the second computing unit includes:

用于在所述2D地图获取机器人行走的所述运动路线预设距离范围内的感兴趣区域的子单元;A subunit for acquiring the region of interest within the preset distance range of the motion route of the robot walking on the 2D map;

用于遍历所述感兴趣区域中的每个点,获取所述感兴趣区域中每个点距离根据所述第一点云地图构建的KD树的距离的子单元;For traversing each point in the region of interest, obtaining the subunit of the distance of each point in the region of interest from the KD tree constructed according to the first point cloud map;

用于获取所述感兴趣区域中距离所述KD树的第二最近距离及所述第二最近距离对应的点的子单元;A subunit for obtaining the second closest distance from the KD tree and the point corresponding to the second closest distance in the region of interest;

用于当所述第二最近距离小于预设的第二距离阈值时,将所述感兴趣区域上的所述第二最近距离对应的点作为第二风险点的子单元;When the second closest distance is smaller than a preset second distance threshold, a subunit of the second risk point corresponding to the second closest distance on the region of interest is used;

用于将所述第二风险点保存于所述第二风险点集合中的子单元。A subunit for storing the second risk point in the second risk point set.

为了实现本发明的发明目的,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述任意实现机器人运动空间标记的方法。In order to achieve the purpose of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute any of the above-mentioned realization robots Methods of motion space labeling.

本发明根据机器人的业务操作需求,通过在规划路径的基础上对机器人运动空间进行运动模拟,实现影响机器人运动的风险点识别,并进行标记,如此有利于后续机器人运动路径的规划和布局,进而优化机器人自主运动的能力和效率。According to the business operation requirements of the robot, the present invention realizes the identification and marking of risk points affecting the robot movement by simulating the movement space of the robot on the basis of the planned path, which is beneficial to the planning and layout of the subsequent movement path of the robot, and further Optimize the ability and efficiency of autonomous motion of robots.

需要注意的是,以上机器人运动空间标记装置的各个模块或单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些单元可以全部以软件通过处理器调用的形式实现;也可以全部以硬件的形式实现;还可以部分单元通过软件通过处理器调用的形式实现,部分单元通过硬件的形式实现。It should be noted that the division of each module or unit of the above robot motion space marking device is only a division of logical functions, and can be fully or partially integrated into a physical entity in actual implementation, or can be physically separated. And these units can all be implemented in the form of software calling by the processor; also can be all implemented in the form of hardware; some units can also be implemented in the form of calling by the processor through software, and some units can be implemented in the form of hardware.

例如,以上各模块或单元的功能可以以程序代码的形式存储于存储器中,由处理器调度该程序代码,实现以上各个单元的功能。该处理器可以是通用处理器,例如中央处理器(Central Processing Unit,CPU)或其它可以调用程序的处理器。再如,以上各个单元可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(ASIC),或,一个或多个数字信号处理器(DSP),或,一个或者多个现场可编程门阵列(FPGA)等。再如,结合这两种方式,部分功能通过处理器调度程序代码的形式实现,部分功能通过硬件集成电路的形式实现。且以上功能集成在一起时,可以以片上系统(System-On-a-Chip,SOC)的形式实现。For example, the functions of the above modules or units can be stored in the memory in the form of program codes, and the program codes are dispatched by the processor to realize the functions of the above units. The processor may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processors that can invoke programs. For another example, each of the above units may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (ASIC), or, one or more digital signal processors (DSP), or , one or more field programmable gate arrays (FPGA), etc. For another example, combining these two methods, some functions are implemented in the form of processor scheduler codes, and some functions are implemented in the form of hardware integrated circuits. When the above functions are integrated together, they can be implemented in the form of a system-on-a-chip (SOC).

本申请实施例提供的机器人运动空间标记装置等具体可以为芯片,芯片包括:处理单元和通信单元,所述处理单元例如可以是处理器,所述通信单元例如可以是输入/输出接口、管脚或电路等。该处理单元可执行存储单元存储的计算机执行指令,以使机器人运动空间标记装置内的芯片执行上述所示实施例描述的机器人运动空间标记装置所执行的步骤,或者,使得执行设备内的芯片执行如前述图2所示实施例描述的机器人运动空间标记装置所执行的步骤。The robot motion space marking device or the like provided in the embodiment of the present application may be specifically a chip, and the chip includes: a processing unit and a communication unit, the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, a pin or circuit etc. The processing unit can execute the computer execution instructions stored in the storage unit, so that the chip in the robot motion space marking apparatus executes the steps performed by the robot motion space marking apparatus described in the above-mentioned embodiment, or causes the chip in the execution device to execute The steps performed by the robot motion space marking device described in the embodiment shown in FIG. 2 above.

可选地,所述存储单元为所述芯片内的存储单元,如寄存器、缓存等,所述存储单元还可以是所述无线接入设备端内的位于所述芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit may also be a storage unit located outside the chip in the wireless access device, such as only Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), and the like.

为了实现本发明的发明目的,本发明实施例还提供了一种机器人180,所述机器人可以包含如前面所述的机器人运动空间标记装置。In order to achieve the purpose of the present invention, an embodiment of the present invention further provides a robot 180, and the robot may include the robot motion space marking device as described above.

所述机器人180,还可以包括处理器1803和存储器1804,所述处理器1803与所述存储器1804耦合,其中,The robot 180 may further include a processor 1803 and a memory 1804, the processor 1803 is coupled with the memory 1804, wherein,

所述存储器1804,用于存储程序;the memory 1804 for storing programs;

所述处理器1803,用于执行所述存储器中的程序,使得所述机器人执行如前文所述机器人运动空间标记的方法。The processor 1803 is configured to execute the program in the memory, so that the robot executes the method for marking the robot movement space as described above.

请参考图3,本发明实施例上述图1对应实施例揭示的方法可以应用于自主移动的机器人180中,所述机器人180包括处理器1803,处理器1803可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1803中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1803可以是通用处理器、数字信号处理器(digital signalprocessing,DSP)、微处理器或微控制器,还可进一步包括专用集成电路(applicationspecific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gatearray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。该处理器1803可以实现或者执行本申请图1对应的实施例中公开的各方法、步骤及逻辑框图。Please refer to FIG. 3 , the method disclosed in the embodiment of the present invention corresponding to the above-mentioned FIG. 1 can be applied to a robot 180 that moves autonomously. The robot 180 includes a processor 1803 , and the processor 1803 can be an integrated circuit chip with a signal processing power. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 1803 or an instruction in the form of software. The above-mentioned processor 1803 may be a general-purpose processor, a digital signal processor (DSP), a microprocessor or a microcontroller, and may further include an application specific integrated circuit (ASIC), a field programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The processor 1803 may implement or execute the methods, steps, and logical block diagrams disclosed in the embodiment corresponding to FIG. 1 of the present application.

通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1804,处理器1803读取存储器1804中的信息,结合其硬件完成上述方法的步骤。A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 1804, and the processor 1803 reads the information in the memory 1804, and completes the steps of the above method in combination with its hardware.

接收器1801可用于接收输入的数字或字符信息,以及产生与机器人运动空间标记装置100的相关设置以及功能控制有关的信号输入。发射器1802可用于通过第一接口输出数字或字符信息;发射器1802还可用于通过第一接口向磁盘组发送指令,以修改磁盘组中的数据;发射器1802还可以包括显示屏等显示设备。The receiver 1801 can be used to receive input digital or character information, and generate signal input related to the relative setting and function control of the robot motion space marking device 100 . The transmitter 1802 can be used to output digital or character information through the first interface; the transmitter 1802 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 1802 can also include a display device such as a display screen .

本发明实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有用于进行信号处理的程序,当其在计算机上运行时,使得计算机执行如前述所示实施例描述的机器人运动空间标记方法所执行的步骤,或者,使得计算机执行如前述图2所示实施例描述的机器人运动空间标记装置所执行的步骤。Embodiments of the present invention further provide a computer-readable storage medium, where a program for performing signal processing is stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, causes the computer to execute the programs described in the foregoing embodiments. The steps performed by the robot motion space marking method, or the computer is made to perform the steps performed by the robot motion space marking apparatus described in the embodiment shown in FIG. 2 .

另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本申请提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线In addition, it should be noted that the device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be A physical unit, which can be located in one place or distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary general-purpose hardware. Special components, etc. to achieve. Under normal circumstances, all functions completed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or special circuit, etc. However, a software program implementation is a better implementation in many cases for this application. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that make contributions to the prior art. The computer software products are stored in a readable storage medium, such as a floppy disk of a computer. , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, or a network device, etc.) to execute the methods described in the various embodiments of this application.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的训练设备、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solidstate disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, which may be any available medium that can be stored by a computer or a data storage device such as a training device, data center, etc. that includes one or more available media integrated. . The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

应当说明的是,上述实施例均可根据需要自由组合。以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。It should be noted that the above embodiments can be freely combined as required. The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.

Claims (6)

1. A robot motion space marking method is characterized by comprising the following steps:
acquiring a detection data frame of a robot in a motion space, and establishing a 3D point cloud map and a 2D map in the motion space according to the detection data frame;
acquiring a first point cloud map below a plane where the robot height is located by using the 3D point cloud map and the robot height;
determining a starting point, an end point and a movement route of the robot movement on the 2D map according to the working data of the robot;
sampling the motion route, and calculating a contour point cloud of the robot on the motion route by combining robot contour data;
acquiring risk points of robot motion according to the first point cloud map and the contour point cloud, and marking the risk points; wherein,
the acquiring of the risk points of the robot motion according to the first point cloud map and the contour point cloud, and the marking of the risk points specifically comprises:
acquiring a first risk point set of robot motion according to the contour point cloud and the first point cloud map;
acquiring a second risk point set of robot movement according to the movement route and the first point cloud map;
marking the first set of risk points and the second set of risk points in a robot motion space;
the step of acquiring a first risk point set of robot motion according to the contour point cloud and the first point cloud map specifically comprises the following steps:
traversing each point in the contour point cloud, and obtaining the distance between each point in the contour point cloud and a KD tree constructed according to the first point cloud map;
acquiring a first closest distance from the outline point cloud to the KD tree and a point corresponding to the first closest distance;
when the first closest distance is smaller than a preset first distance threshold, taking a point corresponding to the first closest distance on the contour point cloud as a first risk point;
saving the first risk point in the first set of risk points.
2. The method for marking the motion space of the robot according to claim 1, wherein the step of obtaining the second set of risk points of the motion of the robot according to the motion route and the first point cloud map specifically comprises:
acquiring an area of interest within a preset distance range of the movement route where the robot walks on the 2D map;
traversing each point in the region of interest, and acquiring the distance from each point in the region of interest to a KD tree constructed according to the first point cloud map;
acquiring a second closest distance from the KD tree in the region of interest and a point corresponding to the second closest distance;
when the second closest distance is smaller than a preset second distance threshold, taking a point corresponding to the second closest distance on the region of interest as a second risk point;
and saving the second risk point in the second risk point set.
3. A robotic motion space marking apparatus, comprising:
the map building module is used for building a 3D point cloud map and a 2D map under the motion environment by collecting detection data frames of the robot under the motion environment and according to the detection data frames;
the first point cloud map computing module is used for acquiring a first point cloud map below the plane where the robot height is located by utilizing the 3D point cloud map and the robot height;
the movement route determining module is used for determining a starting point, an end point and a movement route of the robot movement on the 2D map according to the robot working data;
the contour point cloud computing module is used for sampling the movement route and computing a contour point cloud of the robot on the movement route by combining robot contour data;
the motion space marking module is used for acquiring risk points of robot motion according to the first point cloud map and the contour point cloud and marking the risk points; wherein, the motion space marking module specifically comprises:
the first computing unit is used for acquiring a first risk point set of robot motion according to the contour point cloud and the first point cloud map;
the second computing unit is used for acquiring a second risk point set of robot motion according to the motion route and the first point cloud map;
a marking unit for marking the first risk point set and the second risk point set in a robot motion space;
the first calculation unit includes:
a subunit, configured to traverse each point in the contour point cloud, and obtain a distance from each point in the contour point cloud to a KD tree constructed according to the first point cloud map;
a subunit, configured to obtain a first closest distance from the KD tree in the contour point cloud and a point corresponding to the first closest distance;
a subunit, configured to, when the first closest distance is smaller than a preset first distance threshold, take a point on the contour point cloud corresponding to the first closest distance as a first risk point;
a subunit for saving the first risk point in the first set of risk points.
4. The robotic motion space marking apparatus of claim 3, wherein the second computing unit comprises:
a sub-unit for obtaining a region of interest within a preset distance range of the movement route traveled by the robot on the 2D map;
a subunit, configured to traverse each point in the region of interest, and obtain a distance from each point in the region of interest to a KD tree constructed according to the first point cloud map;
a subunit, configured to obtain a second closest distance from the KD tree in the region of interest and a point corresponding to the second closest distance;
a subunit, configured to, when the second closest distance is smaller than a preset second distance threshold, take a point on the region of interest corresponding to the second closest distance as a second risk point;
a subunit for saving the second risk point in the second set of risk points.
5. A robot comprising a processor and a memory, the processor being coupled with the memory,
the memory is used for storing programs;
the processor to execute the program in the memory to cause the robot to perform the method of any of claims 1-2.
6. A computer storage medium, comprising a program which, when run on a computer, causes the computer to perform the method of any one of claims 1-2.
CN202110895691.6A 2021-08-05 2021-08-05 Robot motion space marking method and device, robot and storage medium Active CN113524193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110895691.6A CN113524193B (en) 2021-08-05 2021-08-05 Robot motion space marking method and device, robot and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110895691.6A CN113524193B (en) 2021-08-05 2021-08-05 Robot motion space marking method and device, robot and storage medium

Publications (2)

Publication Number Publication Date
CN113524193A CN113524193A (en) 2021-10-22
CN113524193B true CN113524193B (en) 2022-09-23

Family

ID=78090543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110895691.6A Active CN113524193B (en) 2021-08-05 2021-08-05 Robot motion space marking method and device, robot and storage medium

Country Status (1)

Country Link
CN (1) CN113524193B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180061949A (en) * 2016-11-30 2018-06-08 주식회사 유진로봇 Obstacle Sensing Apparatus and Method for Multi-Channels Based Mobile Robot, Mobile Robot including the same
CN110531759A (en) * 2019-08-02 2019-12-03 深圳大学 Path generating method, device, computer equipment and storage medium are explored by robot
CN110674705A (en) * 2019-09-05 2020-01-10 北京智行者科技有限公司 Small-sized obstacle detection method and device based on multi-line laser radar
US10668621B1 (en) * 2017-06-23 2020-06-02 Amazon Technologies, Inc. Fast motion planning collision detection
CN111290393A (en) * 2020-03-04 2020-06-16 上海高仙自动化科技发展有限公司 Driving control method and device, intelligent robot and computer readable storage medium
CN112074383A (en) * 2018-05-01 2020-12-11 X开发有限责任公司 Robot navigation using 2D and 3D path planning

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180061949A (en) * 2016-11-30 2018-06-08 주식회사 유진로봇 Obstacle Sensing Apparatus and Method for Multi-Channels Based Mobile Robot, Mobile Robot including the same
US10668621B1 (en) * 2017-06-23 2020-06-02 Amazon Technologies, Inc. Fast motion planning collision detection
CN112074383A (en) * 2018-05-01 2020-12-11 X开发有限责任公司 Robot navigation using 2D and 3D path planning
CN110531759A (en) * 2019-08-02 2019-12-03 深圳大学 Path generating method, device, computer equipment and storage medium are explored by robot
CN110674705A (en) * 2019-09-05 2020-01-10 北京智行者科技有限公司 Small-sized obstacle detection method and device based on multi-line laser radar
CN111290393A (en) * 2020-03-04 2020-06-16 上海高仙自动化科技发展有限公司 Driving control method and device, intelligent robot and computer readable storage medium

Also Published As

Publication number Publication date
CN113524193A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN110675307B (en) Implementation method from 3D sparse point cloud to 2D grid graph based on VSLAM
US11896175B2 (en) Method and apparatus for updating working map of mobile robot, and storage medium
WO2021104415A1 (en) Robot autonomous exploration mapping method, device and storage medium
WO2023082985A1 (en) Method and product for generating navigation path for electronic device
CN107305125A (en) A kind of map constructing method and terminal
WO2022193508A1 (en) Method and apparatus for posture optimization, electronic device, computer-readable storage medium, computer program, and program product
CN111679664A (en) 3D map construction method based on depth camera and sweeping robot
CN115366097B (en) Robot following method, device, robot and computer readable storage medium
CN114564027A (en) Path planning method of foot type robot, electronic equipment and readable storage medium
CN114248778B (en) Positioning method and positioning device of mobile equipment
US20250061599A1 (en) Method and device for optimizing three-dimensional map display
CN111947661A (en) A method for building indoor maps based on lidar
CN113524193B (en) Robot motion space marking method and device, robot and storage medium
CN117218171A (en) Depth estimation model optimization and object distance detection method and related equipment
CN112515556B (en) Environment map processing method and device and electronic equipment
CN112414444B (en) Data calibration method, computer equipment and storage medium
CN113721189A (en) UWB and VIO fusion-based multi-motion node positioning method and system
US20230354258A1 (en) Data processing method and apparatus
CN203241822U (en) A mobile robot based on a preset moving path
CN109389677B (en) Real-time building method, system, device and storage medium of house three-dimensional live-action map
CN116883652A (en) A drivable area segmentation method, device, readable storage medium and robot
CN114995459A (en) Robot control method, device, equipment and storage medium
CN114705191A (en) Map generation method, map generation device, map generation equipment and storage medium
WO2022000757A1 (en) Ar-based robot internet of things interaction method and apparatus, and medium
CN114964204A (en) Map construction method, map use method, apparatus, equipment 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
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20250421

Granted publication date: 20220923