Total station grid layout and baseline multi-dimensional offset calculation method and related device

CN122982154APending Publication Date: 2026-10-27SOUTH SURVEYING & MAPPING INSTR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611167022.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-03
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

[0004]本发明提供一种全站仪格网放样及基线多维偏移计算方法及相关装置,解决了现有技术中偏移方向随旋转角漂移导致结果不可预测的技术问题,

Benefits of technology

[0015]上述全站仪格网放样及基线多维偏移计算方法及相关装置所提供的一个方案中,通过五重串行合法性验证机制,在参考基线进入计算流程前完成对空值、非法浮点数、起终点重合、基线过短及超量程五类异常输入的逐级拦截,提高了坐标变换计算的稳定性与可靠性。本发明规定左右偏移、前后偏移、整体旋转三阶段的固定串行执行顺序,并以前后平移后的基线起点为唯一旋转中心,使左右偏移量与前后偏移量的物理含义始终基于原始基线坐标系定义,不随旋转角度变化而漂移,保证了同一组偏移与旋转参数在任意场景下产生唯一确定的变换结果,解决了现有技术中偏移方向随旋转角漂移导致结果不可预测的技术问题。本发明采用仅存储行列二维整数索引对的索引递推方式,对任意目标格网点的三维坐标按需实时计算,内存占用与格网规模完全解耦,使大规模格网放样在内存受限的嵌入式全站仪平台上得以实现,同时支持对任意索引位置的随机访问,赋予现场路径调整充分的灵活性。本发明依据列方向累积距离与基线长度之比对起终点高程差执行线性插值,在坐标计算流程内自动完成设计高程推算,无需外部辅助工具介入。本发明将棱镜当前位置与目标格网点之间的坐标差向量投影至以目标方位角为基准的局部坐标系,得到与施工基线方向直接对应的前后偏差、左右偏差与上下偏差,并转换为八方向箭头指引,消除了测量员自行换算坐标偏差方向的认知负担;弓字形蛇行路径规划通过行方向标志位的状态翻转驱动相邻行交替方向遍历,减少换行空走距离,提升了放样作业效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122982154A_ABST
    Figure CN122982154A_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of total station, and provides a total station grid lofting and baseline multi-dimensional offset calculation method and related device, which comprises the following steps: collecting reference baseline starting point and ending point coordinates by a total station, and calculating reference baseline azimuth and baseline length; performing transformation with the reference baseline azimuth as the reference to obtain transformed baseline starting point, transformed baseline ending point and target azimuth; performing superposition operation according to user-configured row and column spacing, starting offset and current row and column integer index to obtain north coordinate, east coordinate and elevation of the current target grid point; calculating front-back deviation, left-right deviation and up-down deviation with the target azimuth as the reference according to the north coordinate, east coordinate and elevation of the current target grid point and the prism current position coordinates measured by the total station in real time; and when the front-back deviation, left-right deviation and up-down deviation simultaneously satisfy the preset condition, the current target grid point is recorded as completed, and the lofting operation efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of total station technology, and in particular to a method and related apparatus for total station grid layout and baseline multidimensional offset calculation. Background Technology

[0002] Existing construction layout technology uses the single-point layout method, which requires surveyors to manually input the coordinates of each design point. The layout work for each point is time-consuming. For regular grid layout scenarios, the coordinates of all grid points must be calculated in advance and entered into the equipment one by one. The operation is cumbersome and prone to human calculation errors.

[0003] Traditional grid layout techniques require pre-storing the 3D coordinates of all grid points in the total station's memory before layout begins. Memory usage increases linearly with grid size. For large-scale grid layout tasks, the memory capacity of embedded total stations is insufficient to handle the full coordinate data, making large-scale grid layout unsuitable for direct implementation on existing equipment. When it's necessary to offset known control lines to the actual construction location, current technology lacks parameterized offset and rotation methods. Surveyors must remeasure new control points and reconstruct the baseline. Furthermore, existing methods lack clear constraints on the execution order of offset and rotation, resulting in different baseline positions for the same set of offset parameters at different rotation angles. This leads to unpredictable results and poor fault tolerance in on-site operations. Summary of the Invention

[0004] This invention provides a total station grid layout and baseline multidimensional offset calculation method and related device, which solves the technical problem in the prior art where the offset direction drifts with the rotation angle, resulting in unpredictable results.

[0005] In a first aspect, embodiments of this application provide a method for total station grid layout and baseline multidimensional offset calculation, including: The coordinates of the starting and ending points of the reference baseline are collected using a total station, and the azimuth and length of the reference baseline are calculated. Based on the user-input left and right offset and direction markers, front and back offset and direction markers, and rotation angle, the transformation is performed with the reference baseline azimuth as the reference, to obtain the transformed baseline start point, the transformed baseline end point, and the target azimuth. Based on the user-configured row and column spacing, starting offset, and current row and column integer index, the transformed baseline starting point is superimposed along the target azimuth direction to obtain the north coordinates, east coordinates, and elevation of the current target grid point; Based on the north and east coordinates and elevation of the current target grid point and the current position coordinates of the prism measured in real time by the total station, the front-back deviation, left-right deviation and vertical deviation are calculated with the target azimuth as the reference. When the front-back deviation, the left-right deviation and the vertical deviation simultaneously meet the preset conditions, the current target grid point is recorded.

[0006] Optionally, in a first implementation of the first aspect of the present invention, the step of acquiring the coordinates of the starting and ending points of the reference baseline using a total station and calculating the azimuth and length of the reference baseline includes: The coordinates of the starting and ending points of the reference baseline were collected using a total station. The baseline length of the reference baseline is calculated based on the coordinates of the starting point and the coordinates of the ending point of the reference baseline; Based on the north and east coordinate differences between the starting and ending coordinates of the reference baseline, the arctangent of the baseline length is calculated to obtain the reference baseline azimuth.

