A method, device and storage medium for filtering a robot point cloud

By asynchronously receiving radar point cloud and joint angle data, and combining gating conditions and multi-level filtering methods, a bounding volume is constructed, which solves the problems of low accuracy and wasted computing resources in robot point cloud filtering in existing technologies, and achieves a more efficient filtering effect.

CN123181566APending Publication Date: 2026-11-27PAXINI TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611287073.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In complex and dynamic operation scenarios, existing robot point cloud filtering methods suffer from the problem of ineffective decoupling between kinematics calculation and point cloud processing, resulting in low filtering accuracy and wasted computing resources.

Method used

Asynchronous reception of radar point cloud data and joint angle data is adopted, kinematic update flags are set, kinematic calculations are performed in combination with gating conditions, bounding volume is constructed, and point-by-point retention masks are generated through multi-level filtering to remove robot body points and reconstruct target radar point cloud data.

Benefits of technology

This improves the practicality and robustness of robot-based filtering in complex and dynamic operation scenarios, reduces redundant calculations, and enhances the system's operating efficiency and filtering accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181566A_ABST
    Figure CN123181566A_ABST
Patent Text Reader

Abstract

The application discloses a method for filtering a robot point cloud, comprising: asynchronously receiving radar point cloud data and current joint angle data of a robot; setting a kinematics update flag current logical state based on the current joint angle data and historical joint angle data; obtaining a current system sampling frame count and a state of a bounding volume cache, and determining whether the logical state, the current frame count and the bounding volume cache state satisfy a preset gating condition; when any gating condition is satisfied, performing kinematics calculation based on the current joint angle data, a pre-configured robot model and configuration parameters, and constructing a bounding volume of a robot body to be filtered; performing multi-stage filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask; and removing points corresponding to the robot body in the radar point cloud data according to the point-by-point retention mask, and reconstructing the radar point cloud data. Through the above method, the practicability and robustness of the robot body filtering in a complex dynamic operation scene can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of robotics technology, and in particular to a method, apparatus and storage medium for filtering robot point clouds. Background Technology

[0002] In the field of mobile robot environmental perception, LiDAR (LiDAR) is a key sensor for acquiring 3D scene information and is widely used in obstacle avoidance, mapping, and target detection tasks. However, when a robot is equipped with LiDAR for scanning, its field of view inevitably covers the robot's own structure and manipulating units such as the robotic arm, resulting in a large amount of "self-occluding" point clouds belonging to the robot itself and point clouds of manipulated objects (such as objects held by the robot) mixed in with the point cloud data. If such non-environmental point clouds are not effectively filtered out, they will seriously interfere with downstream target tracking, occupancy grid construction, and SLAM localization accuracy, and may even cause problems with false obstacle recognition and conservative path planning.

[0003] Currently, the mainstream technical solutions for filtering robot body point clouds mostly adopt model-based forward kinematics filtering methods. This method acquires joint angles in real time, uses the URDF (Unified Robot Description Format) model to transform the collision geometry (or simplified mesh) of each link to the LiDAR coordinate system, and constructs axial bounding volumes (AABB / OBB) to distinguish between inside and outside the point cloud.

[0004] Although the above methods have achieved some degree of filtering out point clouds of the robot body, they still have many limitations in complex dynamic operation scenarios, specifically:

[0005] Kinematics calculation and point cloud processing are not effectively decoupled. Some methods use a message time synchronizer to align joint angle data with radar point cloud data, triggering processing only when timestamps are close. When there is a large difference between the LiDAR and joint state frame rates (e.g., LiDAR 10Hz, joint angle 100Hz), point cloud frames are easily discarded or outdated joint angles are still used to construct bounding volumes, thereby reducing filtering accuracy and effective throughput.

[0006] The kinematic updates lack adaptive gating. When the robot is stationary or making slight movements, the joint changes are minimal, and the bounding box pose remains almost unchanged. However, if full forward kinematics and bounding volume reconstruction are still performed on every frame of point cloud, redundant calculations will occur, which is not conducive to long-term operation on computing-constrained platforms.

[0007] In view of this, there is an urgent need to provide a method for filtering robot point clouds to improve its practicality and robustness in complex and dynamic operation scenarios.

[0008] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0009] The main purpose of this application is to provide a method, device and storage medium for filtering robot point clouds, aiming to solve the technical problem of how to improve practicality and robustness in complex dynamic operation scenarios.

[0010] To achieve the above objectives, this application proposes a method for filtering robot point clouds, characterized by comprising: asynchronously receiving radar point cloud data and current joint angle data of the robot; setting a kinematic update flag for the current logical state based on the current joint angle data and historical joint angle data, wherein the historical joint angle data are joint angle data that participated in the previous kinematic calculation; acquiring the current system sampling frame count and the state of the bounding volume buffer, and determining whether the logical state, the current frame count, and the bounding volume buffer state satisfy preset gating conditions; when any of the gating conditions are satisfied, performing kinematic calculation based on the current joint angle data and a pre-configured robot model and configuration parameters to construct a bounding volume of the robot body to be filtered, wherein the robot model is a unified robot description format model corresponding to the robot; performing multi-level filtering on the radar point cloud data based on the bounding volume, and generating a point-by-point retention mask; removing points in the radar point cloud data corresponding to the robot body based on the point-by-point retention mask, reconstructing and publishing the target radar point cloud data.

[0011] In some embodiments, setting the current logical state of the kinematic update flag based on the current joint angle data and the historical joint angle data includes: calculating the absolute difference per joint based on the current joint angle data and the historical joint angle data; setting the current logical state of the kinematic update flag to true when the maximum value of the absolute difference per joint is greater than a preset joint angle change threshold; and setting the current logical state of the kinematic update flag to false when the maximum value of the absolute difference per joint is less than or equal to the preset joint angle change threshold.

[0012] In some embodiments, the gating conditions include: a first gating condition: the current logical state is true, and the current system frame count satisfies the divisibility relationship of the kinematic update frequency division interval; and a second gating condition: the bounding volume buffer is empty.

[0013] In some embodiments, the pre-configured configuration parameters include radar extrinsic parameters and bounding volume expansion margins. The step of constructing the bounding volume of the robot body to be filtered by performing kinematic calculations based on the current joint angle data, a pre-configured robot model, and the configuration parameters includes: determining the current joint angle vector based on the current joint angle data; calculating the pose of each link of the robot in the robot base coordinate system based on the current joint angle vector and the robot model, wherein each link is a link contained within the robot body to be filtered; converting the pose of each link in the robot base coordinate system to the pose in the radar coordinate system based on the radar extrinsic parameters; constructing the bounding volume of each link in the radar coordinate system based on the pose of each link in the radar coordinate system, the bounding volume expansion margins, and predefined link geometry in the robot model; and constructing a global bounding volume based on the bounding volume of each link in the radar coordinate system.

[0014] In some embodiments, after constructing the global bounding volume based on the bounding volumes of each link in the radar coordinate system, the method further includes: setting the current logical state of the kinematic update flag to false; recording the current joint angle data as historical joint angle data; and caching the bounding volumes of each link in the radar coordinate system and the global bounding volume to the bounding volume cache.

[0015] In some embodiments, the link geometry is defined based on a collision mesh or a visual mesh, and the link geometry defined based on the collision mesh has a higher loading priority than the link geometry defined based on the visual mesh; the bounding volume of each link in the radar coordinate system is an axis-aligned bounding volume or a directed bounding volume; the global bounding volume is a global axis-aligned bounding volume.

[0016] In some embodiments, the step of performing multi-level filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask includes: determining whether the three-dimensional coordinates of each data point in the radar point cloud data fall within the global bounding volume; when the three-dimensional coordinates of the data point fall within the global bounding volume, marking the data point as a candidate point; when the three-dimensional coordinates of the data point do not fall within the global bounding volume, marking the data point as an environment point and setting the corresponding bit of the mask array to true, wherein the mask array is an array with the same length as the number of data points in the radar point cloud data, which is used to generate the point-by-point retention mask; and determining whether the candidate point is contained within the bounding volume of any link based on the bounding volume of each link; when the candidate point is contained within the bounding volume of any link, marking the candidate point as a robot body point and setting the corresponding bit of the mask array to false; when the candidate point is not contained within the bounding volume of any link, marking the candidate point as an environment point and setting the corresponding bit of the mask array to true.

[0017] In some embodiments, determining whether a candidate point is contained within the bounding body of any of the links includes: if the bounding body of each link is an axis-aligned bounding body, determining whether the three-dimensional coordinates of the candidate point fall within the axis-aligned bounding body of any of the links; if the bounding body of each link is a directed bounding body, transforming the three-dimensional coordinates of the candidate point to the local coordinate system of each link based on preset coordinate transformation parameters, and determining whether the transformed three-dimensional coordinates of the candidate point fall within the directed bounding body of any of the links.

[0018] In some embodiments, the robot further includes an end effector disposed thereon, and the poses of each link in the radar coordinate system include the poses of the end link connected to the end effector in the radar coordinate system. After converting the poses of each link in the robot base coordinate system to the poses in the radar coordinate system based on the radar extrinsic parameters, the robot further includes: calculating the target filtering region of the end effector according to a pre-configured filtering mode for end effector objects and the poses of the end link in the radar coordinate system; filtering the radar point cloud data based on the target filtering region to remove object points on the end effector, and generating the point-by-point retention mask.

[0019] In some embodiments, the filtering mode includes a sphere mode and a cuboid mode. The step of calculating the target filtering area of ​​the end effector based on a pre-configured filtering mode of the end effector object and the pose of the end link in the radar coordinate system includes: if the filtering mode is the sphere mode, determining the coordinates of the origin of the end link coordinate system in the radar coordinate system and the direction vector of the palm orientation axis of the end effector in the radar coordinate system based on the pose of the end link in the radar coordinate system; shifting the coordinates of the origin of the end link coordinate system in the radar coordinate system along the direction vector by a preset sphere center offset to determine the sphere center coordinates; based on the... The target filtering area is defined by the coordinates of the sphere's center and a preset sphere radius. If the filtering mode is the cuboid mode, the unit vector of the palm orientation axis in the coordinate system of the end effector is obtained. The origin of the end effector coordinate system is moved by a preset center offset based on the unit vector to determine the center of the cuboid. Based on the preset cuboid size parameters and the center of the cuboid, the cuboid of the end effector is constructed. According to the pose of the end effector in the radar coordinate system, the inverse transformation matrix from the end effector coordinate system to the radar coordinate system is obtained. Based on the inverse transformation matrix, the pose of the cuboid in the end effector coordinate system is set to define the target filtering area.

