A method and related device for wargaming based on LED active guidance
Patent Information
- Application Number
- CN202611167020.7
- 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
因此,现有技术无法在摆棋与移动过程中向操作员提供主动的标准化引导,操作员始终面临走错位置或违反移动规则的风险,且裁决结果无法以直观方式实时反馈至实体地图
[0015]上述基于LED主动引导的兵棋推演方法及相关设备所提供的一个方案中,本发明根据想定文件按部队建制顺序逐位点亮目标网格LED,以阵营对应颜色区分红蓝双方,电感传感器以固定采样周期实时感知算子底部磁铁吸附产生的电感量变化,当变化量超过预设阈值时自动触发队列推进至下一摆放位置,全程无需操作员查阅任何纸质表格或人工核对部署方案。相较于传统人工核表摆棋方案,本发明将大场景多算子想定的初始部署时间大幅压缩,且由电感传感器在硬件层面完成放置确认,杜绝了人工摆棋过程中的错摆与漏摆问题,提升了大规模推演初始化的标准化程度。本发明基于A*寻路算法在第二六边形网格图上规划从起始坐标到目标坐标的最优路径,以绿色常亮对应平原路径、黄色闪烁对应山地路径、红色快闪对应敌方火力覆盖区的颜色编码规则,将地形属性与战场威胁信息直接以光学方式呈现于实体地图路径节点上,形成从起始坐标流向目标坐标的动态光流。相较于视觉识别方案的被动感知特性,本发明在操作员移动实体算子之前即完成路径规划与光流生成,实现了主动引导模式,操作员仅需沿地面光流移动算子即可完成合规路径操作,无需熟悉任何移动规则,彻底消除了因操作员规则掌握不熟练导致的违规移动问题,同时完全不依赖摄像头采图与图像处理算力,在算子密集排列与光线变化等复杂推演环境下保持稳定的引导可靠性。本发明通过对路径节点序列各网格电感传感器电感量的持续轮询采集,实时追踪实体算子的移动进度,当目标坐标处电感量变化超过预设阈值时自动判定到位并熄灭全部引导光流,同步完成第二态势坐标表的位置更新与服务器到位消息推送。相较于视觉识别方案,本发明的到位感知不受光线条件与算子遮挡影响,各网格传感器独立工作,感知结果稳定可靠,实现了算子位置数字化与实体操作的毫秒级同步。服务器根据第二态势坐标表执行裁决规则运算后,AR设备将需翻面算子所在网格坐标经单应性矩阵变换至投影坐标系,以彩色光圈形式精准投影至实体地图对应位置,并持续采集标注网格区域算子正面的HSV颜色空间特征值与裁决后目标状态颜色阈值进行比对,判定翻面完成后自动撤销投影并向服务器发送翻面确认消息,进而降低了裁判员的工作负担,同时保证了数字态势与实体兵棋态势在每一轮裁决完成后的实时一致性。
Smart Images