[0007] Optionally, in a second implementation of the first aspect of the present invention, the step of performing a transformation based on the user-input left / right offset and direction marker, front / back offset and direction marker, and rotation angle, using the reference baseline azimuth as a reference, to obtain the transformed baseline starting point, the transformed baseline ending point, and the target azimuth includes: Based on the user-input left and right offset and direction marker, and front and back offset and direction marker, perform left and right translation on the left and right offset and the front and back offset to obtain the baseline start point and baseline end point after left and right translation. Using the reference baseline azimuth as a reference, the baseline starting point and the baseline ending point after left and right translation are translated forward and backward to obtain the baseline starting point and the baseline ending point after forward and backward translation. Using the baseline starting point after the forward and backward translation as the rotation center, the reference baseline azimuth angle and the rotation angle are summed to obtain the target azimuth angle. The transformed baseline starting point and the transformed baseline ending point are then recalculated based on the target azimuth angle and the baseline length.

[0008] Optionally, in a third implementation of the first aspect of the present invention, the step of performing a superposition operation along the target azimuth direction from the transformed baseline starting point, based on the user-configured row and column spacing, starting offset, and current row and column integer index, to obtain the north coordinates, east coordinates, and elevation of the current target grid point includes: Using the north and east coordinates of the transformed baseline starting point as the starting point, the north and east coordinates of the reference starting point are obtained by translating along the target azimuth direction by the initial offset. Then, the product of the current column integer index and the user-configured column spacing is superimposed on the reference starting point along the target azimuth direction to obtain the north and east coordinates of the midpoint in the column direction. Using the vertical azimuth angle obtained by adding 90 degrees to the target azimuth angle as the direction, the product of the current row integer index and the row spacing is superimposed on the north and east coordinates of the midpoint of the column direction to obtain the north and east coordinates of the current target grid point; The cumulative distance in the column direction is obtained by summing the product of the starting offset, the current column integer index, and the column spacing. The ratio of the cumulative distance in the column direction to the baseline length is multiplied by the elevation difference between the transformed baseline start point and the transformed baseline end point, and then summed with the elevation of the transformed baseline start point to obtain the elevation of the current target grid point.

[0009] Optionally, in the fourth implementation of the first aspect of the present invention, the step of calculating the front-to-back deviation, left-to-right deviation, and vertical deviation based on the north coordinates, east coordinates, and elevation of the current target grid point and the current position coordinates of the prism measured in real time by the total station, using the target azimuth as a reference, and recording the current target grid point when the front-to-back deviation, the left-to-right deviation, and the vertical deviation simultaneously meet preset conditions, includes: The current position coordinates of the prism are measured in real time using a total station; The coordinate difference vector is obtained by subtracting the current position coordinates of the prism from the north coordinates, east coordinates, and elevation of the current target grid point. The north coordinate difference and east coordinate difference vector are then projected onto the target azimuth direction and the target azimuth plus 90 degrees direction, respectively, to obtain the front-back deviation and left-right deviation. The elevation difference is then directly taken as the vertical deviation. When both the front-to-back deviation and the left-to-right deviation are not zero, output the corresponding four diagonal arrows; when any one of the front-to-back deviation, the left-to-right deviation, and the up-to-down deviation is zero, output the corresponding four positive arrows in eight directions; when the front-to-back deviation, the left-to-right deviation, and the up-to-down deviation simultaneously meet the preset conditions, record the current target grid point.

[0010] Optionally, in the fifth implementation of the first aspect of the present invention, the total station grid layout and baseline multidimensional offset calculation method further includes: Under the unidirectional increment rule, when the jump point signal is triggered, the column integer index in the current row and column integer index is incremented by one, and when the newline signal is triggered, the row integer index in the current row and column integer index is incremented by one and the column integer index is set to zero. Under the bow-shaped serpentine rule, the current row direction flag is read. When the jump point signal is triggered, if the row direction flag is positive, the column integer index in the current row and column integer index is incremented by one; if the row direction flag is negative, the column integer index in the current row and column integer index is decremented by one. Under the bow-shaped serpentine rule, when the newline signal is triggered, the row integer index in the current row and column integer index is incremented by one, and the row direction flag is switched from positive to negative or from negative to positive.

[0011] Secondly, embodiments of this application provide a total station grid layout and baseline multidimensional offset calculation device, including: The data acquisition module is used to acquire the coordinates of the start and end points of the reference baseline using a total station, and to calculate the azimuth and length of the reference baseline. The transformation module is used to perform transformation based on the left and right offset and direction mark, front and back offset and direction mark, and rotation angle input by the user, with the reference baseline azimuth as the reference, to obtain the transformed baseline start point, the transformed baseline end point and the target azimuth. The calculation module is used to perform superposition calculations along the target azimuth direction from the transformed baseline starting point, based on the user-configured row and column spacing, starting offset, and current row and column integer index, to obtain the north coordinates, east coordinates, and elevation of the current target grid point; The recording module is used to calculate the front-back deviation, left-right deviation, and up-down deviation based on the north coordinates, east coordinates, and elevation of the current target grid point and the current position coordinates of the prism measured in real time by the total station, with the target azimuth as the reference. When the front-back deviation, the left-right deviation, and the up-down deviation all meet the preset conditions, the recording of the current target grid point is completed.

[0012] Thirdly, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the above-described total station grid layout and baseline multidimensional offset calculation method.

[0013] Fourthly, embodiments of this application provide a readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described total station grid layout and baseline multidimensional offset calculation method.

[0014] Fifthly, embodiments of this application provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the above-described total station grid layout and baseline multidimensional offset calculation method.