[0020] In some embodiments, the ball center offset is the sum of a first preset center forward displacement and the radius of the ball; the palm orientation axis is determined based on the principal axis index of the end link coordinate system, which corresponds to one of the three axes of the end link coordinate system; the cuboid size parameters include the length of the cuboid along the three axes of the end link coordinate system, and the center offset is the sum of half the length of the cuboid along the palm orientation axis and the second preset center forward displacement.

[0021] In some embodiments, if the filtering mode is the sphere mode, after performing multi-level filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask, the step of filtering the radar point cloud data based on the target filtering region to remove object points on the end effector and generating the point-by-point retention mask includes: calculating the distance from each data point in the radar point cloud data to the center of the sphere based on the sphere center coordinates; filtering data points located within the target filtering region based on the square of the distance and the square of the sphere radius; removing the data points located within the target filtering region and generating the point-by-point retention mask.

[0022] In some embodiments, if the filtering mode is the cuboid mode, after performing multi-level filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask, the step of filtering the radar point cloud data based on the target filtering region to remove object points on the end effector and generating the point-by-point retention mask includes: mapping each data point to the end effector coordinate system based on the inverse transformation matrix from the end effector coordinate system to the radar coordinate system; calculating the difference between the mapped data point and the center of the cuboid, and filtering data points located within the target filtering region based on the cuboid size parameters; removing the data points located within the target filtering region and generating the point-by-point retention mask.

[0023] In some embodiments, the filtering mode includes a clustering mode, and calculating the target filtering region of the end effector based on the pre-configured filtering mode of the end effector object and the pose of the end link in the radar coordinate system includes: constructing an initial seed region and / or region of interest based on the pre-set spherical geometry region or cuboid geometry region and the pose of the end link in the radar coordinate system to determine the target filtering region.

[0024] In some embodiments, if the filtering mode is the clustering mode, after performing multi-level filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask, the radar point cloud data is filtered based on the target filtering region to remove object points on the end effector and generate the point-by-point retention mask, including: when the target filtering region is the region of interest, filtering out data points in the radar point cloud data located in the region of interest and constructing a data point index set; performing clustering extraction based on the data point index set to construct a first target point cluster; removing data points contained in the first target point cluster and generating the point-by-point retention mask; when the target filtering region is the initial seed region, filtering out data points in the radar point cloud data located in the initial seed region. Data points are used as seed points; if the seed points exist, they are clustered and extracted to construct a second target point cluster; all data points corresponding to the second target point cluster are removed, and the point-by-point retention mask is generated; if the seed points do not exist, the current clustering filter is skipped, and the clustering filter mask is set to full retention; when the target filtering region is the region of interest and the initial seed region, data points located in the region of interest in the radar point cloud data are selected to construct a data point index set; clustering and extraction are performed according to the data point index set to construct a first target point cluster; data points in the first target point cluster are used as seed points, and clustering and extraction are performed on the seed points to construct a second target point cluster; all data points corresponding to the second target point cluster are removed, and the point-by-point retention mask is generated.

[0025] In some embodiments, the step of performing clustering extraction based on the data point index set to construct a first target point cluster includes: constructing multiple initial point clusters based on the data point index set using a preset clustering algorithm; extracting the geometric and statistical features of each initial point cluster; determining whether the geometric and statistical features of the initial point clusters meet preset determination conditions, and marking the initial point clusters that meet the determination conditions as the first target point clusters.

[0026] In some embodiments, the end effector includes a first end effector and a second end effector. When the distance between the first end effector and the second end effector is less than or equal to a preset distance threshold, the target filtering regions corresponding to the first end effector and the second end effector are merged, and the step of filtering the radar point cloud data based on the target filtering regions to remove object points on the end effector and generating the point-by-point retention mask is performed.

[0027] In some embodiments, after obtaining the current sampling frame count and bounding volume cache state, and determining whether the logic state, the current frame count, and the bounding volume cache state meet preset gating conditions, the method further includes: when the gating conditions are not met, using the bounding volume constructed by the previous kinematics calculation cached in the bounding volume cache as the bounding volume of the robot body to be filtered.

[0028] In some embodiments, the step of removing points corresponding to the robot body from the radar point cloud data according to the point-by-point retention mask, reconstructing and publishing the target radar point cloud data includes: organizing the original binary cache corresponding to the radar point cloud data into a two-dimensional view, wherein the number of rows in the two-dimensional view corresponds to the number of data points in the radar point cloud data, and the number of columns corresponds to the byte width occupied by a single data point; identifying target rows with true mask values ​​in the two-dimensional view according to the point-by-point retention mask, and truncating the target rows according to the byte width; assembling the truncated target rows into the target radar point cloud data and publishing it.

[0029] In addition, to achieve the above objectives, this application also provides an apparatus for filtering robot point clouds, characterized in that the apparatus includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the method for filtering robot point clouds as described in any of the preceding claims.

[0030] In addition, to achieve the above objectives, this application also provides a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and which, when executed by a processor, implements the steps of the method for filtering robot point clouds as described in any of the preceding claims.

[0031] This application provides a method for filtering robot point clouds. First, radar point cloud data and the robot's current joint angle data are received asynchronously. Then, a kinematic update flag is set to the current logical state based on the current joint angle data and historical joint angle data. The historical joint angle data refers to the joint angle data that participated in the previous kinematic calculation. The current system sampling frame count and bounding volume buffer status are obtained, and based on these, combined with the current logical state, it is determined whether preset gating conditions are met. If any gating condition is met, kinematic calculation is performed based on the current joint angle data, a pre-configured robot model, and configuration parameters to construct the bounding volume of the robot body to be filtered. The robot model is a unified robot description format model corresponding to the robot. Further, the radar point cloud data is filtered at multiple levels based on the bounding volume, and a point-by-point retention mask is generated. This point-by-point retention mask is used to remove points in the radar point cloud data corresponding to the robot body, and the target radar point cloud data is reconstructed and published. This method improves the practicality and robustness of robot body filtering in complex dynamic operation scenarios. Attached Figure Description

[0032] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

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

[0034] Figure 1 This is a flowchart illustrating a method for filtering robot point clouds according to this application, as provided in Embodiment 1.

[0035] Figure 2 This is a flowchart illustrating a second embodiment of the method for filtering robot point clouds provided in this application;

[0036] Figure 3 This is a flowchart illustrating a third embodiment of the method for filtering robot point clouds provided in this application;

[0037] Figure 4 This is a flowchart illustrating Embodiment 4 of the method for filtering robot point clouds provided in this application;

[0038] Figure 5 This is a first flowchart illustrating a fifth embodiment of the method for filtering robot point clouds according to this application.

[0039] Figure 6This is a second process diagram provided for Embodiment 5 of the method for filtering robot point clouds in this application;

[0040] Figure 7 This is a third flowchart provided in Embodiment 5 of the method for filtering robot point clouds according to this application;

[0041] Figure 8 This is a schematic diagram of the cuboid pattern used in the method for filtering robot point clouds in this application;

[0042] Figure 9 This is a schematic diagram of the overall process of the method for filtering robot point clouds used in this application;

[0043] Figure 10 This is a schematic diagram of the device structure of the hardware operating environment involved in the method for filtering robot point clouds in the embodiments of this application.

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

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

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

[0047] Example 1, Reference Figure 1 This application describes a method for filtering robot point clouds, which can be executed by a system for filtering robot point clouds (hereinafter referred to as the system), including:

[0048] Step S100: Asynchronously receive radar point cloud data and the robot's current joint angle data.

[0049] In this embodiment, radar point cloud data is collected by a LiDAR mounted on the robot body or in the external environment. The robot's current joint angle data is obtained in real time through position sensors (such as torque sensors, encoders, etc.) located at each joint of the robot. The radar point cloud data and the current joint angle data originate from different physical hardware and have different data generation frequencies and transmission characteristics. The radar point cloud data has a relatively low data generation frequency and a large single-frame data volume, resulting in high bandwidth consumption and computational load in data transmission and processing. In contrast, the current joint angle data has a much higher data generation frequency than the radar point cloud data; the angle data for a single joint is often a floating-point number with a smaller data volume, resulting in lower latency in data transmission, thus achieving near real-time reflection of the robot's instantaneous posture changes.

[0050] To facilitate the processing of these two types of data with completely different characteristics, this embodiment employs asynchronous reception. In a feasible implementation, the robot uses the Robot Operating System 2 (ROS2) software architecture. Within the ROS2 architecture, independent middleware subscription clients are created for the two types of data. Each subscription client corresponds to an independent data topic, used to receive radar point cloud data and current joint angle data respectively. These two middleware subscription clients each use independent callback functions and run in independent execution threads, with no thread blocking or execution dependencies between them. When radar point data (or current joint angle data) arrives, the callback function of its corresponding subscription client is responsible for writing it into the radar point cloud data buffer (or joint angle data buffer). The two buffers are independent of each other, and the data writing operations do not interfere with each other.

[0051] In this embodiment, by asynchronously receiving radar point cloud data and current joint angle data, the two types of data are no longer forced to match or align based on timestamps. This breaks the previous limitation of frame rate binding between the two types of data, which is beneficial to improving system throughput and real-time performance. Radar point cloud data and joint angle data can be immediately responded to and cached by the system upon their arrival, without waiting for each other. This not only ensures that high-frequency joint angle data can be fully utilized to reflect the robot's latest motion state, but also ensures that low-frequency point cloud data is less prone to frame loss. This provides a high-quality data foundation for subsequent steps.