Figure CN122990987A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wargaming technology, and in particular to a wargaming method and related equipment based on LED active guidance. Background Technology
[0002] Wargaming is an important tool for military training and combat research. Traditional physical wargaming relies on referees manually checking tables to complete the initial setup. In large-scale scenarios with multiple operators, it is time-consuming and prone to errors and omissions. During the simulation, the movement paths of operators and the adjudication results are all recorded manually, making it difficult to achieve digital archiving and real-time feedback.
[0003] Existing technologies include RFID positioning and top-mounted camera visual recognition. RFID solutions require embedding chips in each operator and deploying a reader array below the map, resulting in high hardware costs and an inability to identify the front and back of double-sided operators. Visual recognition solutions rely on high-definition cameras and image algorithms, but their recognition rate is unstable when operators are densely arranged or under changing lighting conditions. Furthermore, they are passive, only recognizing and judging after the operator has performed an action. Therefore, existing technologies cannot provide proactive, standardized guidance to the operator during the placement and movement of the game. The operator always faces the risk of moving to the wrong position or violating movement rules, and the judgment results cannot be intuitively fed back to the physical map in real time. Summary of the Invention
[0004] This invention provides a wargaming method and related equipment based on LED active guidance. This invention achieves millisecond-level synchronization between operator position digitization and physical operation, ensuring real-time consistency between the digital situation and the physical wargaming situation after each round of adjudication.
[0005] In a first aspect, embodiments of this application provide a wargaming simulation method based on LED active guidance, comprising: The scenario file is parsed and the LED units of the target grid are driven to light up in the corresponding colors of the camp. The inductance of the inductor sensor below the target grid is collected and the operator is determined to be in place based on the inductance. The process is repeated until all operators are placed and the first situation coordinate table is output. Based on the starting coordinates and target coordinates of the operators in the first situation coordinate table, path planning is performed to obtain a path node sequence, and a dynamic optical flow is formed based on the path node sequence to guide the operator to move the entity operator along the dynamic optical flow; The inductance of the corresponding inductor sensor in each node of the path node sequence is collected, the movement progress of the entity operator along the dynamic optical flow is tracked, and when the entity operator is in place, all LEDs of the dynamic optical flow are turned off, and the position of the entity operator in the first situation coordinate table is updated to the target coordinate to obtain the second situation coordinate table. At the same time, an operator arrival confirmation message is sent to the server.
[0006] Optionally, in a first implementation of the first aspect of the present invention, the step of parsing the scenario file and driving the LED units of the target grid to light up in the camp-corresponding color, acquiring the inductance value of the inductor sensor below the target grid and determining whether the operator is placed in place based on the inductance value, looping until all operators are placed, and outputting a first situation coordinate table, including: The scenario file is parsed and the target grid coordinates and faction attributes of each operator are extracted. The LED unit of the target grid corresponding to the current task unit is driven to light up in the faction-corresponding color. The inductance of the inductor sensor below the target grid is collected. When the change in the inductance value relative to the baseline exceeds a preset threshold, the operator is determined to be in place and the LED of the target grid is turned off; Write the operator number, target grid coordinates, and faction attributes of the placed operator into the first situation coordinate table, and trigger the LED lighting task queue to advance to the next task unit. Repeat this process until the entire queue is completed, and output the first situation coordinate table.
[0007] Optionally, in a second implementation of the first aspect of the present invention, the step of performing path planning based on the starting coordinates and target coordinates of the operator in the first situation coordinate table to obtain a path node sequence, and forming a dynamic optical flow based on the path node sequence to guide the operator to move the entity operator along the dynamic optical flow, includes: The second hexagonal grid is obtained by assigning terrain weights to each node in the first hexagonal grid based on the terrain attribute table. Based on the starting coordinates and target coordinates of the operator in the first situation coordinate table, path planning is performed on the second hexagonal grid diagram to obtain a path node sequence, and color parameters are assigned to each node in the path node sequence. Based on the path node sequence and the color parameters of each node, the LEDs of each node are driven to light up in the corresponding color, and the LEDs at the starting coordinates and the target coordinates are driven to flash green at a preset frequency to form a dynamic light flow, guiding the operator to move the entity operator along the dynamic light flow.
[0008] Optionally, in a third implementation of the first aspect of the present invention, the step of performing path planning on the second hexagonal grid diagram based on the starting coordinates and target coordinates of the operator in the first situation coordinate table to obtain a path node sequence, and assigning color parameters to each node in the path node sequence, includes: Add the starting coordinates of the operators in the first situation coordinate table to the open list. Use the sum of the terrain weights of the current node and each of its neighboring nodes as the path cost and the Hex distance from the current node to the target coordinate as the heuristic value. Continuously expand the node with the lowest cost on the second hexagonal grid graph until the target coordinate node is selected from the open list to obtain the path node sequence. The terrain attribute table is queried based on each node in the path node sequence to obtain the terrain type of each node; Based on the terrain type of each node, color parameters are assigned to each node in the path node sequence according to the rule of assigning a constant green parameter to plain nodes, a flashing yellow parameter to mountain nodes, and a fast red parameter to nodes in enemy fire coverage areas.
[0009] Optionally, in a fourth implementation of the first aspect of the present invention, the step of collecting the inductance of the inductor sensor corresponding to each node in the path node sequence, tracking the movement progress of the entity operator along the dynamic optical flow, turning off all LEDs in the dynamic optical flow when the entity operator is in place, updating the position of the entity operator in the first situation coordinate table to the target coordinates, obtaining the second situation coordinate table, and simultaneously sending an operator arrival confirmation message to the server, includes: The inductance of the inductor corresponding to each node in the path node sequence is collected, and the difference between the inductance of each node and the corresponding baseline value is calculated to obtain the change value of the inductance of each node. Determine whether the change in inductance at the target coordinate exceeds a preset threshold. If it does, confirm that the entity operator is in place, turn off all LEDs in the dynamic optical flow, update the position record of the corresponding entity operator in the first situation coordinate table from the starting coordinate to the target coordinate, obtain the second situation coordinate table, and send an operator arrival confirmation message to the server.
[0010] Optionally, in a fifth implementation of the first aspect of the present invention, after sending an operator arrival confirmation message to the server, the LED-guided wargame simulation method further includes: The second situation coordinate table is submitted to the server, and the positional relationship, faction attribute and unit type of each operator are adjudicated according to the adjudication rules to obtain the adjudication result data packet. Based on the adjudication result data packet, the grid coordinates of the operator that needs to be flipped are extracted, and the AR device is driven to project colored aperture markings on the corresponding grid positions on the physical map according to the grid coordinates; Collect the frontal color feature values of the operator in the labeled grid area, and compare the frontal color feature values with the target state color threshold; When the front color feature value falls within the target state color threshold range, the flipping is confirmed to be complete, the color aperture projection is canceled, and a flipping confirmation message is sent to the server.
[0011] Secondly, embodiments of this application provide a wargaming simulation device based on LED active guidance, comprising: The parsing module is used to parse the scenario file and drive the LED units of the target grid to light up in the camp-corresponding color. It collects the inductance of the inductor sensor below the target grid and determines whether the operator is placed in place based on the inductance. The process is repeated until all operators are placed and the first situation coordinate table is output. The path planning module is used to perform path planning based on the starting coordinates and target coordinates of the operators in the first situation coordinate table, obtain a path node sequence, and form a dynamic optical flow based on the path node sequence to guide the operator to move the entity operator along the dynamic optical flow. The operator movement module is used to collect the inductance of the inductor sensor corresponding to each node in the path node sequence, track the movement progress of the entity operator along the dynamic optical flow, and when the entity operator is in place, turn off all LEDs in the dynamic optical flow, update the position of the entity operator in the first situation coordinate table to the target coordinate, obtain the second situation coordinate table, and send an operator arrival confirmation message to the server.
[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 LED-guided war game simulation 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 LED-guided wargame simulation 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 LED-guided wargame simulation method.
[0015] In one solution provided by the aforementioned LED-guided wargaming method and related equipment, the present invention illuminates the target grid LEDs sequentially according to the unit organization order based on the scenario document. Red and blue sides are distinguished by their corresponding colors. Inductive sensors detect changes in inductance generated by the magnets adsorbing the operators in real time at a fixed sampling period. When the change exceeds a preset threshold, the queue is automatically triggered to advance to the next placement position. The entire process requires no operator to consult any paper forms or manually verify the deployment plan. Compared to traditional manual checklist-based deployment schemes, this invention significantly reduces the initial deployment time for large-scale, multi-operator scenarios. Furthermore, placement confirmation is completed at the hardware level by inductive sensors, eliminating errors and omissions in manual deployment and improving the standardization of large-scale wargaming initialization. This invention, based on the A* pathfinding algorithm, plans the optimal path from the starting coordinates to the target coordinates on a second hexagonal grid map. It uses a color coding system—green for plains paths, yellow for mountain paths, and red for enemy fire zones—to directly present terrain attributes and battlefield threat information optically onto the path nodes of the physical map, forming a dynamic optical flow from the starting coordinates to the target coordinates. Compared to the passive perception of visual recognition schemes, this invention completes path planning and optical flow generation before the operator moves the physical operator, achieving an active guidance mode. The operator only needs to move the operator along the ground optical flow to complete compliant path operations, without needing to be familiar with any movement rules. This completely eliminates the problem of illegal movements caused by the operator's lack of familiarity with the rules. Furthermore, it does not rely on camera image acquisition or image processing computing power, maintaining stable guidance reliability even in complex simulation environments with densely arranged operators and changing lighting conditions. This invention continuously polls and collects the inductance values of the inductance sensors in each grid of the path node sequence to track the movement progress of the entity operator in real time. When the change in inductance at the target coordinate exceeds a preset threshold, it automatically determines that the entity is in position and extinguishes all guiding light flows, simultaneously updating the position in the second situation coordinate table and pushing the position message to the server. Compared with visual recognition schemes, the position perception of this invention is not affected by lighting conditions or operator occlusion. Each grid sensor works independently, and the perception results are stable and reliable, achieving millisecond-level synchronization between operator position digitization and entity operation. After the server executes the adjudication rule calculation according to the second situation coordinate table, the AR device transforms the grid coordinates of the operator to be flipped to the projection coordinate system through a homography matrix, accurately projects them onto the corresponding position on the entity map in the form of a colored aperture, and continuously collects the HSV color space feature values of the operator's front side in the marked grid area and compares them with the target state color threshold after adjudication. After determining that the flipping is completed, the projection is automatically canceled and a flipping confirmation message is sent to the server, thereby reducing the workload of the referee and ensuring the real-time consistency between the digital situation and the entity wargame situation after each round of adjudication. 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 a war game simulation system based on LED active guidance in one embodiment of the present invention; Figure 2 This is a schematic diagram of the first process of a wargaming simulation method based on LED active guidance in one 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 This is a second flowchart of a wargaming simulation method based on LED active guidance in one embodiment of the present invention; Figure 7 This is a schematic diagram of a war game simulation device based on LED active guidance in one 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 wargaming method and related equipment based on LED active guidance. The wargaming method based on LED active guidance provided by this invention can be applied to applications such as... Figure 1 The LED-guided wargaming system shown includes a client and a server.
[0025] In one embodiment, such as Figure 2 As shown, a wargaming method based on LED active guidance is provided, which is then applied to... Figure 1 The following is an example of a wargaming system based on LED active guidance, including the following steps: S10: Parse the scenario file and drive the LED cells of the target grid to light up in the corresponding colors of the camp. Collect the inductance of the inductor sensor below the target grid and determine whether the operator is placed in place based on the inductance. Loop until all operators are placed and output the first situation coordinate table. S20: Based on the starting coordinates and target coordinates of the operator in the first situation coordinate table, path planning is performed to obtain the path node sequence, and a dynamic optical flow is formed based on the path node sequence to guide the operator to move the entity operator along the dynamic optical flow; S30: Collect the inductance of the corresponding inductor sensor of each node in the path node sequence, track the movement progress of the entity operator along the dynamic optical flow, turn off all LEDs in the dynamic optical flow when the entity operator is in place, update the position of the corresponding entity operator in the first situation coordinate table to the target coordinate, obtain the second situation coordinate table, and send an operator arrival confirmation message to the server at the same time.
[0026] In this embodiment, the present invention illuminates the target grid LEDs sequentially according to the unit organization order based on the scenario document, distinguishing between red and blue sides by their corresponding colors. An inductive sensor detects the change in inductance generated by the magnet adsorption at the bottom of the operator in real time at a fixed sampling period. When the change exceeds a preset threshold, the queue is automatically triggered to advance to the next placement position. The entire process requires no operator to consult any paper forms or manually verify the deployment plan. Compared to traditional manual checklist-based deployment methods, this invention significantly reduces the initial deployment time for large-scale, multi-operator scenarios. Furthermore, placement confirmation is completed at the hardware level by the inductive sensor, eliminating errors and omissions in manual deployment and improving the standardization of large-scale simulation initialization. Based on the A* pathfinding algorithm, this invention plans the optimal path from the starting coordinates to the target coordinates on the second hexagonal grid map. Using a color coding rule—green for plains, yellow for mountainous terrain, and red for enemy fire coverage—terrain attributes and battlefield threat information are directly presented optically on the physical map path nodes, forming a dynamic optical flow from the starting coordinates to the target coordinates. Compared to the passive perception of visual recognition solutions, this invention completes path planning and optical flow generation before the operator moves the entity operator, achieving an active guidance mode. The operator only needs to move the operator along the ground optical flow to complete compliant path operations, without needing to be familiar with any movement rules. This completely eliminates the problem of unauthorized movement caused by the operator's lack of familiarity with the rules. Furthermore, it does not rely on camera image acquisition or image processing computing power, maintaining stable guidance reliability even in complex simulation environments with densely arranged operators and changing lighting conditions. This invention continuously polls and collects the inductance values of each grid inductor sensor in the path node sequence to track the movement progress of the entity operator in real time. When the change in inductance value at the target coordinate exceeds a preset threshold, it automatically determines the target is in position and extinguishes all guiding optical flows, simultaneously updating the position in the second situation coordinate table and pushing the target's position status message to the server. Compared to visual recognition solutions, the target's position perception is unaffected by lighting conditions or operator occlusion. Each grid sensor works independently, resulting in stable and reliable perception results, achieving millisecond-level synchronization between operator position digitization and entity operation. After the server executes the adjudication rules calculation based on the second situation coordinate table, the AR device transforms the grid coordinates of the operator to be flipped to the projection coordinate system through a homography matrix, and accurately projects them onto the corresponding position on the physical map in the form of a colored aperture. It continuously collects the HSV color space feature values of the operator's front side in the marked grid area and compares them with the target state color threshold after adjudication. After determining that the flipping is completed, the projection is automatically canceled and a flipping confirmation message is sent to the server, thereby reducing the workload of the referee and ensuring the real-time consistency between the digital situation and the physical wargaming situation after each round of adjudication.
[0027] In one embodiment, such as Figure 3 As shown, step S10 specifically includes the following steps: S11: Parse the scenario file and extract the target grid coordinates and faction attributes of each operator, drive the LED unit of the target grid corresponding to the current task unit to light up with the corresponding faction color, and collect the inductance of the inductor sensor below the target grid. S12: When the change in inductance relative to the baseline value exceeds a preset threshold, determine that the operator is in place and turn off the LED of the target grid; S13: Write the operator number, target grid coordinates and faction attributes of the placed operator into the first situation coordinate table, and trigger the LED lighting task queue to advance to the next task unit. Execute this loop until the queue is complete, and output the first situation coordinate table.
[0028] In this embodiment, the control and processing module reads the scenario file corresponding to this round of simulation from the server or local non-volatile storage area, and parses the operator records one by one according to the pre-agreed structured data format. Each record contains an operator number, target grid coordinates, and faction attribute. The target grid coordinates are represented in hexagonal axis coordinate form as (q, r), and the faction attribute is set to red or blue. It can also be associated with extended fields such as unit type, formation order, and placement priority. After completing the field integrity check, coordinate validity check, and operator number uniqueness check, the control and processing module encapsulates each operator record into an LED lighting task unit according to the unit formation order or preset priority, and writes them into the LED lighting task queue in sequence. Each task unit saves the operator number, target grid coordinates, faction attribute, and corresponding color parameters. The control and processing module reads the current task unit from the head of the queue, queries the pre-calibrated and stored coordinate-LED address mapping table based on the target grid coordinates, obtains the physical address of the LED unit at the center of the target grid in the LED strip series link, and controls the LED to light up via PWM drive. The color parameter corresponding to the red team is set to RGB value (255, 0, 0), and the color parameter corresponding to the blue team is set to RGB value (0, 0, 255). When it is necessary to highlight the general placement position, a constant white light with RGB value (255, 255, 255) can be used as a prompt, so that the operator can determine the team and position of the operator to be placed based on the light position and color of the target grid. At the same time, the control and processing module activates the inductor sensor below the target grid and continuously collects the inductance value of the inductor sensor at a sampling period of 1 millisecond. In order to avoid baseline shift caused by different grid iron sheet structures, sensor coil parameters and ambient temperature, 100 inductance data points in the operator-free state can be continuously collected before the LED lights up, and the stable sampling result is used as the baseline value of the grid for this round of detection.
[0029] The system continuously compares the changes in inductance between the real-time value and the baseline value. When the ring-shaped permanent magnet at the bottom of the operator approaches and attracts the target grid, the equivalent inductance of the sensor coil changes significantly. A preset threshold can be written into the parameter table based on the calibration results after system installation. For example, the inductance change threshold can be set to 5 microhenries, requiring the change to continuously exceed this threshold for 20 milliseconds to filter out false triggers caused by the operator passing through adjacent grids, operator hand disturbances, and instantaneous electromagnetic noise. When the above continuous judgment conditions are met, the control and processing module determines that the current operator has been placed in position and immediately sets the PWM duty cycle of the target grid LED to zero, turning it off, and simultaneously stops the high-frequency positioning detection of that grid. If no inductance change meeting the conditions is detected within 10 seconds after the target grid LED is lit, the current task unit remains in the queue, and the target grid LED is switched to a red fast-flashing state, for example, using a 2Hz flashing frequency and a 50% flashing duty cycle, while simultaneously triggering a buzzer to output a short prompt tone until the operator places the operator in the correct position.
[0030] Once the placement is confirmed, the control and processing module reads the operator number, target grid coordinates, and alignment attribute from the current task unit, and appends a placement confirmation timestamp. This data is then written as a situation record into the first situation coordinate table. The first situation coordinate table can be organized using a data structure with the target grid coordinates as the key, allowing for quick lookup of the corresponding operator number, alignment attribute, and current position based on the coordinates. Before writing, it checks if the target grid already has other operator records. If a coordinate conflict is found, the task queue is not advanced; instead, the current grid is relit and a conflict warning is output. After this situation record is successfully written, the control and processing module removes the current task unit from the LED lighting task queue and reads the next task unit, repeating the target grid addressing, LED lighting, inductance measurement, placement determination, and situation record writing process until the LED lighting task queue is empty. The control and processing module performs a consistency check between the number of records in the first situation coordinate table and the number of valid operators in the scenario file, and checks for duplicate operator numbers, missing target coordinates, or unconfirmed records. After successful verification, the first situation coordinate table is output.
[0031] In one embodiment, such as Figure 4 As shown, step S20 specifically includes the following steps: S21: Assign terrain weights to each node in the first hexagonal grid based on the terrain attribute table to obtain the second hexagonal grid. S22: Based on the starting coordinates and target coordinates of the operator in the first situation coordinate table, perform path planning on the second hexagonal grid diagram to obtain the path node sequence, and assign color parameters to each node in the path node sequence; S23: Based on the path node sequence and the color parameters of each node, drive the LEDs of each node to light up in the corresponding color, and at the same time drive the LEDs of the starting coordinates and the target coordinates to flash green at a preset frequency to form a dynamic light flow, guiding the operator to move the entity operator along the dynamic light flow.
[0032] In this embodiment, the control and processing module reads a pre-established terrain attribute table and a first hexagonal grid diagram. The first hexagonal grid diagram uses the coordinates of each hexagonal grid as nodes, and establishes edge connections according to the adjacency relationship between each node and its six surrounding adjacent nodes. The terrain attribute table uses grid coordinates as an index to record attributes such as plains, mountains, hills, river crossings, restricted areas, and enemy fire coverage areas for the corresponding grid. The control and processing module sequentially traverses each node in the first hexagonal grid diagram, queries the terrain attribute table based on the node coordinates, and converts the retrieved terrain type into terrain weights required for path planning. For example, the terrain weight of a plain node is set to 1, and the terrain weight of a mountain or hill node is set to 1. The terrain weight is set to 2, and the terrain weight of the river crossing node is set to 3. For the main body of the river, permanent obstacles or other restricted areas that the current unit is not allowed to enter, the corresponding node is set to an impassable state so that the node will not be developed during the path planning process. When different units have different passage capabilities, the corresponding terrain weight parameter group can also be called according to the unit type of the current operator to be moved in the first situation coordinate table. For example, tracked armored operators can pass through ordinary hill nodes, while wheeled operators use a higher terrain weight when passing through the same node. This makes the formed second hexagonal grid map retain the original grid topology relationship and contain passage cost information that matches the current operator's mobility capability.
[0033] After assigning terrain weights, the control and processing module reads the operator number, current grid coordinates, and faction attribute of the operator to be moved from the first situation coordinate table, and receives the target coordinates specified by the operator. Simultaneously, it checks whether the starting coordinates have a corresponding operator record, whether the target coordinates are within the valid map area, and whether the target node is in an impassable state. After successful verification, path planning is performed on the second hexagonal grid map, using the starting coordinates as the search start point and the target coordinates as the search end point. It selects nodes to expand based on the terrain weights between nodes and the Hex distance from the node to the target coordinates, until a path is obtained consisting of the starting coordinates, several intermediate coordinates, and the target coordinates. Node sequence; After obtaining the path node sequence, the terrain type query and color parameter binding of each path node are completed. Plain nodes are assigned a green constant light parameter, with the corresponding RGB value set to (0, 255, 0) and the PWM duty cycle set to 100%. Mountain or hill nodes are assigned a yellow flashing parameter, with the corresponding RGB value set to (255, 255, 0), the flashing frequency set to 2Hz and the flashing duty cycle set to 50%. Enemy fire coverage area nodes are assigned a red fast flashing parameter, with the corresponding RGB value set to (255, 0, 0), the flashing frequency set to 5Hz and the flashing duty cycle set to 50%. Thus, the path node sequence carrying coordinate order and color parameters is obtained.
[0034] The control and processing module queries the coordinate-LED address mapping table according to the coordinates of each path node, converts the path node into the LED physical address in the LED strip data link, and writes the RGB value, PWM duty cycle, flashing frequency and lighting sequence of each node into the LED driver buffer. At the same time, it extracts the LED addresses corresponding to the starting coordinates and the target coordinates separately, and drives the LEDs at the starting position and the target position to emit green flashing light at a frequency of 5Hz, so that the operator can clearly identify the starting position and the final destination position of the operator before moving. Based on this, the control and processing module issues lighting commands in sequence according to the arrangement order of the path nodes. For example, according to the time interval of 50 milliseconds between each node, the LEDs on the path are lit up gradually from the starting coordinate direction to the target coordinate direction. When the lighting command reaches the end of the path, the next round can be executed again from the starting point of the path after an interval of 500 milliseconds, thus forming a cyclic dynamic light flow with a clear flow direction. For green, constantly lit nodes, the control and processing module maintains their base brightness after dynamic illumination. For yellow flashing nodes and red fast-flashing nodes, the corresponding flashing parameters are superimposed while maintaining the path flow direction. This allows the operator to not only identify the direction of movement when moving entity operators along the optical flow, but also to directly determine the terrain difficulty and threat status of the nodes passed through. When there are prohibited nodes in the path or the server updates the enemy fire coverage area during movement, the control and processing module pauses the current dynamic optical flow output and regenerates the path node sequence based on the updated terrain attributes. When the path is valid and the LED driving status is normal, the dynamic optical flow is continuously output in a loop, guiding the operator to move the entity operators sequentially along each luminous grid to the target coordinates.
[0035] In one embodiment, step S22 specifically includes the following steps: Add the starting coordinates of the operators in the first situation coordinate table to the open list. Use the sum of the terrain weights of the current node and each of its neighboring nodes as the path cost and the Hex distance from the current node to the target coordinate as the heuristic value. On the second hexagonal grid, iteratively expand the node with the lowest cost until the target coordinate node is selected from the open list to obtain the path node sequence. Query the terrain attribute table based on each node in the path node sequence to obtain the terrain type of each node; Based on the terrain type of each node, color parameters are assigned to each node in the path node sequence according to the rule of assigning a constant green parameter to plain nodes, a flashing yellow parameter to mountain nodes, and a fast red parameter to nodes in enemy fire coverage areas.
[0036] In this embodiment, the control and processing module reads the current position of the operator to be moved from the first situation coordinate table, determines the current position as the starting coordinate, and receives the target coordinate specified by the operator. It then checks whether the starting coordinate and the target coordinate are within the valid range of the second hexagonal grid and whether the target coordinate is a forbidden node. After successful verification, the node corresponding to the starting coordinate is added to the open list, its accumulated path cost is initialized to zero, and an empty parent node record is created for this node. Simultaneously, a closed list is created to store nodes that have been expanded. The node with the lowest total cost is selected from the open list as the current node. Based on the adjacency relationship of the second hexagonal grid, the six adjacent nodes around the current node are read. For forbidden nodes that are outside the map boundary, already in the closed list, or have a terrain weight of positive infinity, they are no longer included in subsequent calculations. For the remaining passable adjacent nodes, the path cost to the adjacent node is updated based on the accumulated terrain weight from the starting coordinate to the current node and the terrain weight from the current node to the corresponding adjacent node. The Hex distance from the current node to the target coordinate is used as a heuristic value, where the Hex distance is calculated according to the following formula: In the formula, This represents the hexagonal axis coordinates of the node currently being evaluated. This represents the target coordinates. The control and processing module uses path cost and heuristic value together to determine the expansion priority of nodes. When an adjacent node has not yet been added to the open list, the adjacent node is added to the open list, and the current node is recorded as its parent node. When an adjacent node already exists in the open list and the path cost obtained this time is less than the original path cost, the path cost of the adjacent node and its parent node record are updated. After processing all adjacent nodes, the current node is moved from the open list to the closed list, and the node with the lowest cost in the open list is selected for expansion until the target coordinate node is selected as the current node. If the open list is empty and no target coordinate node is selected, it is determined that there is no passable path between the current starting coordinates and the target coordinates, and LED guidance is stopped. After the target coordinate node is selected, the control and processing module backtracks to the starting node level by level according to the parent node pointer saved by the target node, and then reverses the order of the backtracked nodes to form a path node sequence arranged in the order of starting coordinates, intermediate coordinates, and target coordinates.
[0037] The terrain attribute table is queried using the coordinates of each node in the path node sequence as an index. The terrain type of the corresponding node is read, such as plain, mountain, hill, river crossing, or enemy fire coverage area. The terrain type is then bound to a color parameter. For example, plain nodes are assigned a constant green parameter with an RGB value of (0, 255, 0) and a PWM duty cycle of 100%; mountain or hill nodes are assigned a flashing yellow parameter with an RGB value of (255, 255, 0), a flashing frequency of 2Hz, and a flashing duty cycle of 50%; and enemy fire coverage area nodes are assigned a fast red parameter with an RGB value of (255, 0, 0), a flashing frequency of 5Hz, and a flashing duty cycle of 50%. When a path node has both basic terrain attributes and enemy fire coverage attributes, it is marked with the fast red parameter for enemy fire coverage area to highlight the threat warning. Finally, the coordinates, order, terrain type, and color parameters of each node are associated and stored to obtain a path node sequence with color parameters generated by LED driving and dynamic optical flow.
[0038] In one embodiment, such as Figure 5 As shown, step S30 specifically includes the following steps: S31: Collect the inductance of the inductor corresponding to each node in the path node sequence, and subtract the inductance of each node from the corresponding baseline value to obtain the change value of the inductance of each node. S32: Determine whether the change in inductance at the target coordinate exceeds the preset threshold. If it does, confirm that the entity operator is in place, turn off all LEDs in the dynamic optical flow, update the position record of the corresponding entity operator in the first situation coordinate table from the starting coordinate to the target coordinate, obtain the second situation coordinate table, and send an operator arrival confirmation message to the server.
[0039] In this embodiment, the control and processing module reads the path node sequence generated during the path planning process and converts the coordinates of each hexagonal grid into the acquisition channel address of the corresponding inductor sensor according to the arrangement order of the nodes in the path. Simultaneously, it reads the pre-calibrated inductance baseline value of each node in the state without any operator placement from the sensor baseline parameter table. Before starting acquisition, it verifies that there are no other operator occupancy records in the first situation coordinate table for the target coordinates. Before the entity operator leaves the starting coordinates, it performs a static sampling of the target coordinates and each intermediate node to eliminate initial offsets caused by grid structure differences, temperature changes, and surrounding magnetic components. The control and processing module initiates the path tracking acquisition task, sequentially polling the inductor sensor corresponding to each node in the path node sequence at a sampling period of 1 millisecond. It subtracts the inductance value obtained from each acquisition from the baseline value corresponding to that node to obtain the inductance change value of the corresponding node. Simultaneously, it writes the node coordinates, sampling timestamp, and inductance change value into a temporary movement state buffer. Since the ring-shaped permanent magnet at the bottom of the operator changes the equivalent inductance of the sensor coil at a certain path node when it passes through or is attracted to it, the control and processing module can check whether the change in inductance of each node exceeds a preset threshold according to the order of the path nodes, and thus determine the current position of the physical operator. For example, the preset threshold is set to 5 microhenries, and the node is confirmed to be occupied by the physical operator only when the change in inductance of the same node exceeds the threshold for 20 consecutive milliseconds, so as to filter out misjudgments caused by the operator quickly passing through adjacent grids, operator hand disturbances, or instantaneous electromagnetic noise.
[0040] When the detected inductance change at the starting coordinate recovers from exceeding a preset threshold to below the threshold, it can be determined that the entity operator has left the starting position. If subsequent intermediate nodes, following the path node sequence, successively generate changes exceeding the preset threshold, the entity operator's movement progress is updated. If the detected node does not belong to the current path node sequence, or if it crosses multiple nodes without any effective changes in the intermediate nodes, the movement is temporarily not considered valid, and the dynamic optical flow output is maintained, or the LED at the corresponding abnormal position flashes red to guide the operator back to the planned path. As the entity operator moves gradually along the dynamic optical flow, the control and processing module continuously collects the inductance of the inductor sensor below the target coordinate and compares it with the baseline value of the target coordinate. When the inductance change at the target coordinate exceeds 5 microhenries and remains constant for 20 milliseconds, and there is no longer a valid adsorption signal at the starting coordinate, it is determined that the current entity operator has moved from the starting coordinate and stably adsorbed to the target coordinate. To avoid the operator being mistakenly judged as having arrived after briefly passing through the target position, data collection continues for 100 milliseconds. If the change in the target coordinate remains above the preset threshold during this time, a final confirmation result is generated. Once the target position is confirmed, the control and processing module immediately stops the polling and tracking task of the current path node. Based on the LED physical addresses stored in the path node sequence, it sets the PWM duty cycle of all LEDs involved in the dynamic optical flow to zero, and stops the 5Hz green flashing of the LEDs at the starting and target coordinates, restoring the entity map to a non-guided display state. Next, based on the operator number carried by this movement command, it searches for the corresponding record in the first situation coordinate table, updates the current position in the record from the starting coordinate to the target coordinate, and retains the operator number, faction attribute, and other original fields. It also adds the timestamp of this movement completion and the arrival confirmation status, thereby forming the second situation coordinate table. To avoid inconsistencies between LED extinguishing, coordinate table updates, and server message transmission, the control and processing module can write the updated records to a temporary table. After coordinate conflict checks and record integrity checks pass, the original position records are completely replaced, and the second situation coordinate table is saved to the memory situation data area. The control and processing module generates an operator arrival confirmation message, which includes the operator number, starting coordinates, target coordinates, arrival confirmation timestamp, and this movement task identifier. This message is sent through the communication link with the server. After the server returns a confirmation of receipt, the current entity operator movement process ends. If no server response is received within the preset 2-second confirmation time, the message is resent at 500-millisecond intervals, up to a maximum of 3 resentments, to ensure that the digital situation in the server is consistent with the final operator position on the entity map.
[0041] In one embodiment, such as Figure 6 As shown, after sending an operator arrival confirmation message to the server, the LED-guided wargame simulation method also includes: S40: Submit the second situation coordinate table to the server, and perform adjudication calculations on the positional relationship, faction attribute and unit type of each operator according to the adjudication rules to obtain the adjudication result data packet; S50: Based on the adjudication result data packet, extract the grid coordinates of the operator that needs to be flipped, and drive the AR device to project colored aperture markings on the corresponding grid positions on the physical map according to the grid coordinates; S60: Collect the frontal color feature value of the operator in the labeled grid area, and compare the frontal color feature value with the target state color threshold; S70: When the front color feature value falls within the target state color threshold range, the flipping is confirmed to be complete, the color aperture projection is canceled, and a flipping confirmation message is sent to the server.
[0042] In this embodiment, after the control and processing module confirms the arrival of the entity operator and generates the second situation coordinate table, it generates a unique adjudication task identifier for this round of movement. It then encapsulates the second situation coordinate table along with the movement operator number, starting coordinates, target coordinates, actual arrival timestamp, and current simulation round into a situation submission message, which is sent to the server via a TCP communication link. Upon receiving the message, the server verifies the task identifier, the number of records, and the validity of the coordinates. It also compares the operator number, real-time coordinates, faction attribute, and unit type in the second situation coordinate table with the previous situation saved on the server. After confirming the validity of this movement, it reads the adjudication rule corresponding to the current scenario from the rule database. The rule database stores unit attack ranges, counter-relationships between different unit types, terrain bonuses, fire coverage range, and status change conditions according to rule numbers. Then, using the target coordinates of the movement operator as the center, it retrieves friendly and enemy operators within a preset range of action. Finally, it performs adjudication calculations based on the grid distance between operators, whether the factions are relative, whether the unit type meets the attack or support conditions, and the terrain attributes of the grid in which the operator is located. For example, when the red team's armored operator enters the firing range of the blue team's infantry operator and there is no obstructing terrain, the damaged state can be output according to the corresponding adjudication rules. When the adjudication result meets the destruction condition, the destroyed state is output. After the server completes the adjudication of all affected operators, it generates an adjudication result data packet, which includes the adjudication task identifier, a list of affected operator numbers, the state of each operator before adjudication, the target state after adjudication, whether flipping is required, the grid coordinates after adjudication, and the adjudication timestamp. This data packet is then pushed synchronously to the client and AR device.
[0043] After receiving the adjudication result data packet, the AR device filters out the operators whose state change instructions require flipping, and extracts the operator number, target state, and current grid coordinates. Simultaneously, it calls up the virtual-real registration parameters completed at the beginning of the simulation phase. During virtual-real registration, the recognition camera acquires entity map images and detects the ground... Figure 4The AR device uses pre-set high-contrast geometric markers at the corners. Based on the correspondence between the image pixel coordinates of the four markers and the physical coordinates of the entity map, a 3×3 homography matrix H is calculated. This establishes a mapping relationship between the hexagonal grid coordinates and the projector image coordinates. Registration is re-performed when the detection position of any marker deviates more than 2 pixels from the calibration position to prevent aperture misalignment caused by map movement or projection device vibration. Subsequently, the AR device transforms the center and boundary coordinates of the hexagonal grid containing the operator to be flipped to the projection coordinate system. A bright colored aperture, not exceeding the grid boundary, is generated within the corresponding grid. A damaged state uses an orange aperture, and a destroyed state uses a gray aperture. The aperture can be set to a 1Hz breathing brightness variation, allowing the operator to distinguish the status prompts from the original LED dynamic light flow. When multiple operators need to be flipped, the AR device can project multiple apertures simultaneously and establish flipping detection tasks consisting of operator number, grid coordinates, target status, and projection area for each.
[0044] After the operator flips the corresponding entity operator according to the color aperture prompts, the recognition camera continuously acquires images of each marked grid area at a sampling frequency of 1 frame / second. To avoid orange or gray projection light superimposing on the operator surface and changing its true color, the corresponding aperture can be temporarily closed for 100 milliseconds at the end of each acquisition cycle. In the image frame after the aperture is closed, the top surface area of the operator is cropped, and the hexagonal border, map background color, and surrounding operators are filtered out, retaining only the effective color pixels on the front of the operator. Subsequently, the effective color pixels are converted to the HSV color space, and their main color feature values are calculated. The target state color threshold is pre-written into the AR device configuration file according to the standard colors of the front and back sides of different operators. For example, the target color threshold of the damaged surface can be set to hue 10 to 25, saturation 80 to 255, and lightness 80 to 255, and the gray threshold of the destroyed surface can be set to hue 0 to 180, saturation 0 to 45, and lightness 60 to 200.
[0045] When the number of pixels within the effective area that fall within the corresponding target state color threshold reaches 80% of the total number of effective color pixels, and this condition is met for three consecutive frames, it is determined that the front color of the operator has switched from the pre-flip state to the target state required by the adjudication, thereby reducing misjudgments caused by operator hand obstruction, momentary reflection, or brief operator tilt. After the flipping is confirmed, the AR device immediately removes the color aperture at the grid position, ends the image acquisition task for the corresponding area, and sends a flipping confirmation message to the server. The message includes the adjudication task identifier, operator number, grid coordinates, the confirmed target state, and the confirmation timestamp. After receiving the confirmation message, the server updates the operator's state from pending flipping to damaged or destroyed, and writes the state change result into the deduction process record database. When the same adjudication result data packet contains multiple operators that need to be flipped, it waits for the flipping confirmation of each operator until all flipping tasks are completed, and then marks this round of adjudication as closed loop.
[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 wargaming device based on LED active guidance is provided, which corresponds one-to-one with the wargaming method based on LED active guidance described in the above embodiments. For example... Figure 7 As shown, the LED-guided wargaming simulation device includes: The parsing module 701 is used to parse the scenario file and drive the LED units of the target mesh to light up with the corresponding colors of the camp. It collects the inductance of the inductor sensor below the target mesh and determines whether the operator is placed in place based on the inductance. The loop continues until all operators are placed and the first situation coordinate table is output. The path planning module 702 is used to perform path planning based on the starting coordinates and target coordinates of the operators in the first situation coordinate table, obtain a path node sequence, and form a dynamic optical flow based on the path node sequence to guide the operator to move the entity operator along the dynamic optical flow. The operator movement module 703 is used to collect the inductance of the corresponding inductor sensor of each node in the path node sequence, track the movement progress of the physical operator along the dynamic optical flow, and turn off all LEDs in the dynamic optical flow when the physical operator is in place. It also updates the position of the corresponding physical operator in the first situation coordinate table to the target coordinate to obtain the second situation coordinate table, and sends an operator arrival confirmation message to the server at the same time.
[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 wargaming simulation method based on LED active guidance, characterized in that, include: The scenario file is parsed and the LED units of the target grid are driven to light up in the corresponding colors of the camp. The inductance of the inductor sensor below the target grid is collected and the operator is determined to be in place based on the inductance. The process is repeated until all operators are placed and the first situation coordinate table is output. Based on the starting coordinates and target coordinates of the operators in the first situation coordinate table, path planning is performed to obtain a path node sequence, and a dynamic optical flow is formed based on the path node sequence to guide the operator to move the entity operator along the dynamic optical flow; The inductance of the corresponding inductor sensor in each node of the path node sequence is collected, the movement progress of the entity operator along the dynamic optical flow is tracked, and when the entity operator is in place, all LEDs of the dynamic optical flow are turned off, and the position of the entity operator in the first situation coordinate table is updated to the target coordinate to obtain the second situation coordinate table. At the same time, an operator arrival confirmation message is sent to the server.
2. The wargaming method based on LED active guidance as described in claim 1, characterized in that, The parsing scenario file is used to drive the LED units of the target mesh to light up in the corresponding colors of the factions. The inductance value of the inductor sensor below the target mesh is collected, and the operator is determined to be in place based on the inductance value. This process is repeated until all operators are placed, and the first situation coordinate table is output, including: The scenario file is parsed and the target grid coordinates and faction attributes of each operator are extracted. The LED unit of the target grid corresponding to the current task unit is driven to light up in the faction-corresponding color. The inductance of the inductor sensor below the target grid is collected. When the change in the inductance value relative to the baseline exceeds a preset threshold, the operator is determined to be in place and the LED of the target grid is turned off; Write the operator number, target grid coordinates, and faction attributes of the placed operator into the first situation coordinate table, and trigger the LED lighting task queue to advance to the next task unit. Repeat this process until the entire queue is completed, and output the first situation coordinate table.
3. The wargaming method based on LED active guidance as described in claim 2, characterized in that, The step of performing path planning based on the starting coordinates and target coordinates of the operators in the first situation coordinate table to obtain a path node sequence, and forming a dynamic optical flow based on the path node sequence to guide the operator to move the entity operator along the dynamic optical flow, includes: The second hexagonal grid is obtained by assigning terrain weights to each node in the first hexagonal grid based on the terrain attribute table. Based on the starting coordinates and target coordinates of the operator in the first situation coordinate table, path planning is performed on the second hexagonal grid diagram to obtain a path node sequence, and color parameters are assigned to each node in the path node sequence. Based on the path node sequence and the color parameters of each node, the LEDs of each node are driven to light up in the corresponding color, and the LEDs at the starting coordinates and the target coordinates are driven to flash green at a preset frequency to form a dynamic light flow, guiding the operator to move the entity operator along the dynamic light flow.
4. The wargaming method based on LED active guidance as described in claim 3, characterized in that, The step of performing path planning on the second hexagonal grid based on the starting and target coordinates of the operators in the first situation coordinate table to obtain a path node sequence, and assigning color parameters to each node in the path node sequence, includes: Add the starting coordinates of the operators in the first situation coordinate table to the open list. Use the sum of the terrain weights of the current node and each of its neighboring nodes as the path cost and the Hex distance from the current node to the target coordinate as the heuristic value. Continuously expand the node with the lowest cost on the second hexagonal grid graph until the target coordinate node is selected from the open list to obtain the path node sequence. The terrain attribute table is queried based on each node in the path node sequence to obtain the terrain type of each node; Based on the terrain type of each node, color parameters are assigned to each node in the path node sequence according to the rule of assigning a constant green parameter to plain nodes, a flashing yellow parameter to mountain nodes, and a fast red parameter to nodes in enemy fire coverage areas.
5. The wargaming method based on LED active guidance as described in claim 4, characterized in that, The process involves collecting the inductance of the corresponding inductor sensor at each node in the path node sequence, tracking the movement progress of the entity operator along the dynamic optical flow, and when the entity operator reaches its position, turning off all LEDs in the dynamic optical flow. The position of the entity operator in the first situation coordinate table is then updated to the target coordinates to obtain the second situation coordinate table. Simultaneously, an operator arrival confirmation message is sent to the server, including: The inductance of the inductor corresponding to each node in the path node sequence is collected, and the difference between the inductance of each node and the corresponding baseline value is calculated to obtain the change value of the inductance of each node. Determine whether the change in inductance at the target coordinate exceeds a preset threshold. If it does, confirm that the entity operator is in place, turn off all LEDs in the dynamic optical flow, update the position record of the corresponding entity operator in the first situation coordinate table from the starting coordinate to the target coordinate, obtain the second situation coordinate table, and send an operator arrival confirmation message to the server.
6. The wargaming method based on LED active guidance as described in claim 5, characterized in that, After sending an operator arrival confirmation message to the server, the LED-guided wargame simulation method further includes: The second situation coordinate table is submitted to the server, and the positional relationship, faction attribute and unit type of each operator are adjudicated according to the adjudication rules to obtain the adjudication result data packet. Based on the adjudication result data packet, the grid coordinates of the operator that needs to be flipped are extracted, and the AR device is driven to project colored aperture markings on the corresponding grid positions on the physical map according to the grid coordinates; Collect the frontal color feature values of the operator in the labeled grid area, and compare the frontal color feature values with the target state color threshold; When the front color feature value falls within the target state color threshold range, the flipping is confirmed to be complete, the color aperture projection is canceled, and a flipping confirmation message is sent to the server.
7. A wargaming simulation device based on LED active guidance, characterized in that, The steps for implementing the LED-guided wargaming method as described in any one of claims 1 to 6 include: The parsing module is used to parse the scenario file and drive the LED units of the target grid to light up in the camp-corresponding color. It collects the inductance of the inductor sensor below the target grid and determines whether the operator is placed in place based on the inductance. The process is repeated until all operators are placed and the first situation coordinate table is output. The path planning module is used to perform path planning based on the starting coordinates and target coordinates of the operators in the first situation coordinate table, obtain a path node sequence, and form a dynamic optical flow based on the path node sequence to guide the operator to move the entity operator along the dynamic optical flow. The operator movement module is used to collect the inductance of the inductor sensor corresponding to each node in the path node sequence, track the movement progress of the entity operator along the dynamic optical flow, and when the entity operator is in place, turn off all LEDs in the dynamic optical flow, update the position of the entity operator in the first situation coordinate table to the target coordinate, obtain the second situation coordinate table, and send an operator arrival confirmation message to the server.
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 LED-guided wargaming 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 LED-guided wargaming 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 LED-guided wargaming method as described in any one of claims 1 to 6.