[0015] In one of the solutions provided by the aforementioned total station grid layout and baseline multidimensional offset calculation method and related devices, a five-fold serial validity verification mechanism is used to progressively intercept five types of abnormal inputs—null values, illegal floating-point numbers, overlapping start and end points, excessively short baselines, and over-range inputs—before the reference baseline enters the calculation process. This improves the stability and reliability of coordinate transformation calculations. This invention specifies a fixed serial execution order for the three stages of left-right offset, forward-backward offset, and overall rotation, and uses the baseline starting point after forward-backward translation as the unique rotation center. This ensures that the physical meaning of the left-right and forward-backward offsets is always based on the original baseline coordinate system definition and does not drift with changes in the rotation angle. This guarantees that the same set of offset and rotation parameters produces a unique and definite transformation result in any scenario, solving the technical problem in existing technologies where the offset direction drifts with the rotation angle, leading to unpredictable results. This invention employs an index recursion method that stores only two-dimensional integer index pairs of rows and columns. It calculates the three-dimensional coordinates of any target grid point in real time as needed, completely decoupling memory usage from grid size. This allows large-scale grid layout to be implemented on memory-constrained embedded total station platforms. It also supports random access to any index position, providing ample flexibility for on-site path adjustments. This invention performs linear interpolation on the elevation difference between the starting and ending points based on the ratio of the cumulative distance in the column direction to the baseline length, automatically calculating the design elevation within the coordinate calculation process without the need for external auxiliary tools. This invention projects the coordinate difference vector between the prism's current position and the target grid point onto a local coordinate system based on the target azimuth angle, obtaining the front-to-back, left-to-right, and up-to-down deviations directly corresponding to the construction baseline direction. These deviations are then converted into eight-directional arrow indicators, eliminating the cognitive burden of surveyors manually calculating coordinate deviation directions. The bow-shaped serpentine path planning drives alternating traversal of adjacent rows through the state flipping of row direction markers, reducing unnecessary travel distances and improving layout efficiency. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of the total station grid layout and baseline multidimensional offset calculation system in one embodiment of the present invention; Figure 2 This is a flowchart illustrating a total station grid layout and baseline multidimensional offset calculation method according to an embodiment of the present invention; Figure 3 yes Figure 2 A schematic diagram of the implementation process of step S10; Figure 4 yes Figure 2 A schematic diagram of the implementation process of step S20; Figure 5 yes Figure 2 A schematic diagram of the implementation process of step S30; Figure 6 yes Figure 2 A schematic diagram of the implementation process of step S40; Figure 7 This is a schematic diagram of a total station grid layout and baseline multidimensional offset calculation device according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or collections thereof. It should also be understood that, as used in this specification and the appended claims, the term "and / or" refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0020] Furthermore, in the description of this invention and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0021] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of the invention include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0022] It should be understood that the sequence number of each step in the following embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0023] To illustrate the technical solution of the present invention, specific embodiments are described below.

[0024] To address the problems mentioned above in the background art, this application proposes a method and related apparatus for total station grid layout and baseline multidimensional offset calculation. The total station grid layout and baseline multidimensional offset calculation method provided by this invention can be applied to applications such as... Figure 1 The total station grid layout and baseline multidimensional offset calculation system shown includes a client and a server.

[0025] In one embodiment, such as Figure 2 As shown, a method for total station grid layout and baseline multidimensional offset calculation is provided, which is then applied to... Figure 1 Taking the total station grid layout and baseline multidimensional offset calculation system as an example, the following steps are included: S10: Collect the coordinates of the starting and ending points of the reference baseline using a total station, and calculate the azimuth and length of the reference baseline; S20: Based on the user-input left and right offset and direction mark, front and back offset and direction mark, and rotation angle, perform transformation with reference baseline azimuth as the reference to obtain the transformed baseline start point, the transformed baseline end point and the target azimuth. S30: Based on the user-configured row and column spacing, starting offset, and current row and column integer index, perform superposition calculations along the target azimuth direction from the transformed baseline starting point to obtain the north coordinates, east coordinates, and elevation of the current target grid point; S40: Based on the north and east coordinates and elevation of the current target grid point and the current position coordinates of the prism measured in real time by the total station, calculate the front-back deviation, left-right deviation and vertical deviation with the target azimuth as the reference. When the front-back deviation, left-right deviation and vertical deviation simultaneously meet the preset conditions, record the completion of the current target grid point.

[0026] In this embodiment, a five-fold serial validity verification mechanism is used to intercept five types of abnormal inputs—null values, illegal floating-point numbers, overlapping start and end points, excessively short baselines, and over-range inputs—before the reference baseline enters the calculation process, thereby improving the stability and reliability of coordinate transformation calculations. This invention specifies a fixed serial execution order for the three stages of left-right offset, forward-backward offset, and overall rotation, using the baseline start point after forward-backward translation as the unique rotation center. This ensures that the physical meaning of the left-right and forward-backward offsets is always based on the original baseline coordinate system definition and does not drift with changes in the rotation angle. This guarantees that the same set of offset and rotation parameters produces a unique and definite transformation result in any scenario, solving the technical problem in existing technologies where the offset direction drifts with the rotation angle, leading to unpredictable results. This invention uses an index recursion method that only stores two-dimensional integer index pairs of rows and columns, calculating the three-dimensional coordinates of any target grid point in real time as needed. Memory usage is completely decoupled from grid size, enabling large-scale grid layout to be implemented on memory-constrained embedded total station platforms. It also supports random access to any index position, providing sufficient flexibility for on-site path adjustments. This invention performs linear interpolation on the elevation difference between the starting and ending points based on the ratio of the cumulative distance in the column direction to the baseline length, automatically calculating the design elevation within the coordinate calculation process without the need for external auxiliary tools. This invention projects the coordinate difference vector between the current position of the prism and the target grid point onto a local coordinate system based on the target azimuth angle, obtaining the front-to-back, left-to-right, and up-to-down deviations directly corresponding to the construction baseline direction, and converts them into eight-directional arrow indicators, eliminating the cognitive burden of surveyors manually calculating coordinate deviation directions. The bow-shaped serpentine path planning drives the alternating traversal of adjacent rows through the state flipping of row direction markers, reducing the distance traveled during row breaks and improving the efficiency of the layout operation.

[0027] In one embodiment, such as Figure 3 As shown, step S10 specifically includes the following steps: S11: Collect the coordinates of the starting and ending points of the reference baseline using a total station; S12: Calculate the baseline length of the reference baseline based on the coordinates of the starting point and ending point of the reference baseline; S13: Based on the north and east coordinate differences between the starting and ending coordinates of the reference baseline, perform an arctangent operation on the baseline length of the reference baseline to obtain the reference baseline azimuth.

[0028] In this embodiment, the total station is set up at a known survey point, and centering, leveling, instrument height input, backsight orientation, and coordinate system confirmation are completed. This ensures that the current north, east, and elevation datum of the total station are consistent with the construction design coordinate system. Then, prisms are sequentially placed at the start and end points of the reference baseline. The slope distance, horizontal angle, and vertical angle between the two points are obtained through the total station's distance and angle measurement units, and converted into three-dimensional coordinates by the total station's internal coordinate calculation module. The start point of the reference baseline is then denoted as... The endpoint of the reference baseline is denoted as ,in, and These represent the north coordinates of the starting and ending points, respectively. and These represent the east coordinates of the starting and ending points, respectively. and The elevations of the starting and ending points are represented respectively, and the coordinate distances are uniformly converted to meters. Before the coordinates of the two points are written into the reference line parameter buffer, null value checks, coordinate validity checks, and coincidence checks are performed sequentially. If any coordinate component is empty, non-numerical, or infinite, the reference line establishment is stopped and a remeasurement is prompted. If the three coordinate components of the starting and ending points are the same, the two points are determined to be coincident and are prohibited from entering subsequent calculations. If the north coordinates and east coordinates of the starting and ending points are the same, even if their elevations are different, the horizontal projection length of the reference baseline is determined to be zero and subsequent azimuth calculations are prohibited, thereby avoiding the inability to determine the azimuth of the reference baseline due to a zero horizontal length baseline.