[0052] Step S110: Based on the current joint angle data and historical joint angle data, set the current logical state of the kinematic update flag.

[0053] To avoid repeatedly performing complex kinematic calculations on a stationary robot or one exhibiting only minor vibrations, thus wasting computational resources, this embodiment introduces a logical variable—the kinematic update flag—to indicate whether kinematic calculations are needed to construct the robot's bounding volume. The kinematic update flag has two logical states: "true" and "false." Before performing the first kinematic calculation, the initial logical state of the kinematic update flag can be set to false. This kinematic update flag is primarily set based on the difference between the current joint angle data and historical joint angle data. Historical joint angle data refers to the joint angle data that participated in the previous kinematic calculation and was actually used to construct the robot's bounding volume. After the system completes a kinematic calculation, it saves the currently used current joint angle data to a preset storage area as historical joint angle data.

[0054] By comparing the current joint angle data with historical joint angle data, it can be determined whether the robot's posture has undergone a significant change that could effectively affect the position of the bounding volume. Specifically, the robot may have multiple rotational and / or translational joints. The angle value of each joint in the current joint angle data is extracted one by one, and the difference is calculated with the corresponding joint angle value in the historical joint angle data. The absolute value is then taken to obtain the absolute difference for each joint, thus forming a set of joint-by-joint absolute differences. To facilitate the measurement of the magnitude of changes in joint angle data, this embodiment also presets a joint angle change threshold (e.g., 0.1 degrees). When the maximum value in the joint-by-joint absolute differences is greater than the preset joint angle change threshold, it indicates that at least one joint of the robot has undergone a significant posture change. Therefore, the current logical state of the kinematic update flag needs to be set to true in order to carry out subsequent kinematic calculation steps. When the maximum value of the joint-by-joint absolute differences is less than or equal to the preset joint angle change threshold, it indicates that all joint displacements of the robot are within a small jitter range, and kinematic calculation is not required to construct a new bounding volume. At this point, setting or maintaining the current logical state of the kinematic update flag to false will cause the system to skip the current kinematic calculation and bounding volume construction process, and directly use the bounding volume in the bounding volume cache to filter the current radar point cloud data. It is understandable that the joint angle change threshold can be set according to actual application requirements.

[0055] In this embodiment, by setting a kinematic update flag, redundant kinematic calculations can be minimized while ensuring filtering accuracy. When the robot is stationary or undergoing slow fine-tuning, the computational load on the system can be effectively reduced, ensuring system efficiency.

[0056] Step S120: Obtain the current system sampling frame count and the state of the bounding volume buffer, and determine whether the logic state, the current frame count, and the state of the bounding volume buffer meet the preset gating conditions.

[0057] To avoid wasting computational resources due to frequent kinematic calculations, and to prevent filtering failure due to untimely calculations during high-speed robot movement, this embodiment implements a gating mechanism for kinematic calculations. Specifically, by setting gating conditions, combined with robot posture changes, system sampling period, and initialization state, the mechanism controls whether to perform kinematic calculations.

[0058] The robot's radar point cloud data filtering task is not triggered by a physical clock cycle, but rather scheduled periodically based on a system frame count. This system frame count refers to the cumulative number of joint angle data received since the system started or reset; that is, the counter increments once for each successfully received and decoded frame of joint angle data. It does not rely on a physical clock, but uses high-frequency joint angle data reception events as the triggering cycle for the radar point cloud data filtering task. The bounding volume buffer status refers to the occupancy of the buffer area in system memory used to temporarily store the most recently constructed robot bounding volume. It is mainly used to indicate whether the system has completed the initial bounding volume construction. If not, the bounding volume buffer status is marked as empty; if at least one motion calculation has been performed previously, the bounding volume buffer status is non-empty.

[0059] Based on this, the gating conditions are set as a first gating condition and a second gating condition. The first gating condition is that the current logical state of the kinematic update flag is true, and the current system frame count satisfies the divisibility relationship of the kinematic update frequency division interval. This gating condition is the main triggering logic under normal system operation. As explained in step S110, when the current logical state of the kinematic update flag is true, it indicates that the robot posture has changed significantly. However, the system does not immediately perform kinematic calculation in every frame, but controls the timing of the calculation based on the current frame count. Specifically, the system can pre-configure a kinematic update frequency division interval (e.g., updated once every 10 frames). Under the premise that the current logical state of the kinematic update flag is positive, if the current system sampling frame count is exactly divisible by the kinematic update frequency division interval, it is determined that the first gating condition is met. The second gating condition is that the bounding volume buffer is empty. This gating condition is mainly used for the initial triggering at the beginning of system startup or after reset. At this time, there is no bounding volume data in the bounding volume buffer, so kinematic calculation is required to construct the initial bounding volume.

[0060] Alternatively, in other feasible implementations, the gating conditions can be set according to the filtering requirements of the robot itself.

[0061] In actual operation, the system monitors the two gating conditions mentioned above in real time. The first gating condition controls the frequency of kinematic calculations, while the second gating condition ensures that the kinematic calculations take effect promptly. If either gating condition is met, subsequent kinematic calculations are allowed. By establishing this dual gating mechanism, refined management of computational resources can be achieved, ensuring that the bounding volume energy is updated promptly with the robot's movement while avoiding unnecessary repetitive calculations, thereby improving the system's operational efficiency.

[0062] Step S130: When any gating condition is met, kinematic calculations are performed based on the current joint angle data and the pre-configured robot model and configuration parameters to construct the bounding volume of the robot body to be filtered.

[0063] In this embodiment, kinematic calculations are performed when any gating condition is met. Through digital modeling, the robot's geometric model is updated to reconstruct the robot's physical position in the current posture, thereby constructing a bounding volume for the robot body to be filtered. The robot model is a URDF model corresponding to the robot. This model defines the robot's mechanical structure in a structured data format, including the connection relationships between links, joint types, axes of motion, and predefined geometric parameters of each link (such as cubes, cylinders, visual meshes, or collision meshes). This robot model can be pre-configured in the system and read by the system calling kinematic libraries (e.g., algorithm libraries based on Kinematics and DynamicsLibrary, Pinocchio algorithm library, or RBDL algorithm library). Configuration parameters include those necessary for kinematic calculations (such as bounding volume expansion margins, radar extrinsic parameters, etc.), which also need to be pre-configured in the system. The robot body to be filtered refers to the portion of the robot's own structure inevitably included in the point cloud data acquired by the radar due to limitations in the installation location or field of view coverage of the LiDAR.

[0064] In one embodiment, the lidar is mounted on the robot's base or torso, and its field of view often covers the main components of the robot used to perform tasks, such as multi-degree-of-freedom robotic arms and end effectors (such as grippers, suction cups, etc.) mounted at the end of the robotic arms. These components constitute the robot body to be filtered. The clusters of points formed by these components in the lidar point cloud data not only occupy computing bandwidth but also interfere with subsequent environmental recognition and obstacle avoidance algorithms. Therefore, it is necessary to construct a bounding volume to determine the filtering range so that the lidar point cloud data (i.e., the clusters of points formed by the robot body to be filtered) within the filtering range can be filtered subsequently.

[0065] Furthermore, when constructing the bounding volume, the system first inputs the current joint angle data into the kinematics library and calculates the pose of each link in the robot's base coordinate system using the URDF model. By configuring the radar extrinsic parameters, the pose of the links in the robot's base coordinate system can be transformed to the radar coordinate system. Then, based on the link geometry defined in the URDF model and the bounding volume expansion margin in the configuration parameters, the bounding volume of each link is constructed. Based on the bounding volumes of each link, the global bounding volume of the robot body to be filtered can also be determined. The constructed global bounding volume and the bounding volumes of each link will subsequently be used for global coarse screening and link-level fine screening of the radar point cloud data, respectively.

[0066] In this embodiment, the system can generate a bounding volume that perfectly matches the robot's current posture in real time and accurately, laying the foundation for the filtering range of the subsequent hierarchical filtering of radar point cloud data (i.e., global coarse screening and linkage-level fine screening).

[0067] Step S140: Based on the bounding volume, perform multi-level filtering on the radar point cloud data and generate a point-by-point preserved mask.

[0068] The constructed bounding volume defines the filtering range of the radar point cloud data. Based on this, in order to improve the filtering accuracy and efficiency, this embodiment adopts a multi-level filtering strategy to screen the radar point cloud data.

[0069] Specifically, the global bounding volume is the largest outer bounding volume of the bounding volumes of each link. First, the global bounding volume is used to perform an initial screening of all radar point cloud data (i.e., global coarse screening), that is, traversing each radar point cloud data and determining whether it falls within the global bounding volume. This initial screening quickly eliminates most environmental points outside the global bounding volume, retaining only those radar point cloud data within the global bounding volume that may belong to the robot body (i.e., candidate points). Next, the bounding volumes of each link are used to further refine the candidate points (i.e., link-level fine screening), that is, traversing each candidate point and checking whether it falls within the bounding volume of any previously constructed link. If it falls within the bounding volume of any link, it is determined to be a robot body point; otherwise, it is determined to be an environmental point. After the above filtering process, each radar data point will generate a corresponding logical identifier. The set of these logical identifiers is the point-by-point retention mask. The environment point and the robot body point correspond to different mask values. Subsequently, robot body points can be eliminated based on the different mask values ​​in the non-retained mask (such as "0" and "1" corresponding to robot body points and environment points, respectively). Optionally, "false", "true" or other mask values ​​can also be used to identify robot body points or environment points respectively.

[0070] In this embodiment, the aforementioned hierarchical screening strategy achieves an optimized balance between computational efficiency and filtering accuracy. The global coarse screening leverages the simple structure of the global bounding volume and the minimal computational cost of collision detection, enabling the rapid elimination of a large amount of irrelevant radar point cloud data. The fine screening stage, on the other hand, performs high-precision detection on candidate points, significantly improving both computational efficiency and filtering accuracy.

