A concave room wall spraying traversal algorithm
The concave room wall spraying traversal algorithm determines the spraying path by calculating and selecting corner points, which solves the problem of unreasonable path planning for the spraying robot in the concave room and improves the spraying efficiency and effect.
Patent Information
- Application Number
- CN202210653696.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The spraying robot plans unconventional traversal paths in the concave room such as detours, missed sprays, and re-sprays, resulting in poor spraying efficiency and effect.
Adopt the concave room wall spraying traversal algorithm, use the position of the AGV car as the origin, connect all the corner points of the room, calculate the intersection point of the shortest connecting line segment and the wall, select the starting corner point, and based on the inverse of the AGV coordinates Select the wall surface to be sprayed in clockwise order, calculate and determine the starting and ending positions, and form a fast and orderly walking path.
It avoids detours, missed sprays and re-sprays, improves the spraying efficiency and effect, and enables the spraying robot to start quickly nearby and form a regular walking path.
Smart Images

Figure CN114995435B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of wall spraying equipment, and in particular to a concave room wall spraying traversal algorithm. Background Art
[0002] In the construction industry, the spraying work of room walls or ceilings is usually carried out by relevant workers manually spraying paint. This method not only has low work efficiency and poor spraying effect, but also causes varying degrees of damage to the health of the workers.
[0003] At present, more and more spraying robots are replacing manual spraying. That is, the spraying robot automatically forms a walking path in the room, so as to complete the spraying of all the walls of the whole room. However, the current spraying robots will plan unreasonable traversal paths such as detours, missed spraying, and repeated spraying in special concave rooms, which affects the spraying efficiency and spraying effect. Summary of the invention
[0004] In view of the problems pointed out in the background technology, the present invention proposes a concave room wall spray traversal algorithm.
[0005] A concave room wall spraying traversal algorithm comprises the following steps:
[0006] S1. Take the position of the AGV as the origin O, connect all the corner points of the room to the AGV coordinates, and the lines between the origin O and each corner point form the line segment equations;
[0007] S2. Sort the lines between the origin O and each corner point by their lengths, and calculate the intersections of the line segment with the shortest length with all the walls;
[0008] If there is no intersection, the traversal starts with the corner point corresponding to the line segment with the shortest length as the starting corner point;
[0009] If there is an intersection, the line segment with the shortest length is discarded, and the line segment with the second shortest length is selected. The intersection of the line segment and all the walls is calculated, and the judgment of whether there is an intersection is repeated;
[0010] This process is repeated in this way until a line segment that has no intersections with any wall appears. The corner point corresponding to the line segment is used as the starting corner point for traversal.
[0011] S3. Obtain the predecessor node of the starting corner point, the starting corner point, the rear-driving node of the starting corner point, and the rear-driving node of the rear-driving node of the starting corner point, and based on the starting corner point, select the first spray-painted wall surface in the counterclockwise order of the AGV coordinates. The first spray-painted wall surface is the wall surface between the starting corner point and its rear-driving node, and form a first vector wall surface, whose direction is from the starting corner point to its rear-driving node;
[0012] S4. Calculate the starting spraying point position corresponding to the first spraying wall: translate the starting corner point to the left of the first vector wall, and the translation distance is a, and obtain the first translation point after the translation of the starting corner point based on the vector cross product;
[0013] S5. Determine whether the corner corresponding to the starting corner point is a negative corner or a positive corner;
[0014] If it is a positive angle, the first translation point is the starting spraying point;
[0015] If it is a concave angle, the first translation point is translated along the direction of the first vector wall, and the translation distance is a, to obtain the second translation point, and the second translation point is used as the starting spraying point;
[0016] S6. The AGV navigates and turns to the starting spraying point;
[0017] S7. Calculate the spraying end position corresponding to the first spraying wall: translate the rear-drive node of the starting corner point to the left of the first vector wall, and the translation distance is a, and obtain the third translation point after the rear-drive node of the starting corner point is translated based on the vector cross product;
[0018] S8. Determine whether the corner corresponding to the rear-drive node of the starting corner point is a negative corner or a positive corner;
[0019] If it is a positive angle, the third translation point is the spraying end point of the first spraying wall;
[0020] If it is a negative angle, the third translation point is translated in the opposite direction of the first vector wall, and the translation distance is a to obtain the fourth translation point, which is used as the spraying end point of the first spraying wall;
[0021] S9. Use the rear-drive node of the last starting corner point as the starting corner point to spray the next spray wall surface, and repeat steps S3 to S8.
[0022] According to one embodiment of the present invention, in steps S4, S5, S7, and S8, the range of the translation distance a is set to 25 cm-75 cm.
[0023] According to one embodiment of the present invention, in step S5, it is determined whether the predecessor node of the starting corner point is on the left or right side of the first vector wall surface based on the vector cross product;
[0024] If it is on the left side, it means that the corner corresponding to the starting corner point is a negative corner;
[0025] If it is on the right side, it means that the corner corresponding to the starting corner point is a positive corner.
[0026] According to one embodiment of the present invention, in step S8, it is determined whether the successor node of the successor node of the starting corner point is on the left or right side of the first vector wall surface based on the vector cross product;
[0027] If it is on the left side, it means that the corner corresponding to the rear-driving node of the starting corner point is a negative corner;
[0028] If it is on the right side, it means that the corner corresponding to the rear-driving node of the starting corner point is a positive corner.
[0029] In summary, the beneficial effects of the present invention are:
[0030] The present invention uses a regular design of spraying traversal along the wall base of a concave room to avoid the spraying robot planning an unreasonable traversal path such as detour, missed spraying, and repeated spraying in a specific concave room, and enables the spraying robot to select the nearest and visible corner, and then determine the positions of the starting spraying point and the spraying end point, thereby forming a fast, orderly, and regular walking path. The spraying robot can be quickly started nearby without taking a detour, thereby greatly increasing the spraying efficiency and spraying effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0032] Figure 1 It is a principle design diagram for determining the starting corner point in an embodiment of the present invention;
[0033] Figure 2 This is a principle design diagram of spraying the first spray wall surface GH in an embodiment of the present invention;
[0034] Figure 3 This is a principle design diagram of spraying the second spray wall surface HI in an embodiment of the present invention;
[0035] Figure 4 This is a principle design diagram of spraying the eighth spray wall DE in an embodiment of the present invention;
[0036] Figure 5 This is a principle design diagram of spraying the ninth spray wall EF in an embodiment of the present invention;
[0037] Figure 6 Trajectory diagram of the spraying robot spraying on the wall of a concave room. DETAILED DESCRIPTION
[0038] See also Figures 1 to 6. It should be noted that the structures, proportions, sizes, etc. illustrated in the drawings in this specification are only used to match the contents disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no substantial technical significance. Any modification of the structure, change in the proportional relationship, or adjustment of the size should still fall within the scope of the technical content disclosed by the present invention without affecting the effects and purposes that can be achieved by the present invention. At the same time, the terms such as "upper", "lower", "left", "right", "middle" and "one" quoted in this specification are only for the convenience of description, and are not used to limit the scope of the implementation of the present invention. Changes or adjustments in their relative relationships should also be regarded as the scope of the implementation of the present invention without substantially changing the technical content.
[0039] During the room wall painting process, the system realizes 3D mapping through a variety of mapping methods, including the system identifying BIM drawings to achieve 3D mapping, the system using visual recognition to identify the on-site room structure to achieve 3D mapping, the system completing 2D room mapping and the staff inputting room height and door and window data on the software to achieve 3D mapping;
[0040] According to the room layout created by the robot, the system uses the present invention to derive the trajectory route of the AGV.
[0041] A concave room wall spraying traversal algorithm comprises the following steps:
[0042] S1. Take the position of the AGV as the origin O, connect all the corner points of the room to the AGV coordinates, and the lines between the origin O and each corner point form the line segment equations.
[0043] S2. Sort the lines between the origin O and each corner point by their lengths, and calculate the intersections of the line segment with the shortest length with all the walls;
[0044] If there is no intersection, the traversal starts with the corner point corresponding to the line segment with the shortest length as the starting corner point;
[0045] If there is an intersection, the line segment with the shortest length is discarded, and the line segment with the second shortest length is selected. The intersection of the line segment and all the walls is calculated, and the judgment of whether there is an intersection is repeated;
[0046] This process is repeated in this way until a line segment that has no intersections with any wall appears. The corner point corresponding to the line segment is used as the starting corner point for traversal.
[0047] S3. Obtain the predecessor node of the starting corner point, the starting corner point, the rear-driving node of the starting corner point, and the rear-driving node of the rear-driving node of the starting corner point, and based on the starting corner point, select the first spray-painted wall surface in the counterclockwise order of the AGV coordinates. The first spray-painted wall surface is the wall surface between the starting corner point and its rear-driving node, and forms a first vector wall surface, whose direction is from the starting corner point to its rear-driving node.
[0048] It should be noted that, between steps S2 and S3, a bidirectional circular list may be used to store information of all corner points.
[0049] S4. Calculate the starting spraying point position corresponding to the first spraying wall: translate the starting wall corner point to the left of the first vector wall, and the translation distance is a, and obtain the first translation point after the translation of the starting wall corner point based on the vector cross product.
[0050] S5. Determine whether the corner corresponding to the starting corner point is a negative corner or a positive corner;
[0051] If it is a positive angle, the first translation point is the starting spraying point;
[0052] If it is a concave angle, the first translation point is translated along the direction of the first vector wall, and the translation distance is a, to obtain the second translation point, and the second translation point is used as the starting spraying point.
[0053] S6.AGV navigates and turns to the starting spraying point.
[0054] S7. Calculate the spraying end point position corresponding to the first spraying wall: translate the rear-drive node of the starting wall corner point to the left of the first vector wall, and the translation distance is a, and obtain the third translation point after the rear-drive node of the starting wall corner point is translated based on the vector cross product.
[0055] S8. Determine whether the corner corresponding to the rear-drive node of the starting corner point is a negative corner or a positive corner;
[0056] If it is a positive angle, the third translation point is the spraying end point of the first spraying wall;
[0057] If it is a negative angle, the third translation point is translated in the opposite direction of the first vector wall, and the translation distance is a, to obtain the fourth translation point, which serves as the spraying end point of the first spraying wall.
[0058] S10. Use the rear-drive node of the last starting corner point as the starting corner point to spray the next spray wall surface, and repeat steps S3 to S8.
[0059] Preferably, in steps S4, S5, S7, and S8, the translation distance a is set to a range of 25 cm to 75 cm. The translation distance a is determined by the spraying distance of the sprayer. When the spraying distance is different, the spraying effect will be different accordingly.
[0060] Preferably, in step S5, it is determined whether the predecessor node of the starting corner point is on the left or right side of the first vector wall surface based on the vector cross product;
[0061] If it is on the left side, it means that the corner corresponding to the starting corner point is a negative corner;
[0062] If it is on the right side, it means that the corner corresponding to the starting corner point is a positive corner.
[0063] Preferably, in step S8, it is determined whether the successor node of the successor node of the starting corner point is on the left or right side of the first vector wall surface based on the vector cross product;
[0064] If it is on the left side, it means that the corner corresponding to the rear-driving node of the starting corner point is a negative corner;
[0065] If it is on the right side, it means that the corner corresponding to the rear-driving node of the starting corner point is a positive corner.
[0066] Example
[0067] Determine the starting corner point, such as Figure 1 As shown:
[0068] 1. Take the position of the AGV as the origin O, connect all the corner points A, B, C, D, E, F, G, H, I, J in the room to the AGV coordinates, and the lines between the origin O and each corner point form the line segment equations;
[0069] 2. Sort by the length of the line segments between the origin O and each corner point, that is, the length of the line segment OD is the shortest, the length of the line segment OG is the second shortest, and the length of the line segment OC is the third shortest.
[0070] Calculate the intersections of the line segment OD with the shortest length and all the walls, and then the line segment OD has an intersection with the wall GH. Therefore, abandon the line segment OD with the shortest length, select the line segment OG with the second shortest length, calculate the intersections of the line segment OG with all the walls, and then the line segment OG has no intersections with any of the walls.
[0071] Therefore, the corner point G corresponding to the connecting line segment OG is used as the starting corner point to start traversal.
[0072] Spray the first spray wall GH, the starting corner point is the corner point G, such as Figure 2 As shown:
[0073] 1. Use a bidirectional circular list to store the information of all corner points A, B, C, D, E, F, G, H, I, and J.
[0074] 2. According to the bidirectional loop list, obtain the predecessor node F of the starting corner point, the starting corner point G, the successor node H of the starting corner point, and the successor node I of the successor node of the starting corner point.
[0075] Based on the starting corner point G, the first spraying wall surface GH is selected in the counterclockwise order of the AGV coordinates. The first spraying wall surface GH is the wall surface between the starting corner point G and its rear drive node H, and forms the first vector wall surface Its direction is from the starting corner point G to its rear drive node H. Therefore, the first sprayed wall surface GH is the first vector wall surface on the left side.
[0076] 3. Calculate the starting spraying point position corresponding to the first spraying wall GH: move the starting wall corner point G to the first vector wall The left side is translated, and the translation distance is 50cm. Based on the vector cross product, the translation point G' after the starting corner point G is translated is obtained.
[0077] 4. Determine whether the corner corresponding to the starting corner point G is a negative corner or a positive corner: Specifically, based on the vector cross product, determine whether the predecessor node F of the starting corner point is on the first vector wall surface. If it is on the right side, it means that the corner corresponding to the starting corner point G is a positive corner.
[0078] Therefore, the translation point G' is the starting spraying point.
[0079] 5. The AGV starts navigating and turning from the origin O to the starting spraying point G'.
[0080] 6. Calculate the spraying end position corresponding to the first spraying wall: move the rear drive node H of the starting wall corner point to the first vector wall The left side is translated, and the translation distance is 50cm. Based on the vector cross product, the translation point H' after the rear-driving node H of the starting corner point is translated is obtained.
[0081] 7. Determine whether the corner corresponding to the rear-drive node H of the starting corner point is a negative corner or a positive corner: Specifically, based on the vector cross product, determine whether the rear-drive node I of the rear-drive node of the starting corner point is on the first vector wall surface. On the left side, it means that the corner corresponding to the rear-driving node H of the starting corner point is a negative corner.
[0082] Therefore, the translation point H' is along the first vector wall The first spray wall GH is sprayed with a translation in the opposite direction, and the translation distance is 50 cm to obtain a translation point H'. The translation point H' is used as the spraying end point of the first spray wall GH.
[0083] In summary, the AGV walks and sprays from the starting spraying point G' to the spraying end point H" of the first spraying wall surface GH, that is, the walking path of the first spraying wall surface GH is G'H". The wall corner corresponding to the spraying end point H" is a negative corner, which still needs to be sprayed.
[0084] Spray the second spray wall HI, the starting corner point is the corner point H, such as Figure 3 As shown:
[0085] 1. Use a bidirectional circular list to store the information of all corner points A, B, C, D, E, F, G, H, I, and J.
[0086] 2. According to the bidirectional loop list, obtain the predecessor node G of the starting corner point, the starting corner point H, the successor node I of the starting corner point, and the successor node J of the successor node of the starting corner point.
[0087] Based on the starting corner point H, the second spraying wall surface HI is selected in the counterclockwise order of the AGV coordinates. The second spraying wall surface HI is the wall surface between the starting corner point H and its rear drive node I, and forms the second vector wall surface Its direction is from the starting corner point H to its rear drive node I. Therefore, the second spray wall surface HI is the second vector wall surface on the left side.
[0088] 3. Calculate the starting spraying point position corresponding to the second spraying wall surface HI: move the starting wall corner point H to the second vector wall surface The left side is translated, and the translation distance is 50cm. Based on the vector cross product, the translation point H' after the starting corner point H is translated is obtained.
[0089] 4. Determine whether the corner corresponding to the starting corner point H is a negative corner or a positive corner: Specifically, based on the vector cross product, determine whether the predecessor node G of the starting corner point is on the second vector wall surface. If it is on the left side, it means that the corner corresponding to the starting corner point H is a negative angle.
[0090] Therefore, the translation point H' is along the second vector wall The spraying point is then moved in the direction of 50 cm, and the translation distance is 50 cm to obtain the translation point H'. The translation point H' is used as the starting spraying point.
[0091] 5. The AGV does not need to move at the starting spraying point H” and turns to the second spraying wall HI.
[0092] 6. Calculate the spraying end position corresponding to the second spraying wall HI: move the rear drive node I of the starting wall corner point to the second vector wall The left side is translated, and the translation distance is 50cm. Based on the vector cross product, the translation point I' after the rear-driving node I of the starting corner point is translated is obtained.
[0093] 7. Determine whether the corner corresponding to the rear-drive node I of the starting corner point is a negative corner or a positive corner: Specifically, based on the vector cross product, determine whether the rear-drive node J of the rear-drive node of the starting corner point is a positive corner or a negative corner. On the left side, it means that the corner corresponding to the rear-driving node H of the starting corner point is a negative corner.
[0094] Therefore, the translation point I' is along the second vector wall The translation is performed in the opposite direction of , and the translation distance is 50 cm to obtain a translation point I', and the translation point I' is used as the spraying end point of the second spray wall surface HI.
[0095] In summary, the AGV walks and sprays from the starting spraying point H" to the spraying end point I" of the second spraying wall surface HI, that is, the walking path of the second spraying wall surface HI is H"I". The wall corner corresponding to the spraying end point I" is a negative corner, which still needs to be sprayed.
[0096] And so on, spray the third spray wall IJ, the fourth spray wall JA, the fifth spray wall AB, the sixth spray wall BC, and the seventh spray wall CD.
[0097] When spraying the eighth spray wall DE, the starting corner point is the corner point D. Figure 4 As shown:
[0098] 1. Use a bidirectional circular list to store the information of all corner points A, B, C, D, E, F, G, H, I, and J.
[0099] 2. According to the bidirectional loop list, obtain the predecessor node C of the starting corner point, the starting corner point D, the successor node E of the starting corner point, and the successor node F of the successor node of the starting corner point.
[0100] Based on the starting corner point D, the eighth spraying wall DE is selected in the counterclockwise order of the AGV coordinates. The eighth spraying wall DE is the wall between the starting corner point D and its rear drive node E, and forms the eighth vector wall Its direction is from the starting corner point D to its rear drive node E. Therefore, the eighth spray wall DE is the eighth vector wall on the left side.
[0101] 3. Calculate the starting spraying point position corresponding to the eighth spraying wall DE: move the starting corner point D to the eighth vector wall The left side of the starting corner point D is translated, and the translation distance is 50 cm. Based on the vector cross product, the translation point D' after the translation of the starting corner point D is obtained.
[0102] 4. Determine whether the corner corresponding to the starting corner point D is a negative corner or a positive corner: Specifically, based on the vector cross product, determine whether the predecessor node C of the starting corner point is on the eighth vector wall surface. If it is on the left side, it means that the corner corresponding to the starting corner point D is a negative corner.
[0103] Therefore, the translation point D' is along the eighth vector wall The spraying point is then moved in the direction of 50 cm, and the translation distance is 50 cm to obtain the translation point D', which is used as the starting spraying point.
[0104] 5. The AGV does not need to move at the starting spraying point D” and turns to the eighth spraying wall DE.
[0105] 6. Calculate the spraying end point corresponding to the eighth spraying wall DE: move the rear drive node E of the starting wall corner point to the eighth vector wall The left side is translated, and the translation distance is 50cm. Based on the vector cross product, the translation point E' after the rear-driving node E of the starting corner point is translated is obtained.
[0106] 7. Determine whether the corner corresponding to the rear-drive node E of the starting corner point is a negative corner or a positive corner: Specifically, based on the vector cross product, determine whether the rear-drive node F of the rear-drive node of the starting corner point is on the eighth vector wall surface. On the right side, it means that the corner corresponding to the rear-driving node E of the starting corner point is a positive corner.
[0107] Therefore, the translation point E' serves as the spraying end point of the eighth spraying wall surface DE.
[0108] In summary, the AGV travels and sprays from the starting spraying point D" to the spraying end point E' of the eighth spraying wall DE, that is, the travel path of the eighth spraying wall DE is D"E'.
[0109] When spraying the ninth spray wall EF, the starting corner point is the corner point E. Figure 5 Shown:
[0110] 1. Use a bidirectional circular list to store the information of all corner points A, B, C, D, E, F, G, H, I, and J.
[0111] 2. According to the bidirectional loop list, obtain the predecessor node D of the starting corner point, the starting corner point E, the successor node F of the starting corner point, and the successor node G of the successor node of the starting corner point.
[0112] Based on the starting corner point E, the ninth spraying wall EF is selected in the counterclockwise order of the AGV coordinates. The ninth spraying wall EF is the wall between the starting corner point E and its rear drive node F, and forms the ninth vector wall Its direction is from the starting corner point E to its rear drive node F. Therefore, the ninth spray wall EF is the ninth vector wall on the left side.
[0113] 3. Calculate the starting spraying point position corresponding to the ninth spraying wall EF: move the starting wall corner point E to the ninth vector wall The left side is translated, and the translation distance is 50cm. Based on the vector cross product, the translation point E' after the starting corner point E is translated is obtained.
[0114] 4. Determine whether the corner corresponding to the starting corner point E is a negative corner or a positive corner: Specifically, based on the vector cross product, determine whether the predecessor node D of the starting corner point is on the ninth vector wall. If it is on the right side, it means that the corner corresponding to the starting corner point E is a positive corner.
[0115] Therefore, the translation point E' is used as the starting spraying point.
[0116] 5. The AGV trolley moves from the eighth spraying wall DE to the spraying end point E' in the walking path D"E' and turns to the starting spraying point E' in the ninth spraying wall EF.
[0117] 6. Calculate the spraying end point corresponding to the ninth spraying wall EF: move the rear drive node F of the starting wall corner point to the ninth vector wall The left side is translated, and the translation distance is 50cm. Based on the vector cross product, the translation point F' after the rear-driving node F of the starting corner point is translated is obtained.
[0118] 7. Determine whether the corner corresponding to the rear-drive node F of the starting corner point is a concave corner or a convex corner: Specifically, based on the vector cross product, determine whether the rear-drive node G of the rear-drive node of the starting corner point is on the ninth vector wall surface. On the right side, it means that the corner corresponding to the rear-driving node F of the starting corner point is a positive corner.
[0119] Therefore, the translation point F' serves as the spraying end point of the ninth spraying wall surface EF.
[0120] In summary, the AGV travels and sprays from the starting spraying point E' to the spraying end point F' of the ninth spraying wall surface EF, that is, the travel path of the ninth spraying wall surface EF is E'F'.
[0121] By analogy, the tenth spraying wall FG is sprayed, and after traversing all the corners, the spraying of all the walls in the room is completed. Among them, the spraying robot traverses the trajectory of spraying on the concave room wall as follows Figure 6 shown.
[0122] To summarize, the present invention avoids the spraying robot from planning unreasonable traversal paths such as detours, missed spraying, and repeated spraying in a specific concave room by using a regular design of spraying traversal along the base of the wall in a concave room, and enables the spraying robot to select the nearest and visible corner, and then determine the positions of the starting spraying point and the spraying end point, thereby forming a fast, orderly, and regular walking path. The spraying robot can be started quickly nearby without taking a detour, which greatly increases the spraying efficiency and spraying effect.
[0123] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A concave room wall spraying traversal algorithm, characterized in that: The following steps are involved: S1. Take the position of the AGV as the origin O, connect all the corner points of the room to the AGV coordinates, and the lines between the origin O and each corner point form the line segment equations; S2. Sort the lines between the origin O and each corner point by their lengths, and calculate the intersections of the line segment with the shortest length with all the walls; If there is no intersection, the traversal starts with the corner point corresponding to the line segment with the shortest length as the starting corner point; If there is an intersection, the line segment with the shortest length is discarded, and the line segment with the second shortest length is selected. The intersection of the line segment and all the walls is calculated, and the judgment of whether there is an intersection is repeated; This process is repeated in this way until a line segment that has no intersections with any wall appears. The corner point corresponding to the line segment is used as the starting corner point for traversal. S3. Obtain the predecessor node of the starting corner point, the starting corner point, the rear-driving node of the starting corner point, and the rear-driving node of the rear-driving node of the starting corner point, and based on the starting corner point, select the first spray-painted wall surface in the counterclockwise order of the AGV coordinates. The first spray-painted wall surface is the wall surface between the starting corner point and its rear-driving node, and form a first vector wall surface, whose direction is from the starting corner point to its rear-driving node; S4. Calculate the starting spraying point position corresponding to the first spraying wall: translate the starting corner point to the left of the first vector wall, and the translation distance is a, and obtain the first translation point after the translation of the starting corner point based on the vector cross product; S5. Determine whether the corner corresponding to the starting corner point is a negative corner or a positive corner; If it is a positive angle, the first translation point is the starting spraying point; If it is a concave angle, the first translation point is translated along the direction of the first vector wall, and the translation distance is a, to obtain the second translation point, and the second translation point is used as the starting spraying point; S6. The AGV navigates and turns to the starting spraying point; S7. Calculate the spraying end position corresponding to the first spraying wall: translate the rear-drive node of the starting corner point to the left of the first vector wall, and the translation distance is a, and obtain the third translation point after the rear-drive node of the starting corner point is translated based on the vector cross product; S8. Determine whether the corner corresponding to the rear-drive node of the starting corner point is a negative corner or a positive corner; If it is a positive angle, the third translation point is the spraying end point of the first spraying wall; If it is a negative angle, the third translation point is translated in the opposite direction of the first vector wall, and the translation distance is a to obtain the fourth translation point, which is used as the spraying end point of the first spraying wall; S9. Use the rear-drive node of the last starting corner point as the starting corner point to spray the next spray wall surface, and repeat steps S3 to S8.
2. A concave room wall spraying traversal algorithm according to claim 1, characterized in that: In steps S4, S5, S7 and S8, the range of the translation distance a is set to 25 cm - 75 cm.
3. The concave room wall spraying traversal algorithm according to claim 1 is characterized in that: In step S5, based on the vector cross product, it is determined whether the predecessor node of the starting corner point is on the left side or the right side of the first vector wall surface; If it is on the left side, it means that the corner corresponding to the starting corner point is a negative corner; If it is on the right side, it means that the corner corresponding to the starting corner point is a positive corner.
4. The concave room wall spraying traversal algorithm according to claim 1 is characterized in that: In step S8, based on the vector cross product, it is determined whether the successor node of the successor node of the starting corner point is on the left side or the right side of the first vector wall surface; If it is on the left side, it means that the corner corresponding to the rear-driving node of the starting corner point is a negative corner; If it is on the right side, it means that the corner corresponding to the rear-driving node of the starting corner point is a positive corner.
Citation Information
Patent Citations
Spray control method and device, spray robot and storage medium
CN110202585A
Control method and device of spraying robot and spraying robot with control device
CN110700523A