[0029] The baseline length of the reference baseline is obtained by substituting the differences between the starting and ending points in the three directions of north coordinate, east coordinate, and elevation into the spatial distance calculation. The calculation formula is as follows: From this, we obtain This represents the straight-line distance between the starting and ending points, and serves as a scale parameter for baseline offset, recalculation of the endpoint after rotation, and slope elevation interpolation. It also performs length range verification on the calculation results; for example, the minimum allowable baseline length is preset to 0.001m, and the maximum allowable baseline length is preset to 5000m. When the distance between the two points is too small, and the measurement error is too high relative to the baseline length, the calculation is stopped and a prompt is given to reselect control points. If the reference baseline is considered to be outside the preset operating range, the current process will also be stopped. Only when the baseline length is within the range of 0.001m to 5000m will the baseline length be marked as valid.

[0030] The reference baseline azimuth is determined based on the direction from the starting point to the ending point. Specifically, the difference in east coordinates between the starting and ending points is used as the first input for the two-parameter arctangent calculation, and the difference in north coordinates between the starting and ending points is used as the second input. The reference baseline azimuth is calculated according to the following formula. : ,in, Represented in radians, its calculation range is ( The arctangent operation, using two parameters (π,π), directly identifies the quadrant of the reference baseline based on the positive and negative relationship between the north and east coordinate differences. This eliminates the need for manual quadrant compensation of ordinary arctangent results. Furthermore, even with a zero north coordinate difference, the baseline's azimuth along the east or west direction can be correctly determined. The direct inputs to the arctangent operation are the north and east coordinate differences. The baseline length L is used to verify the baseline's effective scale and for subsequent coordinate transformations, rather than as a direct input to the arctangent function. Finally, the starting point coordinates, ending point coordinates, baseline length, and reference baseline azimuth are associated and written into the same reference baseline record. This defines the direction from the starting point to the ending point as the baseline direction in the local grid coordinate system, while the direction perpendicular to this direction is used as the grid's transverse direction.

[0031] In one embodiment, such as Figure 4 As shown, step S20 specifically includes the following steps: S21: Based on the user-input left and right offset and direction marker, and front and back offset and direction marker, perform left and right translation on the left and right offset and front and back offset to obtain the baseline start point and baseline end point after left and right translation. S22: Using the reference baseline azimuth as a reference, perform forward and backward translation on the baseline starting point and the baseline ending point after left and right translation to obtain the baseline starting point and the baseline ending point after forward and backward translation. S23: Using the baseline starting point after forward and backward translation as the rotation center, sum the reference baseline azimuth angle and the rotation angle to obtain the target azimuth angle, and recalculate the transformed baseline starting point and transformed baseline ending point according to the target azimuth angle and the baseline length.

[0032] In this embodiment, the reference baseline starting point is read by the offset rotation module. Reference baseline endpoint Reference baseline azimuth Baseline length The left and right offsets input by the user Front and rear offset Left and right direction signs Forward and backward direction signs and rotation angle The offset distances were uniformly converted to meters, and the rotation angles were uniformly converted to radians. Then, the unsigned distances input by the user were mapped to signed values ​​according to the direction indicators. Indicates forward, Indicates backward; when backward is selected, it will... Convert to a negative value; Indicates to the left. Indicates to go right; when left is selected, it will... Converted to a negative value, for example, when the user inputs a left or right offset of 5.0m and selects left, the actual value used in the calculation... The value is -5.0m, but when the user inputs a forward / backward offset of 3.0m and selects backward, the actual value involved in the calculation is... The value is -3.0m, thus converting the direction options on the interface into directional offsets that can be directly used in coordinate calculations. The left and right translation directions perpendicular to the baseline are determined based on the reference baseline azimuth angle, which satisfies... The same left and right offset vectors are simultaneously superimposed on the reference baseline start and end points, wherein the baseline start point after left and right translation is determined according to... , , Calculate the endpoint of the baseline after left and right translation according to , , The calculation shows that since the starting point and the ending point are superimposed with the exact same translation vector, the left and right translations only change the overall position of the reference baseline in the plane coordinate system, without changing the baseline length, baseline direction, or the elevation difference between the starting and ending points. At the same time, this stage is a horizontal translation, so the elevations of the two points remain unchanged.

[0033] Based on the original reference baseline azimuth Using the forward and backward directions instead of the rotated directions ensures that the forward and backward offsets and the left and right offsets are always defined relative to the same original baseline coordinate system. Specifically, the signed forward and backward offsets are simultaneously superimposed on the two endpoints after the left and right translations, resulting in... , , ,as well as , , ,in, and These are the starting and ending points of the baseline after the forward and backward translations, respectively. Since the same translation vector along the baseline direction is superimposed on both endpoints, the azimuth of the baseline remains the same after both left-right and forward / backward translations. The length is still The elevations of the starting and ending points remain unchanged; only the baseline is moved as a whole to the construction location specified by the user.

[0034] The baseline starting point after forward and backward translation The target azimuth is obtained by fixing the reference baseline azimuth angle as the rotation center and summing the azimuth angle of the reference baseline with the rotation angle. ,in, A positive value indicates counter-clockwise rotation, and a negative value indicates clockwise rotation, while maintaining the baseline length before and after the transformation. Instead of performing general rotation matrix operations on the two endpoints separately, the coordinates of the rotation center are directly preserved and the coordinates of the endpoint are recalculated based on the target azimuth angle. That is, the transformed baseline starting point satisfies... , , The transformed baseline endpoint satisfies , , Thus, the rotated baseline is The starting point is fixed, the direction of extension is the target azimuth, and the original length and elevation relationship are maintained.

[0035] In one embodiment, such as Figure 5 As shown, step S30 specifically includes the following steps: S31: Using the north and east coordinates of the transformed baseline starting point as the starting point, translate along the target azimuth direction by the initial offset to obtain the north and east coordinates of the reference starting point. Then, along the target azimuth direction, add the product of the current column integer index and the user-configured column spacing to the reference starting point to obtain the north and east coordinates of the midpoint in the column direction. S32: Using the target azimuth plus 90 degrees to obtain the vertical azimuth angle as the direction, superimpose the product of the current row integer index and the row spacing to the north and east coordinates of the midpoint of the column direction to obtain the north and east coordinates of the current target grid point; S33: Sum the product of the starting offset, the current column integer index, and the column spacing to obtain the cumulative distance in the column direction. Multiply the ratio of the cumulative distance in the column direction to the baseline length by the elevation difference between the transformed baseline start point and the transformed baseline end point, and sum this with the elevation of the transformed baseline start point to obtain the elevation of the current target grid point.

[0036] In this embodiment, the grid parameter configuration module reads the transformed baseline start point, transformed baseline end point, target azimuth, baseline length, starting offset, column spacing, row spacing, and current row and column integer index, and performs standardized processing on each parameter. Coordinates and distances are uniformly expressed in meters, the target azimuth is uniformly expressed in radians, and both the current column and current row integer indices start counting from 0. For example, the column spacing and row spacing can both be set to 5.000m, and the starting offset can be set to 0.000m, thus forming a 5m × 5m regular grid. The transformed baseline start point is recorded as... The endpoint of the transformed baseline is denoted as The target azimuth is denoted as The baseline length is denoted as The integer index of the current column is denoted as Let the integer index of the current row be denoted as , denote the column spacing as The line spacing is denoted as And record the starting offset as After completing the parameter reading, the north and east coordinates of the transformed baseline starting point are used as the starting position for the planar coordinate calculation. The starting offset is moved along the target azimuth direction by the initial offset to obtain the reference starting point of the grid. This reference starting point does not necessarily coincide with the transformed baseline starting point. At that time, the two coincide in planar position, while when When the value is positive, the reference starting point is moved forward a corresponding distance along the baseline from the starting point to the ending point. This avoids the end of the baseline or maintains a preset interval between the first grid point and the construction boundary. The coordinates of the reference starting point are calculated as follows: , ,in, and These are the north and east coordinates of the reference starting point, respectively. The column position of the current grid point along the baseline direction is determined based on the current column integer index. The product of the current column integer index and the column spacing is used as the column direction increment relative to the reference starting point, and this is further superimposed along the target azimuth direction to obtain the midpoint of the column direction. Its coordinates are calculated as follows: , ,in, and These are the north and east coordinates of the midpoint of the column, respectively. Since the integer index of the current column starts from 0, therefore when When the column spacing is 5.000m, the midpoint of the column direction is the reference starting point. At that time, the midpoint of the column direction moves forward 5.000m along the target azimuth. If the position is shifted forward by 10.000m, the position corresponding to different columns can be generated in real time simply by changing the integer index, without the need to pre-calculate and store the coordinates of all grid points.

[0037] The vertical azimuth is obtained by increasing the target azimuth by 90 degrees. As the grid row direction, the product of the current row integer index and the row spacing is used as the row direction increment perpendicular to the baseline. This increment is then superimposed on the midpoint of the column direction to obtain the north and east coordinates of the current target grid point. The calculation method is as follows: , ,in, and These are the north and east coordinates of the current target grid point, respectively. At that time, the current target grid point is located on the reference row generated along the baseline direction, and when the row spacing is 5.000m and As the grid points are increased sequentially, the target grid points expand in the direction perpendicular to the baseline at intervals of 5,000m. Therefore, the planar position of the current grid point can be understood as the sequential superposition of the baseline starting point, the initial offset, the column direction increment, and the row direction increment after the transformation. Furthermore, the column index change only alters the position along the baseline direction, and the row index change only alters the position perpendicular to the baseline direction, thus ensuring that the two directions of the grid are orthogonal to each other.

[0038] The starting offset is added to the product of the current column integer index and the column spacing to obtain the cumulative distance of the current target grid point along the transformed baseline direction. Based on this cumulative distance, a linear interpolation is performed between the starting and ending elevations of the transformed baseline. The elevation of the current target grid point is calculated according to the following formula: ,in, The elevation of the current target grid point is determined solely by the current column position along the baseline direction and does not change with the current row integer index. This is because grid points in the same column direction are set on a contour section consistent with the horizontal direction of the baseline. When the transformed baseline start elevation and end elevation are the same, the calculation result automatically degenerates into a horizontal grid surface, meaning all target grid points use the same elevation. However, when the elevations at both ends are different, the corresponding elevation is generated according to the ratio of the cumulative distance in the current column direction to the baseline length. For example, if the baseline start elevation is 100m, the end elevation is 90m, the baseline length is 50m, and the cumulative distance in the column direction is 25m, the current target grid point elevation is 95m, thus automatically forming a continuous slope without pre-storing the elevations of each point. The current row integer index, the current column integer index, and the corresponding... , , The current target point is associated with the cache and sent to the lofting navigation module. At the same time, no full coordinate records are created for other unvisited grid points. Thus, only one target grid point is generated in real time based on the current index each time. This can adapt to on-site adjustments of row spacing, column spacing and starting offset, and reduce memory usage during large-scale grid lofting.

[0039] In one embodiment, such as Figure 6 As shown, step S40 specifically includes the following steps: S41: Measure the current position coordinates of the prism in real time using a total station; S42: Subtract the coordinates of the prism's current position from the north, east, and elevation of the current target grid point to obtain the coordinate difference vector. Project the north and east coordinate differences of the coordinate difference vector onto the target azimuth direction and the target azimuth plus 90 degrees direction, respectively, to obtain the front-to-back deviation and the left-to-right deviation. Take the elevation difference directly as the vertical deviation. S43: When the front-to-back deviation and the left-to-right deviation are both non-zero, output the corresponding four diagonal arrows; when any one of the front-to-back deviation, left-to-right deviation, and up-down deviation is zero, output the corresponding four positive arrows with eight directional arrow guidance; when the front-to-back deviation, left-to-right deviation, and up-down deviation all meet the preset conditions, record the completion of the current target grid point.

[0040] In this embodiment, the layout and navigation module reads the three-dimensional coordinates, target azimuth, and planar position and elevation tolerances of the current target grid point, and sends a continuous tracking measurement command to the total station measurement control module. This enables the total station to perform real-time angle and distance measurements on the prism according to the current station coordinates, backsight orientation parameters, instrument height, and prism height. The measured horizontal angle, vertical angle, and slope distance are then converted to the construction coordinate system to obtain the current position of the prism. At the same time, the current target grid point is recorded as The target azimuth is denoted as ,in, , and These represent the north coordinates, east coordinates, and elevation of the prism's current position, respectively. , and These represent the north, east, and elevation coordinates of the target grid point, respectively. The total station can continuously output the current position coordinates at a frequency of 10-20 times per second. The time interval between two adjacent measurements is set to 50-100ms. The deviation calculation is refreshed after each new valid measurement result is received. When the distance measurement fails, the prism is unlocked, the measurement value is empty, or the coordinate value is abnormal, the valid display result of the previous cycle is temporarily maintained and a re-aiming prompt is output, without inputting the abnormal coordinates into the subsequent completion judgment, thereby avoiding frequent reversals of the arrow direction caused by measurement jumps.

[0041] The coordinate difference vector from the current position to the target position is formed by subtracting the coordinates of the prism's current position from the coordinates of the target grid points, i.e., let... , , The horizontal coordinate difference is transformed from the construction coordinate system to a local layout coordinate system with the target position angle as the vertical axis and the target position angle plus 90 degrees as the horizontal axis. The front-to-back deviation and left-to-right deviation are respectively calculated according to... as well as Calculate, and directly determine the upper and lower deviations as According to the above symbol conventions, when A positive value indicates that the prism still needs to move forward along the target azimuth angle. A negative value indicates that the prism needs to be moved backward; when... A positive value indicates that the prism needs to be moved to the right; when... A negative value indicates that the prism needs to be moved to the left; when A positive value indicates that the prism point needs to be adjusted upwards. A negative value indicates that a downward adjustment is needed. This allows the coordinate difference related to absolute north and east to be converted into forward, backward, left, right, up, and down adjustment amounts that surveyors can directly understand. Even if the reference baseline is offset and rotated, the arrow direction will always be based on the final target azimuth angle and will not change with the absolute coordinate direction on the total station interface.

[0042] The "deviation is zero" condition is implemented by making the absolute value of the deviation less than the corresponding zero-value threshold, rather than requiring the floating-point calculation result to be strictly equal to zero. For example, the zero-value threshold and completion tolerance for both forward and backward deviations and left and right deviations are set to 0.005m, and the completion tolerance for vertical deviations is set to 0.010m; when and When the upper right diagonal arrow is output, it indicates movement forward and to the right. and When the output is a diagonal arrow pointing to the upper left, it indicates movement forward and to the left. and When the arrow points to the lower right, it indicates moving backward and to the right. and The system outputs a downward-sloping left arrow to indicate backward and leftward movement. When the left-right deviation is within ±0.005m but the front-back deviation does not meet the tolerance, it outputs a forward or backward arrow based on the sign of the front-back deviation. When the front-back deviation is within ±0.005m but the left-right deviation does not meet the tolerance, it outputs a right or left arrow based on the sign of the left-back deviation, thus forming an eight-directional planar navigation guide consisting of four diagonal arrows and four positive arrows. The vertical deviation is displayed synchronously with the eight-directional planar arrows. When it is greater than 0.010m, it outputs an upward adjustment prompt; when it is less than -0.010m, it outputs a downward adjustment prompt. The front-back, left-right, and vertical deviations are displayed in meters on the interface with millimeter-level accuracy, allowing the surveyor to move quickly based on the arrows and make final fine adjustments based on the values. After each navigation information refresh, the system performs tolerance comparisons on the three deviations. Only when the absolute values ​​of the current and backward deviations are no greater than 0.005m, the absolute values ​​of the left and right deviations are no greater than 0.005m, and the absolute values ​​of the vertical deviations are no greater than 0.010m, will the movement arrows be turned off and a layout completion prompt be displayed, along with a completion sound. The row and column index of the current target grid point, the target coordinates, the final measured coordinates, the three deviation values, and the completion time are written into the layout record. Subsequently, a current point completion signal is sent to the path planning module. If any deviation still exceeds the corresponding tolerance, real-time measurement, deviation projection, and arrow update cycles continue, thereby preventing premature recording of grid point completion when only the horizontal position or only the elevation is in place.

[0043] In one embodiment, the total station grid layout and baseline multidimensional offset calculation method further includes: Under the unidirectional increment rule, when the jump point signal is triggered, the column integer index in the current row and column integer index is incremented by one, and when the newline signal is triggered, the row integer index in the current row and column integer index is incremented by one and the column integer index is set to zero. Under the bow-shaped serpentine rule, read the current row direction flag. When the jump point signal is triggered, if the row direction flag is positive, increment the column integer index in the current row and column integer index by one; if the row direction flag is negative, decrement the column integer index in the current row and column integer index by one. Under the bow-shaped serpentine rule, when the newline signal is triggered, the row integer index in the current row and column integer index is incremented by one, and the row direction flag is switched from positive to negative or from negative to positive.

[0044] In this embodiment, a finite state machine is established by the path planning module to manage the grid traversal order, and the current row integer index, the current column integer index, the scan mode, and the current row direction flag are used as state variables. The initial values ​​of the current row integer index and the current column integer index are both set to 0. When the scan mode is set to 0, it indicates that a unidirectional increasing rule is adopted. When it is set to 1, it indicates that a bow-shaped serpentine rule is adopted. When the current row direction flag is set to positive, it indicates that the column integer index changes in the increasing direction. When it is set to negative, it indicates that the column integer index changes in the decreasing direction. Furthermore, when the bow-shaped serpentine rule is started, the first row direction flag is initialized to positive. The jump point signal and the line feed signal can be triggered by the F4 and F5 function keys on the total station's operating interface, respectively. The jump point signal is used to abandon or complete the current target grid point and then switch to the adjacent grid point in the current row. The line feed signal is used to end the access to the current row and switch to the next row. The two signals are processed in a mutually exclusive manner, that is, only one signal is allowed to be valid within the same state update cycle. When the two keys are triggered simultaneously due to accidental operation, the jump point signal can be blocked according to the rule of priority of the line feed signal, and the corresponding signal can be cleared immediately after the state transition is completed to prevent the index from being repeatedly increased due to continuous recognition of a single key press. When using the unidirectional incremental rule, the grid points in each row are visited sequentially from the start to the end according to the column direction corresponding to the target azimuth. Therefore, after the path planning module detects the jump point signal, it only increments the current column integer index by 1, while keeping the current row integer index unchanged. The updated row and column integer indices are then sent to the coordinate calculation engine, which generates the next target grid point in the same row in real time based on the new column position. When the surveyor completes the current row or the current column integer index reaches the maximum column index configured by the user, a line break signal is triggered. The path planning module increments the current row integer index by 1 and restores the current column integer index to 0, so that the next row still starts from the start of the column direction. This ensures that each row maintains the same access direction. However, after completing a row, the surveyor needs to return from the end of that row to the start of the next row. Therefore, the unidirectional incremental rule is suitable for scenarios with a small number of grid columns, where the construction site allows for a quick return to the beginning of the row, or where all points need to maintain a unified access direction.

[0045] When using the bow-shaped serpentine rule, the path planning module reads the current row direction flag before processing the jump point signal. When the flag is positive, the current column integer index is incremented by 1, allowing the surveyor to move gradually from the smaller index position to the larger index position along the column direction. When the flag is negative, the current column integer index is decremented by 1, allowing the surveyor to return gradually from the larger index position to the smaller index position along the opposite direction. In both cases, the current row integer index remains unchanged, and the updated index is re-entered into the target grid point coordinate calculation process. When the current column index of a forward row reaches the maximum column index, or the current column index of a reverse row reaches 0, the current point is identified as the end point of that row. This triggers a line break signal. The path planning module increments the current row index by 1, maintains the current column index at the current end position, and flips the row direction flag (forward to reverse, reverse to forward). Therefore, after a forward row ends, the next row begins its reverse visit from the end with the maximum column index, and after a reverse row ends, the next row begins its forward visit from the end with column index 0, alternating the movement direction between adjacent rows. By retaining the end column index instead of uniformly resetting it to zero during line breaks, the surveyor only needs to move one row spacing along a row direction perpendicular to the baseline to enter the next row, without needing to return to the beginning of the other row, thus forming a continuous bow-shaped walking trajectory. After each index state transition, check whether the new row integer index and column integer index exceed the grid range set by the user. When the row integer index exceeds the maximum row index, output a signal that all grid points have been traversed and stop generating new target points. When the column integer index is less than 0 or greater than the maximum column index due to an abnormal signal, retain the previous valid index and prompt to re-trigger the line break operation. Thus, without pre-storing the coordinates of all grid points, the next target grid point can be determined using only two integer indices and a direction flag, and the switching between unidirectional incremental and bow-shaped serpentine paths can be realized.

[0046] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0047] In one embodiment, a total station grid layout and baseline multidimensional offset calculation device is provided, which corresponds one-to-one with the total station grid layout and baseline multidimensional offset calculation method described in the above embodiments. For example... Figure 7 As shown, the total station grid layout and baseline multidimensional offset calculation device includes: The data acquisition module 701 is used to acquire the coordinates of the starting and ending points of the reference baseline using a total station, and to calculate the azimuth and length of the reference baseline. The transformation module 702 is used to perform transformation based on the user-input left and right offset and direction mark, front and back offset and direction mark, and rotation angle, with the reference baseline azimuth as the reference, to obtain the transformed baseline start point, the transformed baseline end point and the target azimuth. The calculation module 703 is used to perform superposition calculations along the target azimuth direction from the transformed baseline starting point based on the user-configured row and column spacing, starting offset and current row and column integer index, to obtain the north coordinates, east coordinates and elevation of the current target grid point; The recording module 704 is used to calculate the front-back deviation, left-right deviation, and up-down deviation based on the north coordinates, east coordinates, and elevation of the current target grid point and the current position coordinates of the prism measured in real time by the total station, with the target azimuth as the reference. When the front-back deviation, left-right deviation, and up-down deviation all meet the preset conditions, the recording of the current target grid point is completed.