[0071] Step S150: Based on the point-by-point retention mask, remove the points in the radar point cloud data that correspond to the robot body, reconstruct and publish the target radar point cloud data.

[0072] Radar point cloud data is stored continuously in memory as a binary cache. Based on the point-by-point retention mask, to facilitate the removal of robot body points from the radar point cloud data, this embodiment organizes the original binary cache corresponding to the radar point cloud data into a two-dimensional view. Specifically, the system parses the structural information of the original radar point cloud data to determine the number of points in a single frame and the byte width occupied by each data point. The number of rows in the two-dimensional view corresponds to the number of data points, and the number of columns corresponds to the byte width, thus constructing a two-dimensional view corresponding to the radar point cloud data in the binary cache. In this two-dimensional view, each row represents a point cloud data point, and each column represents a byte segment of that point cloud data point.

[0073] Furthermore, the target row is identified and data is extracted based on the point-by-point retention mask. The position index of each mask value in the point-by-point retention mask corresponds to the row number in the 2D view. The system iterates through the point-by-point retention mask, identifies the position index of the mask value "true" (representing that the point is an environment point), determines the target row in the 2D view, and extracts byte fragments of the target row according to the byte width of a single data point. Robot body points corresponding to mask values ​​of "false" will have their corresponding rows and columns in the 2D view directly skipped.

[0074] Finally, the extracted target row fields need to be reassembled and published as target radar point cloud data. In this process, the system concatenates all extracted target row fields into a new continuous binary cache according to their relative order in the initial radar point cloud, thus obtaining the reconstructed target radar point cloud. This target radar point cloud does not include robot body points and will be published to downstream perception nodes (such as SLAM algorithms or navigation stacks) for subsequent environmental perception and decision-making.

[0075] In this embodiment, by adopting a reconstruction method based on a two-dimensional view, the frequent memory allocation and deallocation operations in previous traversal methods can be avoided, achieving data processing efficiency at the level of zero copy or shallow copy. After filtering, all fields (intensity, line number, timestamp, etc.) of the initial radar point cloud are retained, which is completely consistent with the layout of the input message. Downstream sensing nodes can obtain clean and accurate environmental information in real time, significantly improving the response speed and stability of the entire robot sensing system.

[0076] Example 2: Based on Example 1 of this application, the following is combined with... Figure 2 This application further explains the method for filtering the robot body. The current embodiment can be considered a refined implementation of step S130 in Embodiment 1. Content that is the same as or similar to Embodiment 1 can be referred to the above description and will not be repeated hereafter. (Refer to...) Figure 2 ,include:

[0077] Step 200: Determine the current joint angle vector based on the current joint angle data.

[0078] Step 210: Based on the current joint angle vector and robot model, calculate the pose of each link of the robot in the robot base coordinate system.

[0079] Step 220: Based on radar extrinsic parameters, convert the pose of each link in the robot base coordinate system to the pose in the radar coordinate system.

[0080] Step 230: Based on the pose of each link in the radar coordinate system, the bounding volume expansion margin, and the predefined link geometry in the robot model, construct the bounding volume of each link in the radar coordinate system.

[0081] Step 240: Construct a global bounding volume based on the bounding volume of each link in the radar coordinate system.

[0082] In this embodiment, the robot base coordinate system is a three-dimensional Cartesian coordinate system defined on the robot base, which provides an absolute reference origin for calculating the pose of each link. The radar coordinate system is a three-dimensional Cartesian coordinate system defined on the lidar. There are fixed transformation parameters between the radar coordinate system and the robot base coordinate system. The pre-configured parameters include radar extrinsic parameters and bounding volume expansion margin. The radar extrinsic parameters describe the spatial transformation relationship between the radar coordinate system and the robot base coordinate system. These can be fixed extrinsic parameters from the lidar to the robot base, or a coordinate chain formed by the lidar to the robot end effector and from the end effector to the robot base. The bounding volume expansion margin is used to add a preset safety distance to the physical surface of the robot links to compensate for point cloud noise or mechanical tolerances. The bounding volume can be understood as a geometric body with a regular shape and a volume slightly larger than the complex object to be detected (such as robot links, obstacles, etc.). Its shape can be a cuboid, sphere, cylinder, etc., and simple mathematical formulas such as the equation of the sphere and plane inequalities can be used to simplify the description of complex objects.

[0083] Currently, the joint angle data are mostly discrete joint angle values. To facilitate the calculation of the bounding volume, they need to be assembled according to a predefined joint order to construct the corresponding current joint angle vector. The dimension of this current joint angle vector matches the degrees of freedom of the robot model. Next, the system calls the kinematics solution library, loads the pre-configured robot model (i.e., the URDF model), and uses the current joint angle data as the basic input variable for kinematics solution. Based on the link lengths, joint offsets, and rotation axes defined in the robot model, kinematics solution is performed to calculate the pose of each link contained in the robot body to be filtered in the robot's base coordinate system. The pose of each link can be represented by a 4x4 homogeneous transformation matrix, which contains the link's position coordinates and orientation quaternions in space.

[0084] It is understandable that the 3D coordinates corresponding to radar point cloud data are described based on the radar coordinate system. To facilitate the determination of whether the radar point cloud data is within the bounding box, it is necessary to first transform the pose of each link in the robot's base coordinate system to a unified coordinate system. That is, matrix multiplication is performed using the homogeneous transformation matrix that describes the pose of each link in the base coordinate system using radar extrapolation, thereby obtaining the pose of each link in the radar coordinate system.

[0085] Furthermore, when constructing the bounding volume, the system prioritizes extracting the geometric information (i.e., link geometry) corresponding to each link from the robot model. In the URDF model, link geometry can be defined based on a collision mesh or a visual mesh. The collision mesh is a simplified mesh with fewer faces, suitable for real-time calculation; the visual mesh is more refined with more faces, resulting in greater computational overhead. Based on the different characteristics of the two meshes, this embodiment sets the loading priority of link geometry defined based on the collision mesh to be higher than that defined based on the visual mesh. In addition, the loaded link geometry needs to be expanded according to the bounding volume expansion margin set in the configuration parameters, and spatial transformation is performed according to the pose of each link in the radar coordinate system to ensure that the pose of the constructed bounding volume of each link in the radar coordinate system is consistent with the previously calculated pose of each link in the radar coordinate system. Finally, a bounding volume is constructed for the transformed geometry. In one embodiment, the bounding volume of each link in the radar coordinate system is an axis-aligned bounding box (AABB), whose edges are parallel to the axis of the radar coordinate system, facilitating rapid detection. Alternatively, in another embodiment, the bounding body is an oriented bounding box (OBB), which can rotate with the links for higher precision. The bounding bodies constructed for each link are used to support fine screening in multi-stage filtration.

[0086] To support multi-level filtering and global initial screening, the system will construct a global bounding volume after all the individual bounding volumes of the links are built. This global bounding volume is the largest circumscribed geometry that can completely encompass all the bounding volumes of the links. In a preferred embodiment, this global bounding volume is a global axis-aligned bounding volume, i.e., the maximum and minimum values ​​of all the bounding volumes of the links in the radar coordinate system's X, Y, and Z axes are calculated to generate the largest axis-aligned cube or cuboid. This global bounding volume will serve as the first filtering barrier, quickly eliminating the vast majority of radar point cloud data far from the robot body, thereby significantly improving the overall filtering efficiency.

[0087] In this embodiment, by adopting the above steps, a precise and efficient geometric filtering model can be generated systematically and automatically based on the robot's current real-time posture, providing a solid geometric foundation for subsequent radar point cloud data filtering.

[0088] It should be noted that after executing steps S200-S240, the kinematics calculation and bounding volume construction are complete, and the robot's geometric model has been updated to the latest state. To prevent unnecessary kinematics calculations from being triggered repeatedly in the next frame of point cloud processing due to the absence of new significant joint changes, the system proactively resets the logical state of the kinematics update flag from "true" to "false." The next round of kinematics calculation is triggered only when a significant change in the robot's joint angles is detected again in step S120. Secondly, the system caches the current joint angle data used for this calculation in the historical joint angle data storage area to overwrite previous historical joint angle data, becoming the historical joint angle data for the next round of kinematics calculation. Furthermore, the system caches the bounding volumes of each link and the global bounding volume constructed in this calculation in the bounding volume cache area. When performing the next round of gating detection, if all gating conditions are not met, that is, the robot joints have not changed significantly and kinematic calculations have already been performed, then there is no need to perform kinematic calculations to construct a new bounding volume. Instead, the bounding volume data (including the bounding volumes of each link and the global bounding volume) in the bounding volume cache is directly read as the bounding volume of the robot body with filtering, and then step S140 is executed to carry out multi-level filtering.

[0089] It is understandable that by resetting the logical state of the kinematic update flag and caching joint angle data and bounding volume data, the system can ensure a smooth transition between different processing cycles and maintain the logical closed loop between the kinematic update flag and joint angle data, thus providing a basic guarantee for the stable operation of the entire point cloud filtering system.

[0090] Example 3: Based on Examples 1 and 2 of this application, the following is combined with... Figure 3 This application further explains the method for filtering robot point clouds. The current embodiment can be considered a refined implementation of step S140 in Embodiment 1. Content that is the same as or similar to Embodiment 1 and Embodiment 2 can be referred to the above description and will not be repeated hereafter. (Refer to...) Figure 3 ,include:

[0091] Step S300: Determine whether the three-dimensional coordinates of each data point in the radar point cloud data fall within the global bounding volume. When the three-dimensional coordinates of the data points all fall within the global bounding volume, mark the data points as candidate points.

[0092] Step S310: When the three-dimensional coordinates of the data points do not all fall within the global bounding volume, mark the data points as environment points and set the corresponding bits of the mask array to true.

[0093] After constructing the global bounding volume and the bounding volumes of each link in step 240, in this embodiment, the system further uses the constructed bounding volumes to perform multi-level filtering on the radar point cloud data and generate a point-by-point retention mask.

