A launching method and device for building blocks
By judging and adjusting the position and current value of the emitter, the problem of inaccurate emission in traditional building block construction is solved, precise control and automated emission are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202411088115.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-08-09
AI Technical Summary
Traditional building block construction technology cannot accurately control the launch direction and force, resulting in inaccurate launch.
By determining whether the transmitter is at the preset transmission position, obtaining the transmission target position, generating a transmission control command, and adjusting the energized current value based on the electromagnetic comparison table to control the emission direction and force, achieving accurate emission.
Accurate control of the emitter is achieved, emission errors are reduced, user experience is improved, and the full automatic transmission is completed without manual intervention.
Smart Images

Figure CN118615721B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building block construction, and in particular to a launching method and a device used in building block construction. Background Art
[0002] Building blocks are usually cubic wooden or plastic solid toys, usually decorated with letters or pictures on each surface, allowing for different arrangements. Building blocks are loved by many men, women, young and old because they can exercise the flexibility of the hands and brain, develop intelligence and improve concentration.
[0003] When traditional building blocks involve ball games, track sports, car driving, etc., they usually change the state of motion by means of motors or elastic deformation. Although this method can change the general direction of motion, it cannot control the exact direction and position. Summary of the invention
[0004] In view of the above-mentioned defects, an embodiment of the present invention discloses a launching method and device for building blocks, which can accurately control the direction and strength of the launching.
[0005] A first aspect of an embodiment of the present invention discloses a launching method for building blocks, comprising:
[0006] In response to the launch instruction, it is determined whether the current launch body is located at a preset launch position; the launch body is a building block component to be launched, and the preset launch position is a starting position for providing the launch body with the launch instruction;
[0007] When the launcher is located at a preset launch position, obtaining a launch target position in the launch instruction, and generating a launch control instruction according to the launch target position;
[0008] Based on the launch control instruction, the launch object is controlled to launch according to the launch direction and launch force indicated in the launch control instruction.
[0009] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the determining whether the current emitter is located at a preset emission position includes:
[0010] Collecting pressure information of a preset launch position, and determining whether there is a projectile at the preset launch position according to the pressure information;
[0011] When there is an emitter, collecting current position image information of the emitter, and determining the position of the emitter according to the position image information;
[0012] Determine whether the emitter is located at a preset emission position according to the emitter position.
[0013] As an optional implementation, in the first aspect of the embodiment of the present invention, determining whether the emitter is located at a preset emission position according to the position of the emitter includes:
[0014] Acquire a pre-stored comparison image, wherein the comparison image has image information indicating a preset emission position, and generate a virtual coordinate image point in the comparison image according to the position of the emitter;
[0015] It is determined whether the virtual coordinate image point is within the range of the image information.
[0016] As an optional implementation manner, in the first aspect of the embodiment of the present invention, it also includes:
[0017] When the emitter is outside the preset launch position, the distance and azimuth relationship between the emitter and the preset launch position is calculated according to the position of the emitter and the preset launch position;
[0018] The position of the emitter is adjusted according to the distance and azimuth relationship so that the emitter is located within a preset emission position.
[0019] As an optional implementation manner, in the first aspect of the embodiment of the present invention, generating a launch control instruction according to the launch target position includes:
[0020] Calculate the distance and direction between the launch target position and the launch body to obtain the launch distance and launch direction;
[0021] The last transmitting direction is obtained, and the current value is calculated according to the last transmitting direction and the current transmitting direction, so as to adjust the magnetic flux direction according to the current current value, so that the magnetic flux direction is consistent with the transmitting direction.
[0022] As an optional implementation manner, in the first aspect of the embodiment of the present invention, calculating the current current value according to the last transmission direction and the current transmission direction includes:
[0023] Calculate the direction angle difference based on the last transmission direction and the current transmission direction, and obtain the azimuth relationship between the last transmission direction and the current transmission direction;
[0024] Obtaining a corresponding current adjustment value from a preset electromagnetic comparison table based on the direction angle difference and the azimuth relationship;
[0025] The last power-on current value corresponding to the last transmitting direction is obtained, and the current power-on current value is obtained according to the last power-on current value and the current adjustment value.
[0026] As an optional implementation manner, in the first aspect of the embodiment of the present invention, it also includes:
[0027] Receive a transmitter arrival signal fed back by a transmitter target position within a preset time, wherein the transmitter arrival signal includes transmitter reception information and transmitter position information; the transmitter reception information is generated by the transmitter target position when receiving the transmitter, and the transmitter position information is obtained by starting a target position image acquisition instruction to acquire a target position image of the transmitter when receiving the transmitter;
[0028] Obtaining the center position point of the launch target position, comparing the launch body position information with the center position point to calculate the position deviation, and recording the position deviation;
[0029] Statistics are taken for all recorded position deviations, and the ratio between the number of position offsets greater than a threshold and the total number of position deviations is calculated. When the ratio is greater than a set ratio, a launch calibration instruction is generated, and the launch calibration instruction is used to calibrate the launch direction and / or launch force.
[0030] A second aspect of an embodiment of the present invention discloses a launching device for building blocks, comprising:
[0031] Position determination module: used to determine whether the current launcher is located at a preset launch position in response to a launch instruction; the launcher is a building block component to be launched, and the preset launch position is a starting position provided to the launcher to execute the launch instruction;
[0032] Instruction generation module: used for obtaining the launch target position in the launch instruction when the launch object is located at the preset launch position, and generating a launch control instruction according to the launch target position;
[0033] The launch execution module is used to control the launch object to launch according to the launch direction and launch force indicated in the launch control instruction based on the launch control instruction.
[0034] As an optional implementation, in the second aspect of the embodiment of the present invention, the determining whether the current emitter is located at a preset emission position includes:
[0035] Collecting pressure information of a preset launch position, and determining whether there is a projectile at the preset launch position according to the pressure information;
[0036] When there is an emitter, collecting current position image information of the emitter, and determining the position of the emitter according to the position image information;
[0037] Determine whether the emitter is located at a preset emission position according to the emitter position.
[0038] As an optional implementation, in the second aspect of the embodiment of the present invention, determining whether the emitter is located at a preset emission position according to the position of the emitter includes:
[0039] Acquire a pre-stored comparison image, wherein the comparison image has image information indicating a preset emission position, and generate a virtual coordinate image point in the comparison image according to the position of the emitter;
[0040] It is determined whether the virtual coordinate image point is within the range of the image information.
[0041] As an optional implementation manner, in the second aspect of the embodiment of the present invention, it also includes:
[0042] When the emitter is outside the preset launch position, the distance and azimuth relationship between the emitter and the preset launch position is calculated according to the position of the emitter and the preset launch position;
[0043] The position of the emitter is adjusted according to the distance and azimuth relationship so that the emitter is located within a preset emission position.
[0044] As an optional implementation manner, in a second aspect of the embodiment of the present invention, generating a launch control instruction according to the launch target position includes:
[0045] Calculate the distance and direction between the launch target position and the launch body to obtain the launch distance and launch direction;
[0046] The last transmitting direction is obtained, and the current value is calculated according to the last transmitting direction and the current transmitting direction, so as to adjust the magnetic flux direction according to the current current value, so that the magnetic flux direction is consistent with the transmitting direction.
[0047] As an optional implementation manner, in the second aspect of the embodiment of the present invention, calculating the current current value according to the last transmission direction and the current transmission direction includes:
[0048] Calculate the direction angle difference based on the last transmission direction and the current transmission direction, and obtain the azimuth relationship between the last transmission direction and the current transmission direction;
[0049] Obtaining a corresponding current adjustment value from a preset electromagnetic comparison table based on the direction angle difference and the azimuth relationship;
[0050] The last power-on current value corresponding to the last transmitting direction is obtained, and the current power-on current value is obtained according to the last power-on current value and the current adjustment value.
[0051] As an optional implementation manner, in the second aspect of the embodiment of the present invention, it also includes:
[0052] Receive a transmitter arrival signal fed back by a transmitter target position within a preset time, wherein the transmitter arrival signal includes transmitter reception information and transmitter position information; the transmitter reception information is generated by the transmitter target position when receiving the transmitter, and the transmitter position information is obtained by starting a target position image acquisition instruction to acquire a target position image of the transmitter when receiving the transmitter;
[0053] Obtaining the center position point of the launch target position, comparing the launch body position information with the center position point to calculate the position deviation, and recording the position deviation;
[0054] Statistics are taken for all recorded position deviations, and the ratio between the number of position offsets greater than a threshold and the total number of position deviations is calculated. When the ratio is greater than a set ratio, a launch calibration instruction is generated, and the launch calibration instruction is used to calibrate the launch direction and / or launch force.
[0055] A third aspect of an embodiment of the present invention discloses an electronic device, comprising: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the launch method for building blocks disclosed in the first aspect of the embodiment of the present invention.
[0056] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the launching method for building blocks disclosed in the first aspect of an embodiment of the present invention.
[0057] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0058] In the embodiment of the present invention, in response to a launch instruction, it is determined whether the current launch body is located at a preset launch position. When the launch body is located at the preset launch position, the launch target position in the launch instruction is obtained, and a launch control instruction is generated, and then the launch body is controlled to launch according to the launch direction and launch force indicated in the launch control instruction; by detecting the position of the launch body before launch, it can help the launch body to be accurately launched to the target position, reduce the launch error, and calculate according to the current position information of the launch body and the target position information to be launched, to obtain the precise launch direction and launch force, which can well control the launch body to be launched according to the set launch path, help the precise launch body fall into the target position, and complete the whole process automatically without human intervention, thereby achieving precise control of the launch body while improving the user's real experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0060] Figure 1 It is a flow chart of a launching method applied to building block construction disclosed in an embodiment of the present invention;
[0061] Figure 2 It is a structural schematic diagram of a launching device applied to building blocks provided by an embodiment of the present invention;
[0062] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0064] It should be noted that the terms "first", "second", "third", "fourth", etc. in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present invention and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0065] The embodiment of the present invention discloses a launching method, device, electronic device and storage medium applied to building block construction. In the embodiment, in response to a launching instruction, it is determined whether a current launch body is located at a preset launching position. When the launch body is located at the preset launching position, the launching target position in the launching instruction is obtained, and a launching control instruction is generated, and then the launch body is controlled to launch according to the launching direction and launching force indicated in the launching control instruction. By detecting the position of the launch body before launching, the launch body can be helped to be accurately launched to the target position, and the launching error can be reduced. In addition, according to the current position information of the launch body and the target position information to be launched, the accurate launching direction and launching force are calculated, and the launch body can be well controlled to be launched according to the set launching path, and the accurate launch body is helped to fall into the target position. The whole process is completed automatically without manual intervention, and the real experience of the user is improved while realizing accurate control of the launch body.
[0066] Embodiment 1
[0067] See also Figure 1 , Figure 1 It is a flow chart of a launch method applied to building blocks disclosed in an embodiment of the present invention. Among them, the execution subject of the method described in the embodiment of the present invention is an execution subject composed of software and / or hardware, and the execution subject can receive relevant information by wired or / and wireless means, and can send certain instructions. Of course, it can also have certain processing functions and storage functions. The execution subject can control multiple devices, such as a remote physical server or cloud server and related software, or it can be a local host or server and related software that performs related operations on a device placed somewhere. In some scenarios, multiple storage devices can also be controlled, and the storage devices can be placed in the same place or different places as the devices. For example Figure 1 As shown, the launching method applied to building blocks comprises the following steps:
[0068] 101. In response to a launch instruction, determine whether a current launch body is located at a preset launch position; the launch body is a building block component to be launched, and the preset launch position is a starting position provided to the launch body to execute the launch instruction.
[0069] The launch command output in this step is the starting point of a launch cycle. The launch command can be triggered by a trigger such as a button or a touch screen, or it can be aborted in the previous launch cycle and enter the next launch cycle, then the system automatically generates a launch command. For example, when the building block is applied to ball building blocks, the launch body sphere, when the sphere is launched from position a of the first party to position b of the second party, it means that the launch cycle of the first party has been terminated, but the entire project process has not yet ended, and it enters the launch cycle of the second party. At this time, the system can automatically initiate a launch command.
[0070] In the embodiment, the preset launch position also calculates the starting position of the projectile in this launch cycle. The system sets a launch range in advance for the projectile to launch, so as to more accurately launch the projectile to the target position, and also ensure the accuracy and safety of the launch operation, and avoid accidents caused by launching at the wrong position. There is not necessarily only one preset launch position, and it can be set to multiple according to the situation. For example, in the ball battle building blocks, multiple different preset launch positions are set according to the pre-set ball movement route.
[0071] Specifically, the embodiment determines whether the emitter is located at a preset launch position by collecting pressure information of the preset launch position, and judging whether there is an emitter at the preset launch position based on the pressure information; when there is an emitter, collecting current position image information of the emitter, and determining the position of the emitter based on the position image information; and determining whether the emitter is located at the preset launch position based on the position of the emitter.
[0072] By collecting pressure information at the preset launch position, it is possible to directly determine whether there is a transmitter at that position, avoiding misjudgment caused by misjudgment or interference signals, and improving the accuracy of the system. After confirming the existence of the transmitter, further collect the image information of the current position of the transmitter, and use image recognition technology to determine the specific position of the transmitter, which can more accurately identify the position and posture of the transmitter, and provide more accurate data support for subsequent launch control. By combining pressure sensors and image recognition technology, the system can work stably in a variety of environments. For example, in the case of insufficient light or the presence of obstructions, the pressure sensor can still work normally; and when more accurate position information is needed, image recognition technology can provide supplementary information.
[0073] Furthermore, determining whether the emitter is located at a preset emission position based on the emitter position includes: obtaining a pre-stored comparison image, the comparison image having image information indicating the preset emission position, generating a virtual coordinate image point in the comparison image based on the emitter position; and judging whether the virtual coordinate image point is within the range of the image information.
[0074] Through the pre-stored comparison image, the system has a clear reference standard. The comparison image contains image information indicating the preset launch position, so that the system can know exactly where the emitter should be located. By matching the actual position of the emitter with the comparison image, it is possible to accurately determine whether the emitter is located at the preset position. The introduction of virtual coordinate image points allows the position of the emitter to be displayed in an intuitive manner in the comparison image. The user or the system can directly determine whether the emitter is in place by observing the position of the virtual coordinate image points in the comparison image. The embodiment uses a visual method to help quickly identify problems and improve the accuracy of operations. By converting the position of the emitter into virtual coordinate image points and accurately comparing them with the image information in the comparison image, misjudgments caused by environmental interference, sensor errors and other factors can be greatly reduced. This precise comparison mechanism improves the stability and reliability of the system.
[0075] 102. When the launcher is located at a preset launch position, a launch target position in the launch instruction is obtained, and a launch control instruction is generated according to the launch target position.
[0076] Once the launcher is confirmed to be in the correct position, the system needs to obtain the launch target position specified by the user. Based on the launch target position, the system calculates the optimal launch direction, force and other parameters, and generates corresponding launch control instructions.
[0077] When the emitter is outside the preset launch position, the distance and azimuth relationship between the emitter and the preset launch position is calculated based on the position of the emitter and the preset launch position; the position of the emitter is adjusted based on the distance and azimuth relationship so that the emitter is within the preset launch position.
[0078] In the above, first clarify the current position and preset launch position of the emitter. Assuming that the current position of the emitter is p(x1, y1, z1) and the preset launch position is Q(x2, y2, z2), the formula d= can be used in distance calculation. , the azimuth angle can be calculated from the two-dimensional space by θ=arctan2(y2-y1,x2-x1).
[0079] The launch control instructions of the embodiment include the launch distance, the launch direction and the launch force. The launch distance and the launch direction are obtained by calculating the distance and the orientation between the launch target position and the launch body; the last launch direction is obtained, and the current current value is calculated according to the last launch direction and the current launch direction, so as to adjust the magnetic flux direction according to the current current value, so that the magnetic flux direction is consistent with the launch direction.
[0080] The accurate calculation of the launch distance and launch direction of the embodiment is the basis for ensuring that the projectile can accurately reach the target position. The last launch direction corresponds to the last magnetic flux. In this embodiment, the purpose is to control the direction of movement of the projectile by changing the size or polarity of the magnetic flux. Therefore, it is necessary to know the last launch direction and the corresponding last magnetic flux value in advance. There is a direct correlation between the current value and the magnetic flux direction. In the electromagnetic launch system, the direction and intensity of the magnetic flux can be changed by adjusting the current. According to the difference between the last launch direction and the current launch direction, the current value that needs to be adjusted is calculated. By adjusting the current value, the system can change the distribution and intensity of the magnetic field in the electromagnetic launch device, and then adjust the direction of the magnetic flux. The goal is to make the direction of the magnetic flux this time consistent with the launch direction to ensure that the projectile can move along the correct trajectory. Secondly, according to the launch distance, the corresponding launch force can be obtained from the correspondence table set in advance.
[0081] 103. Based on the launch control instruction, control the launch object to launch according to the launch direction and launch force indicated in the launch control instruction.
[0082] Furthermore, the embodiment also includes receiving a transmitter arrival signal fed back from a transmitting target position within a preset time, wherein the transmitter arrival signal includes transmitter reception information and transmitter position information; the transmitter reception information is generated by the transmitting target position when the transmitter is received, and the transmitter position information is obtained by starting a target position image acquisition instruction to acquire a target position image of the transmitter when the transmitter is received; obtaining a center position point of the transmitting target position, comparing the transmitter position information with the center position point to calculate a position deviation, and recording the position deviation; performing statistics on all recorded position deviations, calculating a ratio between the number of position deviations greater than a threshold and the number of all position deviations, and when the ratio is greater than a set ratio, generating a transmitting calibration instruction, wherein the transmitting calibration instruction is used to calibrate the transmitting direction and / or transmitting force.
[0083] The system waits for and receives the emitter arrival signal transmitted back from the launch target position within a preset time, including the emitter reception information and the emitter position information. The emitter reception information is generated when the emitter is successfully received at the launch target position, indicating that the emitter has reached the target area. The emitter position information is obtained by starting the target position image acquisition instruction and acquiring the target position image of the emitter when the emitter is received, providing the specific position data of the emitter at the target position. Exemplarily, the system can select the center position point of the launch target position as the ideal position for the emitter to arrive, compare the emitter position information with the center position point, and determine the position deviation by calculating the difference between the two. The position deviation is recorded for subsequent analysis and calibration. The system counts all recorded position deviations to evaluate the accuracy and consistency of the launch, and calculates the ratio between the number of position deviations greater than the threshold and the number of all position deviations. This ratio reflects the degree and frequency of the launch deviation from the ideal position. When this ratio is greater than the set ratio, the system considers that calibration is required. At this time, a launch calibration instruction is generated, which is intended to adjust the launch direction and / or launch force to improve the accuracy of the launch.
[0084] Through the feedback mechanism of receiving the arrival signal of the transmitter and calculating the position deviation, the closed-loop control of the launch process is realized, which can timely detect and correct the launch deviation and improve the accuracy of the launch. The position deviation can be automatically counted and the calibration instructions can be generated without manual intervention. This reduces the complexity of operation, improves work efficiency, and ensures the timeliness and accuracy of calibration. Based on the statistics and analysis of a large amount of actual launch data, the system can more accurately evaluate the launch performance and formulate calibration strategies accordingly. The data-driven method makes the calibration more scientific and reasonable. And by regularly calibrating the launch direction and launch strength, the system can ensure that the launcher can always accurately reach the predetermined target position, improve the reliability and stability of the launch, reduce the failure rate and loss, and enhance the user experience.
[0085] Embodiment 2
[0086] See also Figure 2 , Figure 2 Schematic diagram of a launching device for building blocks disclosed in an embodiment of the present invention. Figure 2As shown, the launch device applied to building block construction may include: a position judgment module 201, an instruction generation module 202 and a launch execution module 203, wherein the position judgment module 201: is used to respond to the launch instruction and judge whether the current launch body is located at a preset launch position; the launch body is a building block component to be launched, and the preset launch position is a starting position for providing the launch body with the execution of the launch instruction; the instruction generation module 202: is used to obtain the launch target position in the launch instruction when the launch body is located at the preset launch position, and generate a launch control instruction according to the launch target position; the launch execution module 203: is used to control the launch body to launch according to the launch direction and launch force indicated in the launch control instruction based on the launch control instruction.
[0087] In the position judgment module 201, it is judged whether the current emitter is located at the preset emission position, including: collecting pressure information of the preset emission position, and judging whether there is an emitter at the preset emission position according to the pressure information; when there is an emitter, collecting the current position image information of the emitter, and determining the position of the emitter according to the position image information; and determining whether the emitter is located at the preset emission position according to the position of the emitter.
[0088] Furthermore, determining whether the emitter is located at a preset emission position based on the emitter position includes: obtaining a pre-stored comparison image, the comparison image having image information indicating the preset emission position, generating a virtual coordinate image point in the comparison image based on the emitter position; and judging whether the virtual coordinate image point is within the range of the image information.
[0089] Based on this, the embodiment may further include a position adjustment module, which is used to calculate the distance and azimuth relationship between the emitter and the preset launch position based on the position of the emitter and the preset launch position when the emitter is outside the preset launch position; and adjust the position of the emitter based on the distance and azimuth relationship so that the emitter is located within the preset launch position.
[0090] In the instruction generation module 202, a launch control instruction is generated according to the launch target position, including: calculating the distance and direction between the launch target position and the launch body to obtain the current launch distance and launch direction; obtaining the last launch direction, and calculating the current power-on value according to the last launch direction and the current launch direction, so as to adjust the current magnetic flux direction according to the current power-on current value, so that the current magnetic flux direction is consistent with the launch direction.
[0091] Furthermore, the above-mentioned method of calculating the current value according to the last transmission direction and the current transmission direction includes: calculating the direction angle difference according to the last transmission direction and the current transmission direction, and obtaining the azimuth relationship between the last transmission direction and the current transmission direction; obtaining the corresponding current adjustment value from a preset electromagnetic comparison table based on the direction angle difference and the azimuth relationship; obtaining the last power-on current value corresponding to the last transmission direction, and obtaining the current power-on current value according to the last power-on current value and the current adjustment value.
[0092] The embodiment also includes a feedback mechanism module, a deviation calculation module and a launch calibration module. The feedback mechanism module is used to receive a transmitter arrival signal fed back from a launch target position within a preset time, wherein the transmitter arrival signal includes transmitter reception information and transmitter position information. The transmitter reception information is generated by the launch target position when the transmitter is received, and the transmitter position information is obtained by starting a target position image acquisition instruction to capture a target position image of the transmitter when the transmitter is received. The deviation calculation module is used to obtain a center position point of the launch target position, compare the transmitter position information with the center position point to calculate a position deviation, and record the position deviation. The launch calibration module is used to count all recorded position deviations, calculate the ratio between the number of position deviations greater than a threshold and the number of all position deviations, and when the ratio is greater than the set ratio, generate a launch calibration instruction, and the launch calibration instruction is used to calibrate the launch direction and / or launch force.
[0093] Embodiment 3
[0094] See also Figure 3 , Figure 3 Schematic diagram of the structure of an electronic device disclosed in an embodiment of the present invention. The electronic device may be a computer, a server, etc. Of course, in certain circumstances, it may also be a smart device such as a mobile phone, a tablet computer, a monitoring terminal, and an image acquisition device with processing functions. Figure 3 As shown, the electronic device may include:
[0095] A memory 301 storing executable program codes;
[0096] a processor 302 coupled to the memory 301;
[0097] The processor 302 calls the executable program code stored in the memory 301 to execute part or all of the steps in the launching method applied to building block construction in the first embodiment.
[0098] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute part or all of the steps in the launching method applied to building block construction in the first embodiment.
[0099] The embodiment of the present invention further discloses a computer program product, wherein when the computer program product is run on a computer, the computer is enabled to execute part or all of the steps in the launching method applied to building block construction in the first embodiment.
[0100] An embodiment of the present invention further discloses an application publishing platform, wherein the application publishing platform is used to publish a computer program product, wherein when the computer program product runs on a computer, the computer executes part or all of the steps in the launch method applied to building block construction in embodiment one.
[0101] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the processes does not necessarily mean 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.
[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place or distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0103] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a memory and includes several requests to enable a computer device (which can be a personal computer, server or network device, etc., specifically a processor in a computer device) to perform some or all steps of the method described in each embodiment of the present invention.
[0105] In the embodiments provided by the present invention, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0106] A person of ordinary skill in the art may understand that part or all of the steps in the various methods of the embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, the storage medium including a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically-erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0107] The above is a detailed introduction to the launch method, device, electronic device and storage medium for building blocks disclosed in the embodiments of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A launching method for building blocks, characterized in that: include: In response to the launch instruction, determining whether the current launch object is located at a preset launch position; The launcher is a building block component to be launched, and the preset launch position is a starting position for providing the launcher with a launch instruction; When the launcher is located at the preset launch position, the launch target position in the launch instruction is obtained, and the distance and azimuth between the launch target position and the launcher are calculated to obtain the launch distance and launch direction of this time; the last launch direction is obtained, the direction angle difference is calculated according to the last launch direction and the current launch direction, and the azimuth relationship between the last launch direction and the current launch direction is obtained; based on the direction angle difference and the azimuth relationship, the corresponding current adjustment value is obtained from the preset electromagnetic comparison table; the last power-on current value corresponding to the last launch direction is obtained, and the current power-on current value is obtained according to the last power-on current value and the current adjustment value, so as to adjust the current magnetic flux direction according to the current power-on current value, so that the current magnetic flux direction is consistent with the launch direction; the distance and azimuth between the launch target position and the launcher are calculated to obtain the launch distance and launch direction of this time; the last launch direction is obtained, and the current power-on current value is calculated according to the last launch direction and the current launch direction, so as to adjust the current magnetic flux direction according to the current power-on current value, so that the current magnetic flux direction is consistent with the launch direction; Based on the launch control instruction, the launch object is controlled to launch in the launch direction and launch force indicated in the launch control instruction; Receive a transmitter arrival signal fed back by a transmitter target position within a preset time, wherein the transmitter arrival signal includes transmitter reception information and transmitter position information; the transmitter reception information is generated by the transmitter target position when receiving the transmitter, and the transmitter position information is obtained by starting a target position image acquisition instruction to acquire a target position image of the transmitter when receiving the transmitter; Obtaining the center position point of the launch target position, comparing the launch body position information with the center position point to calculate the position deviation, and recording the position deviation; Statistics are taken for all recorded position deviations, and the ratio between the number of position offsets greater than a threshold and the total number of position deviations is calculated. When the ratio is greater than a set ratio, a launch calibration instruction is generated, and the launch calibration instruction is used to calibrate the launch direction and / or launch force.
2. The transmitting method according to claim 1, characterized in that: The determining whether the current emitter is located at a preset emission position includes: Collecting pressure information of a preset launch position, and determining whether there is a projectile at the preset launch position according to the pressure information; When there is an emitter, collecting current position image information of the emitter, and determining the position of the emitter according to the position image information; Determine whether the emitter is located at a preset emission position according to the emitter position.
3. The transmitting method according to claim 2, characterized in that: The determining whether the emitter is located at a preset emission position according to the emitter position includes: Acquire a pre-stored comparison image, wherein the comparison image has image information indicating a preset emission position, and generate a virtual coordinate image point in the comparison image according to the position of the emitter; It is determined whether the virtual coordinate image point is within the range of the image information.
4. The transmitting method according to claim 3, characterized in that: Also includes: When the emitter is outside the preset launch position, the distance and azimuth relationship between the emitter and the preset launch position is calculated according to the position of the emitter and the preset launch position; The position of the emitter is adjusted according to the distance and azimuth relationship so that the emitter is located within a preset emission position.
5. A launching device for building blocks, used to execute the launching method for building blocks according to any one of claims 1 to 4, characterized in that: include: Position determination module: used to determine whether the current launcher is located at a preset launch position in response to a launch instruction; The launcher is a building block component to be launched, and the preset launch position is a starting position for providing the launcher with a launch instruction; Instruction generation module: used for obtaining the launch target position in the launch instruction when the launch object is located at the preset launch position, and generating a launch control instruction according to the launch target position; The launch execution module is used to control the launch object to launch according to the launch direction and launch force indicated in the launch control instruction based on the launch control instruction.
6. An electronic device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the launching method for building blocks according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute the launching method for building blocks according to any one of claims 1 to 4.