[0048] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0049] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0050] This application also provides a computer device, such as... Figure 8 As shown, the computer device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor. When the processor executes the computer program, it implements the steps in any of the above method embodiments, or when the processor executes the computer program, it implements the functions of each module / unit in the above device embodiments.

[0051] For example, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the computer device.

[0052] Those skilled in the art will understand that Figure 8 The computer device described is merely an example and does not constitute a limitation on the computer device. It may include more or fewer components than shown, or combine certain components, or different components. For example, the computer device may also include input / output devices, network access devices, buses, etc.

[0053] The aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), or Field Programmable Gate Arrays (FPGAs). Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0054] The memory can be an internal storage unit of the computer device, such as a hard drive or RAM. The memory can also be an external storage device of the computer device, such as a plug-in hard drive, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory can include both internal and external storage units of the computer device.

[0055] This application also provides a readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.

[0056] This application provides a computer program product that, when run on an electronic device, enables the electronic device to implement the steps described in the various method embodiments above.

[0057] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0058] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0059] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0060] In the embodiments provided in this application, it should be understood that the disclosed apparatus / devices and methods can be implemented in other ways. For example, the apparatus / device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0061] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0062] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for total station grid layout and baseline multidimensional offset calculation, characterized in that, include: The coordinates of the starting and ending points of the reference baseline are collected using a total station, and the azimuth and length of the reference baseline are calculated. Based on the user-input left and right offset and direction markers, front and back offset and direction markers, and rotation angle, the transformation is performed with the reference baseline azimuth as the reference, to obtain the transformed baseline start point, the transformed baseline end point, and the target azimuth. Based on the user-configured row and column spacing, starting offset, and current row and column integer index, the transformed baseline starting point is superimposed along the target azimuth direction to obtain the north coordinates, east coordinates, and elevation of the current target grid point; Based on the north and east coordinates and elevation of the current target grid point and the current position coordinates of the prism measured in real time by the total station, the front-back deviation, left-right deviation and vertical deviation are calculated with the target azimuth as the reference. When the front-back deviation, the left-right deviation and the vertical deviation simultaneously meet the preset conditions, the current target grid point is recorded.