[0094] First, the system initializes a mask array, the length of which is exactly the same as the total number of data points in the current frame of radar point cloud data. This mask array is used to record the retention / retention status of each data point to generate a point-by-point retention mask. Next, the system iterates through each data point in the radar point cloud data. For each data point, the system extracts its 3D coordinates (X, Y, Z) and determines whether these coordinates are all within the boundary of the global bounding volume. Since the constructed global bounding volume is a globally axis-aligned bounding volume, when determining whether a data point is within the global bounding volume, it can be determined whether the X coordinate of the data point is greater than the minimum X-axis value and less than the maximum X-axis value of the global bounding volume (the same applies to Y and Z coordinate points). If all 3D coordinates of the data point fall within the global bounding volume, it indicates that the point is relatively close to the robot body and may belong to the robot's own structure. The system temporarily marks it as a candidate point and retains it for the next step of precise judgment. If not all 3D coordinates of the data point fall within the global bounding volume (i.e., at least one coordinate value exceeds the corresponding boundary of the global bounding volume), the point is directly determined to be an environmental point far from the robot, and its corresponding mask array bit is set to true, indicating that it is retained. At this point, a global coarse screening of the radar point cloud data was completed. During this stage, the vast majority of environmental points far from the robot were quickly marked, significantly reducing the scale of data requiring subsequent fine-grained detection.

[0095] Step S320: Based on the bounding volume of each link, determine whether the candidate point is contained in the bounding volume of any link. When the candidate point is contained in the bounding volume of any link, mark the candidate point as a robot body point and write the corresponding bit of the mask array as false.

[0096] Step S330: When a candidate point is not contained within the bounding volume of any link, mark the candidate point as an environment point and set the corresponding bit of the mask array to true.

[0097] Furthermore, the data marked as candidate points undergoes a link-level fine screening process. The system iterates through each candidate point, performing collision detection with the independent bounding bodies of each link to determine if it falls within any link's bounding body. If a candidate point is contained within any link's bounding body, it indicates that the point was indeed formed by reflection from the robot body (such as a robotic arm or end effector). The system ultimately marks it as a robot body point and sets the corresponding bit in the mask array to false, indicating it needs to be removed. If a candidate point is not contained within any link's bounding body, it indicates that although the point is close to the robot, it does not fall on the robot's physical bounding body. The system ultimately marks it as an environmental point and sets the corresponding bit in the mask array to true, indicating it is retained.

[0098] Since the bounding body of a link may be either an axis-aligned bounding body or a directional bounding body, the specific methods for determining the bounding body of each link can also be divided into two types.

[0099] If the bounding volume of each link is an axis-aligned bounding volume, then it is determined whether the 3D coordinates of the candidate point fall within the axis-aligned bounding volume of any link. The determination method is the same as that used in the global coarse screening to determine whether a data point falls within the global bounding volume, and will not be repeated here. If the bounding volume of a link is a directed bounding volume, the system uses preset coordinate transformation parameters (i.e., the inverse matrix of the pose transformation matrix of the link in the radar coordinate system) to transform the 3D coordinates of the candidate point from the radar coordinate system to the local coordinate system of the link, obtaining the transformed 3D coordinates. Subsequently, it is determined whether the transformed 3D coordinates all fall within the standard boundary range of the directed bounding volume of the link in its local coordinate system. If they all fall within this range, then the candidate point is determined to be contained within the directed bounding volume.

[0100] Through the above steps, the entire process from global coarse screening to linkage-level fine screening can be realized. The system can then perform subsequent point cloud reconstruction and publishing operations based on the mask array formed in this stage.

[0101] Example 4: Based on the foregoing examples, the following is combined with... Figure 4 This application further explains the method for filtering robot point clouds. The current embodiment can be regarded as being executed after step S220 of embodiment two, and also corresponds to the steps before step S150 of embodiment one. The same or similar content as the foregoing embodiments can be referred to the above description, and will not be repeated hereafter.

[0102] In practical applications, robots typically also include end effectors located at their ends, such as dexterous hands, grippers, or suction cups. Because end effectors like dexterous hands usually have multiple degrees of freedom and complex structures, they are often difficult to model accurately in a unified robot description format, or their link enclosures are too loose, resulting in insufficient filtering accuracy. To address this, this embodiment provides a filtering function for the end effector and the objects attached to it (such as the workpiece being gripped or obstructions) (hereinafter referred to as the hand filtering function). See [reference]. Figure 4 If the system is pre-configured to enable end effector filtering, the system will perform the following steps:

[0103] Step S400: Calculate the target filtering area of ​​the end effector based on the pre-configured filtering mode of the end effector object and the pose of the end link in the radar coordinate system.

[0104] In this embodiment, the end effector link refers to the link of the last joint of the robot directly connected to the end effector, and its pose has been obtained in step S220. The filtering mode can be understood as a follower spatial geometric domain defined by the end effector, which defines the geometry used to approximate the end effector's display space and needs to be pre-configured in the system. In a preferred embodiment, the filtering mode is configured as a sphere mode or a cuboid mode.

[0105] When the filtering mode is spherical, the system first determines the coordinates of the end effector's coordinate system origin and the direction vector of the palm orientation axis in the radar coordinate system based on the end effector's pose in the radar coordinate system. The coordinates of the end effector's coordinate system origin in the radar coordinate system can be determined by the translation components of the end effector in the radar coordinate system. The palm orientation axis refers to the principal axis in the end effector's local coordinate system that describes the end effector's direction and orientation in three-dimensional space. It can be determined by the principal axis index of the end effector's coordinate system and corresponds to one of the three axes (such as the Z-axis) of the end effector's coordinate system. Transforming the palm orientation axis direction vector to the radar coordinate system using the end effector's rotation matrix yields the palm orientation axis direction vector in the radar coordinate system. Next, the system moves the end effector's coordinate system origin (coordinates in the radar coordinate system) along the palm orientation axis direction vector in the radar coordinate system by a preset sphere center offset. The resulting coordinates are the sphere center coordinates of the spherical filtering area defined for the end effector. Furthermore, the size of the sphere needs to be defined. Based on the coordinates of the sphere's center and the preset sphere radius, the system determines the final sphere filtering area (i.e., the target filtering area).

[0106] The sphere center offset is a pre-set compensation parameter used to compensate for the thickness of the end effector or the tool mounting position on it. The sphere radius can be pre-configured according to the size of the end effector and the required filtering range. As a feasible implementation, the sphere center offset is the sum of a first preset center forward movement and the sphere radius. The first preset center forward movement refers to the preset distance from the origin of the end effector's coordinates to the near-end boundary of the sphere's filtering area (i.e., the surface closer to the robot body). This embodiment does not limit the specific values ​​of the first preset center forward movement and the sphere radius.

[0107] If the filtering mode is cuboid mode, the center of the cuboid needs to be determined first. In this mode, the unit vector of the palm orientation axis in the end-link coordinate system can also be obtained through the principal axis index. The origin of the end-link coordinate system is moved along this unit vector by a preset center offset to obtain the center position of the cuboid in the end-link coordinate system. Next, based on the center of the cuboid and the preset cuboid size parameters, a cuboid is constructed in the end-link coordinate system, with each side of the cuboid being parallel to the axis of the end-link coordinate system by default. Subsequently, based on the pose of the end-link in the radar coordinate system obtained in step S220, the transformation matrix from the end-link coordinate system to the radar coordinate system is extracted, and its inverse transformation matrix is ​​calculated. Using this inverse transformation matrix, the axis alignment state of the cuboid in the end-link coordinate system is mapped to the radar coordinate system, so that its pose is completely consistent with the actual orientation of the end-link. This spatially transformed cuboid is the target filtering area.

[0108] The dimensions of the cuboid include its length along the three axes of the end effector coordinate system, while the center offset is the sum of half the length of the cuboid along the palm-facing axis and the second preset center shift. The second preset center shift refers to the preset distance from the origin of the end effector coordinate system to the near-end boundary of the cuboid (i.e., the surface closest to the robot body). The dimensions of the cuboid can also be pre-configured according to the size of the end effector and the required filtering range. This embodiment does not limit the specific values ​​of the second preset center shift and the length of the cuboid along the three axes of the end effector coordinate system.

[0109] It should be noted that step S400 can be executed synchronously with steps S230 and S240 after the pose of each link is solved in step S220 in embodiment 2.

[0110] Step S410: Based on the target filtering area, the radar point cloud data is filtered to remove object points on the end effector and a point-by-point retention mask is generated.

[0111] Step S410 is performed after step S150 (multi-level filtering of radar point cloud data based on bounding volume and generation of point-by-point retention mask). Its purpose is to further eliminate interference points generated by the end effector (such as dexterous hand) and the object it grasps, based on the initial elimination of the robot body (such as robotic arm links). Depending on the filtering mode determined in step S400, this step adopts the following two specific screening strategies:

[0112] When the system is configured in sphere mode, this step uses the sphere center coordinates and sphere radius determined in step S400 to perform a secondary screening of the point cloud data. First, based on the 3D coordinates and sphere center coordinates of each data point, the squared distance from the data point to the sphere center is calculated. During this process, the system traverses each data point in the radar point cloud data, extracts its 3D coordinates, and then calculates the sum of the squares of the differences between the 3D coordinates of the data point and the sphere center coordinates along the three axes. Further, data points located within the sphere filtering area are filtered. The system compares the calculated sum of squares with the pre-calculated square of the sphere radius. If the sum of squares of the data point is less than the square of the sphere radius, it is determined that the data point falls within the sphere target filtering area, and it may be an object point on the end effector or a hand occlusion point. At this time, the system updates the corresponding logical bit in the mask array to false to remove it from the final point cloud. For data points that do not fall within the sphere, the mask remains unchanged. After this round of correction, the mask array is finally determined and used for subsequent point cloud reconstruction.