2. The total station grid layout and baseline multidimensional offset calculation method as described in claim 1, characterized in that, The process of acquiring the coordinates of the start and end points of the reference baseline using a total station and calculating the azimuth and length of the reference baseline includes: The coordinates of the starting and ending points of the reference baseline were collected using a total station. The baseline length of the reference baseline is calculated based on the coordinates of the starting point and the coordinates of the ending point of the reference baseline; Based on the north and east coordinate differences between the starting and ending coordinates of the reference baseline, the arctangent of the baseline length is calculated to obtain the reference baseline azimuth.

3. The total station grid layout and baseline multidimensional offset calculation method as described in claim 2, characterized in that, The process of performing a transformation based on the user-input left / right offset and direction marker, front / back offset and direction marker, and rotation angle, using the reference baseline azimuth as a reference, to obtain the transformed baseline start point, the transformed baseline end point, and the target azimuth includes: Based on the user-input left and right offset and direction marker, and front and back offset and direction marker, perform left and right translation on the left and right offset and the front and back offset to obtain the baseline start point and baseline end point after left and right translation. Using the reference baseline azimuth as a reference, the baseline starting point and the baseline ending point after left and right translation are translated forward and backward to obtain the baseline starting point and the baseline ending point after forward and backward translation. Using the baseline starting point after the forward and backward translation as the rotation center, the reference baseline azimuth angle and the rotation angle are summed to obtain the target azimuth angle. The transformed baseline starting point and the transformed baseline ending point are then recalculated based on the target azimuth angle and the baseline length.

4. The total station grid layout and baseline multidimensional offset calculation method as described in claim 1, characterized in that, The step involves performing a superposition operation along the target azimuth direction from the transformed baseline starting point, based on the user-configured row and column spacing, starting offset, and current row and column integer index, to obtain the north coordinates, east coordinates, and elevation of the current target grid point. This includes: Using the north and east coordinates of the transformed baseline starting point as the starting point, the north and east coordinates of the reference starting point are obtained by translating along the target azimuth direction by the initial offset. Then, the product of the current column integer index and the user-configured column spacing is superimposed on the reference starting point along the target azimuth direction to obtain the north and east coordinates of the midpoint in the column direction. Using the target azimuth plus 90 degrees to obtain the vertical azimuth angle as the direction, the product of the current row integer index and the row spacing is superimposed on the north and east coordinates of the midpoint of the column direction to obtain the north and east coordinates of the current target grid point; The cumulative distance in the column direction is obtained by summing the product of the starting offset, the current column integer index, and the column spacing. The ratio of the cumulative distance in the column direction to the baseline length is multiplied by the elevation difference between the transformed baseline start point and the transformed baseline end point, and then summed with the elevation of the transformed baseline start point to obtain the elevation of the current target grid point.

5. The total station grid layout and baseline multidimensional offset calculation method as described in claim 1, characterized in that, The process of calculating the front-to-back, left-to-right, and vertical deviations based on the north and east coordinates and elevation of the current target grid point, and the real-time coordinates of the prism's current position measured by the total station, using the target azimuth as a reference, and recording the current target grid point when the front-to-back, left-to-right, and vertical deviations simultaneously meet preset conditions, includes: The current position coordinates of the prism are measured in real time using a total station; The coordinate difference vector is obtained by subtracting the current position coordinates of the prism from the north coordinates, east coordinates, and elevation of the current target grid point. The north coordinate difference and east coordinate difference vector are then projected onto the target azimuth direction and the target azimuth plus 90 degrees direction, respectively, to obtain the front-back deviation and left-right deviation. The elevation difference is directly taken as the vertical deviation. When both the front-to-back deviation and the left-to-right deviation are not zero, output the corresponding four diagonal arrows; when any one of the front-to-back deviation, the left-to-right deviation, and the up-to-down deviation is zero, output the corresponding four positive arrows in eight directions; when the front-to-back deviation, the left-to-right deviation, and the up-to-down deviation simultaneously meet the preset conditions, record the current target grid point.