[0113] When the system is configured in cuboid mode, this step utilizes the cuboid target filtering region constructed in step S400 to perform more refined geometric detection on the point cloud data. First, the data points are mapped to the end-link coordinate system. During this process, the system extracts the inverse transformation matrix obtained in step S400 and performs coordinate transformation operations on each data point in the radar point cloud, converting the coordinates of the point in the radar coordinate system to the coordinates in the end-link coordinate system. This transformation process can effectively convert a cuboid with arbitrary orientation in the radar coordinate system into a cuboid with all sides parallel to the coordinate axes in the end-link coordinate system, thus simplifying subsequent detection logic. Further, data points located within the cuboid filtering region are filtered. That is, the system calculates the absolute difference between the mapped data point coordinates and the cuboid center coordinates along each axis. Subsequently, the system reads the preset cuboid size parameters and calculates the half-length values ​​of the cuboid along each axis. If the absolute difference of the data point in each of the three axes is less than the corresponding half-length value, the data point is determined to fall within the cuboid target filtering region. (Refer to...) Figure 8 The diagram illustrates the cuboid pattern used in the hand filtering function. For data points determined to fall within the cuboid, the system updates the corresponding logical bit in the mask array to indicate removal. Conversely, it retains the original state. At this point, the system completes the removal of points within the cuboid filtering area, generating the final point-by-point retention mask.

[0114] If the robot has two end effectors, left and right, the sphere size parameters (including the first preset center forward displacement and sphere radius) or cuboid size parameters of the left and right ends can be configured separately. Furthermore, the sphere mode and cuboid mode can be adapted to the geometry of the end effector or different grasping scenarios. For example, the sphere mode is suitable for compact objects, and the parameter can be configured only for the sphere radius; the cuboid mode is suitable for slender tools, and the parameter can be independently customized based on the length of the cuboid along the three axes of the end effector's coordinate system.

[0115] Through the two implementation methods described above, this application can flexibly adapt to different end effector shapes and application scenarios. The sphere mode has extremely low computational overhead and is suitable for fast, coarse filtering. The cuboid mode has slightly higher computational cost than the sphere mode, but it can more closely fit the actual contour of the end effector, resulting in higher filtering accuracy. Both methods perform secondary corrections based on the ontology screening, ensuring the integrity of the filtering while avoiding overly complex geometric calculations in the initial screening stage, thus achieving a balance between accuracy and efficiency. Understandably, users can flexibly choose the filtering mode according to the actual application scenario (such as the size, shape, and accuracy requirements of the object being grasped), thereby maximizing the retention of useful spatial information while ensuring the purity of the environmental point cloud.

[0116] Example 5: Based on Examples 1 to 4 above, the following is combined with... Figure 5 , Figure 6 , Figure 7 This further explains the method for filtering robot point clouds in this application. Regarding the filtering modes mentioned in Embodiment 4, in addition to the aforementioned sphere and cuboid modes, this embodiment also provides another filtering mode—clustering mode. This embodiment can be considered as another preferred solution to steps S400~S410 of Embodiment 4, which includes:

[0117] Step S500: Based on the pre-defined spherical or cuboid geometric region and the pose of the end link in the radar coordinate system, construct an initial seed region and / or region of interest to determine the target filtering region.

[0118] In this embodiment, the clustering pattern does not simply rely on a preset fixed geometry, but rather combines the spatial distribution characteristics of the point cloud to adaptively identify the end effector and its grasped object through a data-driven approach. It is worth noting that in the clustering pattern, the system still needs to define the spatial range based on a pre-defined spherical or cuboid geometric region. This spatial range may include an initial seed region and / or a region of interest (ROI). The initial seed region is the core region used to initiate the clustering algorithm; it is located near the end effector's hand or fingertips to ensure the algorithm accurately identifies the target object and avoids spreading from the background point cloud. The ROI is the boundary region that limits the search range of the clustering algorithm, used to exclude interfering points far from the end effector, reduce computational complexity, and prevent false clustering.

[0119] The system constructs the initial seed region and / or region of interest based on a pre-defined spherical or cuboid geometric region and the pose of the end link in the radar coordinate system. The coordinate range of these regions is then used as the target filtering region for subsequent clustering processing. The method for constructing the initial seed region and / or region of interest is the same as the method described in step S400 of Embodiment 4, where the target filtering region is determined based on the pose of the end link in the radar coordinate system under the spherical and cuboid modes. The spherical geometric region corresponds to the spherical mode, and the cuboid geometric region corresponds to the cuboid mode. That is, if the pre-defined geometric region is a spherical (or cuboid) geometric region, the steps described in step S400 for determining the target filtering region under the spherical mode (cuboid geometric region) can be used to construct the initial seed region and / or region of interest to determine the target filtering region under the clustering mode. Detailed steps are not repeated in this embodiment. However, it should be noted that the size parameters of the spherical and cuboid geometric regions under the clustering mode can be either the same as those configured in the spherical and cuboid modes or configured independently. Furthermore, the regions defined by the sphere and cuboid patterns introduced in step S400 are semantically different from the sphere and cuboid geometric regions described in this embodiment. The regions defined in Embodiment 4 can be understood as being used to eliminate interference; that is, data points within these regions are considered interference to be eliminated (i.e., robot body points). In contrast, the geometric regions defined in the clustering pattern can be understood as being used to extract candidate targets; that is, points within these regions are not directly filtered but are considered candidate targets for clustering analysis (such as end effectors and their gripped objects).

[0120] Furthermore, the initial seed region and the region of interest (ROI) can be constructed separately or jointly, depending on the relationship between the candidate target and its environment. For example, when a candidate target is completely isolated in space and has a significant distance from its surroundings, only the initial seed region needs to be constructed. In this case, points falling into the initial seed region are usually part of the candidate target and have high confidence. Subsequently, clustering algorithms can be used to grow outward from the high-confidence starting point, segmenting the radar point cloud to obtain the complete candidate target. When only the radar point cloud within a specific spatial range of the candidate target needs to be extracted for coarse filtering, only the ROI needs to be constructed. However, in engineering scenarios where the candidate target is closely integrated with its surroundings, such as when a robot's handheld tool touches a table or the end effector of a robotic arm approaches a wall, the continuity of the radar point cloud will cause the region growth to cross the contact boundary, resulting in over-segmentation or incorrect rejection. At this point, initial seed region and region of interest constraints can be constructed simultaneously, forming a complementary relationship. The initial seed region is responsible for identifying high-confidence starting points to drive accurate growth, while the region of interest serves as the absolute spatial boundary, limiting the clustering operation to the vicinity of the end effector. Even if the point cloud extends continuously along the surface of the environment, the portion exceeding the boundary will be forcibly truncated, thereby effectively preventing subsequent clustering algorithms from mistakenly classifying the environmental point cloud as a handheld object, ensuring the accuracy and robustness of target segmentation.

[0121] Furthermore, after executing step S500, it is also necessary to perform the steps of radar point cloud data filtering and mask generation under the clustering mode. (Refer to...) Figure 5 When the target filtered region is a region of interest, perform the following steps:

[0122] Step S510: Select data points located in the region of interest from the radar point cloud data and construct a data point index set.

[0123] Step S511: Perform clustering extraction based on the data point index set to construct the first target point cluster.

[0124] Step S512: Remove the data points contained in the first target point cluster and generate a point-by-point retention mask.

[0125] In this embodiment, when the target filtering area is only the region of interest, the system first constructs a data point index set. During this process, the system traverses the radar point cloud data, filters out all data points located within the region of interest, and records the index values ​​of these points (i.e., their position numbers in the point cloud array) into a set, which is the data point index set. Next, the system calls a preset clustering algorithm (such as Euclidean clustering, density clustering, etc.) to perform clustering operations based on the points in the aforementioned data point index set. Specifically, using the clustering algorithm, the spatial distance between points in the set is calculated, and points with a distance less than a specific threshold are grouped into the same cluster, thereby constructing multiple initial point clusters. Subsequently, the system extracts the geometric and statistical features of each initial point cluster, such as the cluster's volume, surface area, centroid location, or number of points. These features are then compared with preset judgment conditions (e.g., the number of points is greater than a certain minimum value and less than a certain maximum value), and the initial point clusters that meet the judgment conditions are marked as the first target point cluster. Finally, the system sets the mask bits corresponding to all data points belonging to the first target point cluster to indicate the culling state, thereby removing the object points on the end effector from the point cloud and generating the final point-by-point retention mask.

[0126] Optionally, refer to Figure 6 After executing step S500, if the target filtering region is the initial seed region, the following steps are executed:

[0127] Step S520: Select data points in the radar point cloud data that are located in the initial seed region as seed points.

[0128] Step S521: If seed points exist, perform cluster extraction on the seed points to construct the second target point cluster.

[0129] Step S522: Remove all data points corresponding to the second target point cluster and generate a point-by-point retention mask;

[0130] In step S523, if there is no seed point, skip this clustering filter and set the clustering filter mask to the fully preserved state.

[0131] In this embodiment, when the target filtering region is only the initial seed region, the system first traverses the radar point cloud data, filters out all data points located within the initial seed region, and directly defines these points as seed points, which are the starting point for cluster growth. Next, if seed points exist, the system performs cluster extraction to construct a second target point cluster. To efficiently find neighboring points, the system first constructs a spatial index structure (e.g., a KD-tree or octree) based on the entire frame of radar point cloud data. Subsequently, the system creates a search queue based on the filtered seed points, and by traversing this queue, using the spatial index structure and a preset neighborhood radius, searches for the nearest neighbors of each seed point. The found nearest neighbors are added to the queue, and the search continues to expand outwards until no new nearest neighbors can be found. Through the above process, a complete connected component, i.e., the second target point cluster, can be constructed, representing the entire object growing from the seed points. Finally, the system sets the mask bits corresponding to all data points contained in the second target point cluster to indicate a discarded state, generating the final point-by-point retention mask.

[0132] It should be noted that if no seed point is identified (e.g., the object on the end effector has not yet entered the seed region, or the seed parameters are not configured properly), the clustering filtering will not take effect in this round, the clustering filtering mask will be retained, and the hand filtering function can be degraded to relying only on the sphere mode or cuboid mode to perform hand filtering as described in Example 4.

[0133] Optionally, refer to Figure 7 After executing step S500, if the target filtering region is the initial seed region and the region of interest, the following steps are executed:

[0134] Step S530: Filter out the data points located in the region of interest in the radar point cloud data and construct a data point index set.

[0135] Step S531: Perform clustering extraction based on the data point index set to construct the first target point cluster.

[0136] Step S532: Use the data points in the first target point cluster as seed points, and perform clustering extraction on the seed points to construct the second target point cluster.

[0137] Step S533: Remove all data points corresponding to the second target point cluster and generate a point-by-point retention mask.

[0138] In this embodiment, when the target filtering region simultaneously contains both the region of interest and the initial seed region, the system combines the above... Figure 5 and Figure 7The two strategies shown are used to filter radar point cloud data. Specifically, the system first filters out data points located within the region of interest and constructs a data point index set (construction method similar to step S510). Next, the system processes this index set using a clustering algorithm to construct multiple initial point clusters, and selects clusters that meet the judgment criteria based on geometric and statistical characteristics, marking them as the first target point cluster. The first target point cluster constructed in this step can effectively lock suspected target objects over a large area. Subsequently, the system treats all data points within the first target point cluster as new seed points and performs the same generation process as in step S512, i.e., constructing a spatial index structure for the entire frame point cloud, creating a search queue based on these seed points, and searching for nearest neighbors according to a preset neighborhood radius, thereby constructing a more complete and accurate second target point cluster. Finally, the system removes all data points corresponding to the second target point cluster, generating the final point-by-point retention mask. In this embodiment, by simultaneously defining the initial seed region and the region of interest, the search space can be shrunk using the region of interest while ensuring clustering accuracy using the seed region.

[0139] The clustering pattern described in this embodiment enables robot body filtering to adapt to grasping objects with irregular shapes, complex surface textures, or partial occlusion. This pattern, by recognizing the spatial continuity of the point cloud, can extract the object's point cloud more completely, significantly improving the robustness and accuracy of filtering out interference points at the end of the object in complex operating scenarios.

[0140] Furthermore, in one embodiment, the robot has multiple end effectors, such as a robot equipped with two grippers or two arms, defined as a first end effector and a second end effector. When these two end effectors work together (e.g., both hands cooperate to move the same object) or are in a retracted state (e.g., both grippers close to grasp a large object), their spatial distance will be very close. If both the first and second end effectors enable clustering mode and each uses its own independent filtering region for processing, it will not only increase unnecessary computational overhead but also easily lead to missed detections or false positives at the region boundaries. To address this, this embodiment also provides a clustering region merging mechanism for multiple end effectors. This mechanism can be controlled by configuring a Boolean term in the system. Under this mechanism, the system is configured with a preset distance threshold, which is set according to the physical size of the end effector, its maximum opening and closing range, or the spacing during typical operation. The trigger condition for the Boolean term is to determine whether the distance between the first and second end effectors is less than or equal to the preset distance threshold.

[0141] After constructing the target filtering region, the spatial pose information of the first and second end effectors at the current moment is obtained, and the Euclidean distance between their specific reference points (e.g., the origin of the end effector coordinate system, or the center coordinates of the sphere in the aforementioned sphere mode, or the geometric center in the cuboid mode) is calculated. When the calculated distance between the first and second end effectors is less than or equal to a preset distance threshold, it is determined that the first and second end effectors are in a proximity state or a cooperative working state. At this time, the target filtering region corresponding to the first end effector and the target filtering region corresponding to the second end effector are merged to generate a unified target filtering region. Subsequent radar point cloud data filtering steps are then performed based on this unified target filtering region.

[0142] Furthermore, when the calculated distance between the first and second end effectors exceeds a preset distance threshold, independent clustering extraction can be performed on the left and right end effectors respectively, preventing the left-end cluster from crossing into the right-end region. Specifically, the left-end seed point and the right-end seed point are first used as independent starting sets, and region growth is performed on each to generate the left-end cluster point set and the right-end cluster point set. Finally, the union of the two is taken as the object point on the hand.

[0143] In this embodiment, through the above steps, the system completes the entire process from coarse screening to fine screening. At this point, the mask array has been completely filled, and this mask array is the final point-by-point retained mask. The system can then perform subsequent point cloud reconstruction and publishing operations based on this mask array.

[0144] To facilitate understanding of the method used in this application for filtering point clouds, the following is combined with... Figure 9 This will explain the overall execution process.

[0145] When the robot is powered on or reset, the system begins this process. First, it asynchronously receives radar point cloud data and the robot's current joint angle data via LiDAR and position sensors deployed at each joint. Next, it further acquires the current frame count and historical joint angle data to set the current logical state of the kinematic update flag. Specifically, it calculates the absolute difference for each joint based on the current joint angle data and historical joint angle data. If the difference exceeds a preset threshold, the current logical state of the kinematic update flag is set to true; otherwise, the logical state remains false. Subsequently, it executes dual-gating detection logic using the current logical state, the current frame count, and the bounding volume buffer state to determine whether either gating condition one or gating condition two is met. When at least one of the dual-gating detection conditions is met, kinematic calculation is performed to construct the bounding volume of the robot body to be filtered (including the global bounding volume and the bounding volumes of each link). After the bounding volume is constructed, the kinematic update flag needs to be reset to false, the current joint angle data needs to be overwritten with the historical joint angle data to become the historical joint angle data to be used in the next round of kinematic calculation, and the constructed bounding volume needs to be cached in the bounding volume cache area for the next round of kinematic calculation. If none of the dual-gated detection conditions are met, the bounding volume data already stored in the bounding volume cache is directly called.

[0146] After obtaining the bounding volume data, if the hand-based filtering function is not enabled, the process proceeds directly to the body filtering step. First, a global coarse screening of all radar point cloud data is performed using the global bounding volume. Then, based on this coarse screening, a link-level fine screening is performed using the bounding volumes of each link. After body filtering is complete, a corresponding point-by-point retention mask is generated, which can be used to reconstruct and publish the target radar point cloud. If the hand-based filtering function is enabled, body filtering and end-effector target filtering region determination steps can be performed simultaneously. The target filtering region can be determined using a pre-configured sphere pattern, cuboid pattern, or clustering pattern. Next, based on the data points obtained after body filtering, hand (end-effector) point cloud filtering is performed. Based on the point cloud data obtained from the above filtering process, a point-by-point retention mask is generated, and then point cloud reconstruction is completed using the point-by-point retention mask, resulting in the publicly released target radar point cloud.

[0147] This application provides an apparatus for filtering robot point clouds, the apparatus comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method for filtering robot point clouds described in Embodiment 1 above.

[0148] The following is for reference. Figure 10The diagram illustrates a structural schematic of a device suitable for implementing embodiments of this application for filtering robot point clouds. The device for filtering robot point clouds in embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 10 The device shown for filtering robot point clouds is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.

[0149] like Figure 10 As shown, the device for filtering robot point clouds may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the terminal device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the device used for filtering robot point clouds to communicate wirelessly or wiredly with other devices to exchange data. While the figures show devices for filtering robot point clouds with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

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

[0151] The device for filtering robot point clouds provided in this application, employing the method for filtering robot point clouds in the above embodiments, can solve the technical problem of how to improve practicality and robustness in complex dynamic operation scenarios. Compared with the prior art, the beneficial effects of the device for filtering robot point clouds provided in this application are the same as those of the method for filtering robot point clouds provided in the above embodiments, and other technical features of the device for filtering robot point clouds are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.

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

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

[0154] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to perform the method for filtering robot point clouds in the above embodiments.

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

[0156] The aforementioned computer-readable storage medium may be included in a device for filtering robot point clouds; or it may exist independently and not assembled into a device for filtering robot point clouds.

[0157] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a device for filtering robot point clouds, cause the device to: asynchronously receive radar point cloud data and current joint angle data of the robot; based on the current joint angle data and historical joint angle data, set a kinematic update flag for the current logical state, wherein the historical joint angle data are the joint angle data that participated in the previous kinematic calculation; acquire the current system sampling frame count and the state of the bounding volume buffer, and determine whether the logical state, the current frame count, and the bounding volume buffer state satisfy preset gating conditions; when any of the gating conditions are satisfied, perform kinematic calculations based on the current joint angle data and a pre-configured robot model and configuration parameters to construct a bounding volume of the robot body to be filtered, wherein the robot model is a unified robot description format model corresponding to the robot; perform multi-level filtering on the radar point cloud data based on the bounding volume and generate a point-by-point retention mask; based on the point-by-point retention mask, remove points in the radar point cloud data corresponding to the robot body, reconstruct and publish the target radar point cloud data.

[0158] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

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

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

[0161] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described method for filtering robot point clouds. This addresses the technical problem of improving practicality and robustness in complex dynamic operation scenarios. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the method for filtering robot point clouds provided in the above embodiments, and will not be repeated here.

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

Claims

1. A method for filtering point clouds in robots, characterized in that, include: Asynchronously receive radar point cloud data and the robot's current joint angle data; Based on the current joint angle data and the historical joint angle data, a kinematic update flag is set to indicate the current logical state. The historical joint angle data refers to the joint angle data that participated in the previous kinematic calculation. Obtain the current system sampling frame count and the state of the bounding volume buffer, and determine whether the logical state, the current frame count, and the state of the bounding volume buffer meet the preset gating conditions; When any of the gating conditions are met, kinematic calculations are performed based on the current joint angle data, a pre-configured robot model, and configuration parameters to construct the bounding volume of the robot body to be filtered, wherein the robot model is a unified robot description format model corresponding to the robot. Based on the bounding volume, the radar point cloud data is filtered at multiple levels, and a point-by-point retention mask is generated. Based on the point-by-point retention mask, the points in the radar point cloud data corresponding to the robot body are removed, and the target radar point cloud data is reconstructed and published.

2. The method as described in claim 1, characterized in that, The logical state of setting the kinematic update flag based on the current joint angle data and historical joint angle data includes: Based on the current joint angle data and the historical joint angle data, calculate the absolute difference for each joint; When the maximum value of the absolute difference per joint is greater than the preset joint angle change threshold, the current logical state of the kinematic update flag is set to true; When the maximum value of the absolute difference per joint is less than or equal to the preset joint angle change threshold, the current logical state of the kinematic update flag is set to false.