6. The total station grid layout and baseline multidimensional offset calculation method as described in claim 5, characterized in that, The total station grid layout and baseline multidimensional offset calculation method also includes: Under the unidirectional increment rule, when the jump point signal is triggered, the column integer index in the current row and column integer index is incremented by one, and when the newline signal is triggered, the row integer index in the current row and column integer index is incremented by one and the column integer index is set to zero. Under the bow-shaped serpentine rule, the current row direction flag is read. When the jump point signal is triggered, if the row direction flag is positive, the column integer index in the current row and column integer index is incremented by one; if the row direction flag is negative, the column integer index in the current row and column integer index is decremented by one. Under the bow-shaped serpentine rule, when the newline signal is triggered, the row integer index in the current row and column integer index is incremented by one, and the row direction flag is switched from positive to negative or from negative to positive.

7. A total station grid layout and baseline multidimensional offset calculation device, characterized in that, The steps for implementing the total station grid layout and baseline multidimensional offset calculation method as described in any one of claims 1 to 6 include: The data acquisition module is used to acquire the coordinates of the starting and ending points of the reference baseline using a total station, and to calculate the azimuth and length of the reference baseline. The transformation module is used to perform transformation based on the user-input left and right offset and direction mark, front and back offset and direction mark, and rotation angle, with the reference baseline azimuth as the reference, to obtain the transformed baseline start point, the transformed baseline end point and the target azimuth. The calculation module is used to perform superposition calculations along the target azimuth direction from the transformed baseline starting point, based on the user-configured row and column spacing, starting offset, and current row and column integer index, to obtain the north coordinates, east coordinates, and elevation of the current target grid point; The recording module is used to calculate the front-to-back deviation, left-to-right deviation, and up-to-down deviation based on the north coordinates, east coordinates, and elevation of the current target grid point and the current position coordinates of the prism measured in real time by the total station, with the target azimuth as the reference. When the front-to-back deviation, the left-to-right deviation, and the up-to-down deviation all meet the preset conditions, the recording of the current target grid point is completed.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the total station grid layout and baseline multidimensional offset calculation method as described in any one of claims 1 to 6.

9. A readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the total station grid layout and baseline multidimensional offset calculation method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the total station grid layout and baseline multidimensional offset calculation method as described in any one of claims 1 to 6.