3. The method as described in claim 1, characterized in that, The gating conditions include: a first gating condition: the current logical state is true, and the current system frame count satisfies the divisibility relationship of the kinematic update frequency division interval; and a second gating condition: the bounding volume buffer is empty.

4. The method as described in claim 1, characterized in that, The pre-configured configuration parameters include radar extrinsic parameters and bounding volume expansion margins. The process of constructing the bounding volume of the robot body to be filtered, based on the current joint angle data, the pre-configured robot model, and the pre-configured configuration parameters, involves: Based on the current joint angle data, determine the current joint angle vector; Based on the current joint angle vector and the robot model, the pose of each link of the robot in the robot base coordinate system is calculated, wherein each link is the link contained in the robot body to be filtered; Based on the radar extrinsic parameters, the poses of each link in the robot base coordinate system are converted into the poses in the radar coordinate system. Based on the pose of each link in the radar coordinate system, the bounding volume expansion margin, and the predefined link geometry in the robot model, the bounding volume of each link in the radar coordinate system is constructed. A global bounding volume is constructed based on the bounding volume of each link in the radar coordinate system.

5. The method as described in claim 4, characterized in that, After constructing the global bounding volume based on the bounding volume of each link in the radar coordinate system, the method further includes: Set the current logical state of the kinematic update flag to false; Record the current joint angle data as historical joint angle data; The bounding volumes of each link in the radar coordinate system and the global bounding volume are cached in the bounding volume cache.

6. The method as described in claim 4, characterized in that, The link geometry is defined based on a collision mesh or a visual mesh, and the link geometry defined based on the collision mesh has a higher loading priority than the link geometry defined based on the visual mesh; the bounding volume of each link in the radar coordinate system is an axis-aligned bounding volume or a directed bounding volume; the global bounding volume is a global axis-aligned bounding volume.

7. The method as described in claim 4, characterized in that, The step of performing multi-level filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask includes: It is determined whether the three-dimensional coordinates of each data point in the radar point cloud data fall within the global bounding volume. When the three-dimensional coordinates of the data point all fall within the global bounding volume, the data point is marked as a candidate point; when the three-dimensional coordinates of the data point do not all fall within the global bounding volume, the data point is marked as an environment point, and the corresponding logical bit of the mask array is set to true. The mask array is an array with the same length as the number of data points in the radar point cloud data, which is used to generate the point-by-point retention mask. Based on the bounding body of each link, it is determined whether the candidate point is contained within the bounding body of any link. When the candidate point is contained within the bounding body of any link, the candidate point is marked as a robot body point, and the corresponding bit of the mask array is set to false. When the candidate point is not contained within the bounding body of any link, the candidate point is marked as an environment point, and the corresponding bit of the mask array is set to true.

8. The method as described in claim 7, characterized in that, The step of determining whether a candidate point is contained within the bounding body of any of the links, based on the bounding body of each link, includes: If the bounding body of each link is an axis-aligned bounding body, determine whether the three-dimensional coordinates of the candidate points all fall within the axis-aligned bounding body of any link; If the bounding volume of each link is a directed bounding volume, the three-dimensional coordinates of the candidate points are transformed to the local coordinate system of each link based on preset coordinate transformation parameters, and it is determined whether the transformed three-dimensional coordinates of the candidate points all fall within the directed bounding volume of any link.

9. The method as described in claim 4, characterized in that, The robot further includes an end effector mounted thereon. The poses of each link in the radar coordinate system include the poses of the end effector links connected to the end effector in the radar coordinate system. After converting the poses of each link in the robot base coordinate system to the poses in the radar coordinate system based on the radar extrinsic parameters, the robot further includes: The target filtering area of ​​the end effector is calculated based on the pre-configured filtering mode of the end effector object and the pose of the end link in the radar coordinate system. Based on the target filtering area, the radar point cloud data is filtered to remove object points on the end effector and generate the point-by-point retention mask.

10. The method as described in claim 9, characterized in that, The filtering modes include a sphere mode and a cuboid mode. The calculation of the target filtering area of ​​the end effector based on the pre-configured filtering mode of the end effector object and the pose of the end link in the radar coordinate system includes: If the filtering mode is the sphere mode, the coordinates of the origin of the end effector coordinate system in the radar coordinate system and the direction vector of the palm orientation axis of the end effector in the radar coordinate system are determined according to the pose of the end effector in the radar coordinate system. The coordinates of the origin of the end effector coordinate system in the radar coordinate system are moved along the direction vector by a preset sphere center offset to determine the sphere center coordinates. The target filtering area is defined based on the sphere center coordinates and the preset sphere radius. If the filtering mode is the cuboid mode, obtain the unit vector of the palm orientation axis in the coordinate system of the end effector; move the origin of the end effector coordinate system by a preset center offset based on the unit vector to determine the center of the cuboid; construct the cuboid of the end effector based on the preset cuboid size parameters and the center of the cuboid; obtain the inverse transformation matrix from the end effector coordinate system to the radar coordinate system according to the pose of the end effector in the radar coordinate system; set the pose of the cuboid in the end effector coordinate system based on the inverse transformation matrix to define the target filtering area.

11. The method as described in claim 10, characterized in that, The ball center offset is the sum of the first preset center forward displacement and the radius of the ball; the palm orientation axis is determined based on the principal axis index of the end link coordinate system, which corresponds to one of the three axes of the end link coordinate system; the cuboid size parameters include the length of the cuboid along the three axes of the end link coordinate system, and the center offset is the sum of half the length of the cuboid along the palm orientation axis and the second preset center forward displacement.

12. The method as described in claim 10, characterized in that, If the filtering mode is the sphere mode, after performing multi-level filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask, the step of filtering the radar point cloud data based on the target filtering region to remove object points on the end effector and generating the point-by-point retention mask includes: Based on the coordinates of the sphere's center, calculate the distance from each data point in the radar point cloud data to the sphere's center; Based on the square of the distance and the square of the sphere radius, data points located within the target filtering area are selected; Remove the data points located within the target filtering area and generate the point-by-point retention mask.

13. The method as described in claim 10, characterized in that, If the filtering mode is the cuboid mode, after performing multi-level filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask, the step of filtering the radar point cloud data based on the target filtering region to remove object points on the end effector and generating the point-by-point retention mask includes: Based on the inverse transformation matrix from the end link coordinate system to the radar coordinate system, each data point is mapped to the end link coordinate system; Calculate the difference between the mapped data points and the center of the cuboid, and filter the data points located within the target filtering area based on the cuboid size parameters; Remove the data points located within the target filtering area and generate the point-by-point retention mask.

14. The method as described in claim 9, characterized in that, The filtering mode includes a clustering mode. The calculation of the target filtering region of the end effector based on the pre-configured filtering mode of the end effector object and the pose of the end link in the radar coordinate system includes: Based on a pre-defined spherical or cuboid geometric region and the pose of the end link in the radar coordinate system, an initial seed region and / or region of interest are constructed to determine the target filtering region.

15. The method as described in claim 14, characterized in that, If the filtering mode is the clustering mode, after performing multi-level filtering on the radar point cloud data based on the bounding volume and generating a point-by-point retention mask, the radar point cloud data is then filtered based on the target filtering region to remove object points on the end effector, and the point-by-point retention mask is generated, including: When the target filtering area is the region of interest, data points located in the region of interest in the radar point cloud data are selected to construct a data point index set; clustering extraction is performed based on the data point index set to construct a first target point cluster; data points contained in the first target point cluster are removed, and the point-by-point retention mask is generated; When the target filtering region is the initial seed region, data points located in the initial seed region from the radar point cloud data are selected as seed points; if the seed points exist, the seed points are clustered and extracted to construct a second target point cluster; all data points corresponding to the second target point cluster are removed, and the point-by-point retention mask is generated; if the seed points do not exist, the current clustering filtering is skipped, and the clustering filtering mask is set to a fully retention state. When the target filtering area is the region of interest and the initial seed region, data points located in the region of interest in the radar point cloud data are selected to construct a data point index set; clustering extraction is performed based on the data point index set to construct a first target point cluster; data points in the first target point cluster are used as seed points, and clustering extraction is performed on the seed points to construct a second target point cluster; all data points corresponding to the second target point cluster are removed, and the point-by-point retention mask is generated.

16. The method as described in claim 15, characterized in that, The step of clustering and extracting data based on the data point index set to construct the first target point cluster includes: Using a preset clustering algorithm, multiple initial point clusters are constructed based on the data point index set; Extract the geometric and statistical features of each initial point cluster; Determine whether the geometric and statistical characteristics of the initial point cluster meet the preset determination conditions, and mark the initial point cluster that meets the determination conditions as the first target point cluster.

17. The method according to any one of claims 14 to 16, characterized in that, The end effector includes a first end effector and a second end effector. When the distance between the first end effector and the second end effector is less than or equal to a preset distance threshold, the target filtering regions corresponding to the first end effector and the second end effector are merged, and the step of filtering the radar point cloud data based on the target filtering regions to remove object points on the end effector and generate the point-by-point retention mask is performed.

18. The method as described in claim 1, characterized in that, The step of removing points corresponding to the robot body from the radar point cloud data based on the point-by-point retention mask, and reconstructing and publishing the target radar point cloud data includes: The original binary cache corresponding to the radar point cloud data is organized into a two-dimensional view. The number of rows in the two-dimensional view corresponds to the number of data points in the radar point cloud data, and the number of columns corresponds to the byte width occupied by a single data point. Based on the point-by-point preserved mask, identify the target row in the two-dimensional view whose mask value is true, and truncate the target row according to the byte width; The extracted target rows are assembled into target radar point cloud data and then published.

19. A device for filtering point clouds of robots, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the method for filtering robot point clouds as claimed in any one of claims 1 to 18.

20. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the method for filtering robot point clouds as described in any one of claims 1 to 18.