WO2021134228A1 - Detection method, detection device, detection assembly, and storage medium - Google Patents

Detection method, detection device, detection assembly, and storage medium Download PDF

Info

Publication number
WO2021134228A1
WO2021134228A1 PCT/CN2019/129962 CN2019129962W WO2021134228A1 WO 2021134228 A1 WO2021134228 A1 WO 2021134228A1 CN 2019129962 W CN2019129962 W CN 2019129962W WO 2021134228 A1 WO2021134228 A1 WO 2021134228A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
detection
impact
type
light
Prior art date
Application number
PCT/CN2019/129962
Other languages
French (fr)
Chinese (zh)
Inventor
董群
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2019/129962 priority Critical patent/WO2021134228A1/en
Priority to CN201980047477.6A priority patent/CN112469484B/en
Publication of WO2021134228A1 publication Critical patent/WO2021134228A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F9/00Games not otherwise provided for
    • A63F9/02Shooting or hurling games
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L5/00Apparatus for, or methods of, measuring force, work, mechanical power, or torque, specially adapted for specific purposes
    • G01L5/0052Apparatus for, or methods of, measuring force, work, mechanical power, or torque, specially adapted for specific purposes measuring forces due to impact

Definitions

  • This application relates to the technical field of game props, in particular to a detection method, a detection device, a detection component, and a non-volatile computer-readable storage medium.
  • robots can fire cannonballs at the base and other field props.
  • the designated detection area of the field prop When the designated detection area of the field prop is hit, it can be regarded as causing damage to the field props, and hit by different types of cannonballs can be regarded as causing different damage.
  • the field props generally only judge the type of shells by judging the strength of the impact received in the detection area. Simply detecting the impact will be affected by the flying speed of the shell itself, resulting in fast speed but low mass shells and slow speed and large mass.
  • the impact strength of the projectiles when they hit the detection area is basically similar, so that it is impossible to accurately distinguish the types of projectiles, resulting in errors in the calculation of the damage value, and affecting the fairness of the game.
  • the embodiments of the present application provide a detection method, a detection device, a detection component, and a non-volatile computer-readable storage medium.
  • the embodiment of the present application provides a detection method, the detection method includes: receiving the optical signal and impact emitted by the beating device; acquiring the optical information and impact information corresponding to the optical signal; and according to the optical information and the impact The information determines the type of the striking device.
  • the embodiment of the present application also provides a detection device, which includes a light detection component, a pressure detection component, and a processing chip.
  • the light detection element is used to receive the light signal emitted by the striking device to generate light information;
  • the pressure detection element is used to receive the impact of the striking device to generate impact information;
  • the processing chip is used to obtain the Optical information and impact information; and determining the type of the beating device based on the optical information and the impact information.
  • the embodiment of the present application also provides a detection assembly, which includes a base and a detection device, and the detection device is installed on the base.
  • the detection device includes a light detection component, a pressure detection component and a processing chip.
  • the light detection element is used to receive the light signal emitted by the striking device to generate light information;
  • the pressure detection element is used to receive the impact of the striking device to generate impact information;
  • the processing chip is used to obtain the Optical information and impact information; and determining the type of the beating device based on the optical information and the impact information.
  • the embodiment of the present application also provides a non-volatile computer-readable storage medium containing computer-executable instructions.
  • the processor is caused to execute a detection method, and the detection method includes: receiving a light signal emitted by a striking device and an impact; acquiring the light signal Corresponding light information and impact information; and determining the type of the striking device according to the light information and the impact information.
  • the pressure detection element receives the impact of the beating device to obtain impact information
  • the light detection element is used to obtain the optical signal emitted by the beating device.
  • Generate light information and then determine the type of the beating device based on the light information and impact information. Compared with simply relying on the impact information to determine the type of the beating device, it is more accurate to determine the type of the beating device, thereby reducing the damage value. Calculate the error to ensure the fairness of the game.
  • Fig. 1 is a schematic flowchart of a detection method according to some embodiments of the present application.
  • Fig. 2 is a schematic diagram of the structure of the detection assembly and the beating device of some embodiments of the present application.
  • Fig. 3 is a three-dimensional schematic diagram of a detection device according to some embodiments of the present application.
  • Fig. 4 is a schematic cross-sectional view of the detection device in Fig. 3 along the line IV-IV.
  • 5 to 9 are schematic flowcharts of detection methods in some embodiments of the present application.
  • FIG. 10 is a schematic diagram of the connection between a processor and a computer-readable storage medium in some embodiments of the present application.
  • first and second are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the present application, “multiple” means two or more than two, unless otherwise specifically defined.
  • connection should be understood in a broad sense, unless otherwise clearly specified and limited.
  • it can be a fixed connection or a detachable connection.
  • Connected or integrally connected it can be mechanically connected, or electrically connected or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal communication of two components or the interaction of two components relationship.
  • connection should be understood according to specific circumstances.
  • An embodiment of the present application provides a detection method, and the detection method includes:
  • the embodiment of the present application further provides a detection device 100, which includes a light detection component 10, a pressure detection component 20 and a processing chip 30.
  • the light detecting element 10 is used to receive the light signal emitted by the striking device 2000 to generate light information.
  • the pressure detecting member 20 is used to receive the impact of the beating device 2000 to generate impact information.
  • the processing chip 30 is used to obtain light information and impact information, and determine the type of the beating device 2000 based on the light information and impact information.
  • step 011 can be implemented by the light detecting element 10 in cooperation with the pressure detecting element 20.
  • Step 012 and step 013 can be implemented by the processing chip 30.
  • the detection assembly 1000 of the embodiment of the present application includes a base 200 and a detection device 100.
  • the detection component 1000 can be used as a field prop in a robot competition.
  • a robot competition can be a shooting competition with two opponents.
  • the detection component 1000 can be a base, an outpost, a defensive tower, etc., set on the competition field.
  • a robot or a launching device can be used.
  • the firing device 2000 hits the detection component 1000. After the detection component 1000 is hit, it can be considered that the detection component 1000 is injured, or the enemy is injured, or the score of our side increases.
  • a launching device such as a turret, a robot, etc.
  • a shooting device 2000 such as darts, bullets, projectiles, cannonballs, etc.
  • the hitting device 2000 itself is provided with a light emitting element 210.
  • 210 can emit light signals (the light signals include at least one of infrared light and visible light, etc.), and the striking device 2000 will be emitted by the turret to strike the enemy's detection component 1000 (ie, base, outpost, defense tower), etc.
  • the enemy's detection component 1000 ie, base, outpost, defense tower
  • the detection device 100 is installed on the base 200.
  • the detection device 100 can be installed at a position close to the top of the base 200 to increase the installation height of the detection device 100, facilitate the robot to aim, and make it easier for spectators or contestants to view the detection device 100.
  • One detection device 100 can be installed on one base 200; multiple detection devices 100 can also be installed on one base 200.
  • the orientation of the multiple detection devices 100 can be different, or the installation heights of the multiple detection devices 100 can be different. No restrictions.
  • one detection device 100 is installed on a base 200 of the detection device 100.
  • the dart When the dart flies to the defensive tower (specifically, to the detection device 100 installed on the base 200), it will continuously emit light signals.
  • the light detection element 10 After receiving the light signal, and then after a period of time (for example, 5 milliseconds (ms), 7 ms, 10 ms, 20 ms, etc.), the beating device 2000 hits the pressure detecting member 20, and the pressure detecting member 20 detects the impact of the beating device 2000.
  • the light detecting element 10 may specifically be one or more photodiodes.
  • the light detecting element 10 generates an electrical signal after detecting a specific light signal, and the electrical signal is the light information generated according to the light signal.
  • the pressure detecting member 20 may specifically be one or more pressure sensors, and the impact information (such as whether the impact is received, the impact strength, etc.) can be obtained when the impact of the impact device 2000 is received.
  • the detecting device 100 when the pressure detecting element 20 detects an impact within a period of time when the light detecting element 10 detects the light signal, the detecting device 100 is regarded as detecting the impact of the striking device 2000.
  • the detection device 100 For any other objects that cannot emit the above-mentioned specific light signal (such as bullets, projectiles, etc.) without the light emitting element 210, because the light detecting element 10 fails to detect the corresponding light signal, even if other objects hit the pressure detecting element 20,
  • the detection device 100 is not regarded as a hit by the hitting device 2000 either. Therefore, by additionally providing the light detecting element 10, the detecting device 100 can distinguish between the hit of the hitting device 2000 and the hits of other objects, and no misjudgment will occur.
  • the pressure detection member 20 receives the impact of the beating device 2000 to obtain impact information
  • the light detection member 10 is used to obtain the optical signal emitted by the beating device 2000.
  • Generate light information and then determine the type of the beating device 2000 based on the light information and the impact information.
  • the calculation error of the damage value ensures the fairness of the game.
  • step 013 includes:
  • 0131 Determine the type of the beating device 2000 according to the coded information and impact information contained in the optical information.
  • the processing chip 30 is also used to determine the type of the striking device 2000 according to the code information and the impact information contained in the optical information.
  • step 0131 can be implemented by the processing chip 30.
  • the optical signal (ie, infrared light) emitted by the striking device 2000 is modulated, for example, encoded by two methods: Pulse Width Modulation (PWM) and Pulse Position Modulation (PPM) modulation.
  • PWM represents the high level and the low level with the duty cycle of the transmitted carrier.
  • PPM expresses the high level and low level by the position where the infrared carrier is emitted.
  • the carrier is transmitted and the carrier is not transmitted for the same time, that is, the duration of the high level and the duration of the low level are the same.
  • the coded information can be included in the optical information generated from the optical signal.
  • the coded information can be binary coded information such as ASCII code.
  • ASCII code binary coded information
  • the high level is 1 and the low level is 0 to modulate to generate binary code as the first coded information; for another example, the high level is 0, and the low level is 0. 1 Modulation generates binary code as coded information.
  • the binary code information may include 8-bit codes or include more than 8-bit codes, such as 16-bits, 32-bits, and so on. Longer code digits can further improve the anti-interference ability of the optical signal, and prevent the external interference light from being misrecognized by reception.
  • the processing chip 30 determines the type of the beating device 2000 based on the encoded information and the impact information.
  • the code information includes an 8-bit code, where the code information includes type information and number information.
  • the first 2 bits can be used to indicate the type information of the hitting device 2000, such as "00" for the first type of dart, and "01" for The second type of darts, "10” means the third type of darts, and "11” means the fourth type of darts; the last 6 digits are used to indicate the ID number of each dart, and each dart can be associated with a unique ID number to prevent
  • the type information and number information in the obtained optical information are the same, and thus are mistakenly identified as one
  • the code information includes an 8-bit code, where the code information includes type information and number information.
  • the first 2 bits can be used to indicate the type information of the hitting device 2000, such as "00" for the first type of dart, and "01" for The second type of darts, "10” means the third type
  • dart a and dart b fly to the detection device 100 at the same time . It is also possible to distinguish between dart a and dart b according to the optical information with different number information, thereby preventing dart a and dart b from being recognized as the same dart.
  • the coded information of the optical signal is different, the infrared light of the same frequency or waveband can also carry different coded information.
  • the light emitting element 210 only needs to emit infrared light of the same frequency or waveband, and the light detecting element 10 only needs to be able to It is sufficient to receive infrared light of the same frequency or waveband. Compared with transmitting or receiving infrared light of multiple frequencies or wavebands, the hardware configuration requirements of the light emitting element 210 and the light detecting element 10 are lower.
  • the binary coded information includes at least one low-level signal and at least one high-level signal.
  • the binary code information contains at least one bit of low-level signal code and at least one bit of high-level signal code, that is, both high-level and low-level signals exist in the coded information.
  • the carrier is high level (ie, the code is "1"), and from when the carrier is not transmitted to when the carrier is low level (ie, the code is "0"), if the coded information of dart c is "00000000" ,
  • the light detecting element 10 will always generate a low-level signal when it does not receive the light signal.
  • the coded information "00000000” acquired at this time is acquired based on the noise signal, so that the false dart c (that is, the actual dart c) has been identified.
  • Hit the dart c) of the detection device 100 and if there is always infrared light with the same frequency as the optical signal emitted by the beating device 2000, if the code information of the dart d is "11111111", the light detection device 10 will always receive The infrared light (ie, noise signal) of the same frequency from the outside continuously generates a high-level signal, so that the false dart d has been identified. Therefore, when there are both high-level and low-level signals in the encoded information, it is easier to be distinguished from external noise signals, so that the optical signal 0 emitted by the striking device 2000 can be more accurately recognized.
  • step 013 further includes:
  • the processing chip 30 is also used to determine the type of the hitting device 2000 according to the coded information within the predetermined time period when the detection device 100 obtains the optical information, and the detection device 100 obtains the impact information. If the impact information is not acquired within the predetermined time period of the optical information, it is determined that the impact of the impact device 2000 is invalid. In other words, step 01311 and step 01312 can be implemented by the processing chip 30.
  • the detection device 100 further includes a base 40 and a cover 50.
  • the pressure detection element 20, the light detection element 10, and the cover 50 are all arranged on the base 40.
  • the light detection element 10 can be directly mounted on the base 40, and the light detection element 10 can also be mounted on the cover 50, and then indirectly mounted on the base 40 through the cover 50.
  • the light detecting element 10 is installed in the cover 50, and the cover 50 is installed on the base 40.
  • the cover body 50 is formed with a receiving cavity 51, the whole cover body 50 may be in the shape of a hollow cuboid with an opening on one side, and the hollow part may be used as the receiving cavity 51.
  • the cover body 50 may be welded by a plurality of sheet metal parts, and the sheet metal parts may be made of opaque material, and external light cannot pass through the sheet metal parts and enter the receiving cavity 51.
  • the cover 50 is provided with a light opening 52, and the light signal can enter the receiving cavity 51 from the light opening 52.
  • the number of the cover 50 can be multiple, such as two, three, four, etc., which are not limited here. .
  • the two cover bodies 50 are located on opposite sides of the pressure detecting member 20, and the two light-passing openings 52 of the two cover bodies 50 are arranged opposite to each other, and both face the pressure detecting member 20, so that it is preset from above the pressure detecting member 20.
  • the range (the preset range is determined according to the height h of the light opening 52 perpendicular to the base 40 and the width w parallel to the base 40) that the light signal emitted by the object to be measured can enter the containing cavity 51 from the light opening 52, and light detection
  • the component 10 is arranged in the receiving cavity to receive light signals entering the receiving cavity 51 from the light opening 52, and light signals emitted from any objects in the remaining positions will be blocked by the cover 50 and cannot reach the receiving cavity 51.
  • the striking device 2000 When the striking device 2000 strikes the detecting device 100, the striking device 2000 first enters the preset range above the pressure detecting element 20, and at this time, the light detecting element 10 first receives the light signal emitted by the striking device 2000 to generate light Then, after a predetermined period of time, the striking device 2000 will hit the pressure detecting element 20, and the pressure detecting element 20 will generate impact information. It can be understood that if the light detecting element 10 receives the light signal emitted by the striking device 2000 to generate light information within a predetermined period of time (for example, 5ms, 7ms, 10ms, 20ms, etc.), the striking device 2000 hits the pressure detecting element 20, It means that the beating device 2000 has indeed hit the detection component 1000.
  • a predetermined period of time for example, 5ms, 7ms, 10ms, 20ms, etc.
  • the type and ID number of the beating device 2000 can be determined according to the code information contained in the optical information, so as to accurately calculate the damage value caused by the beating device 2000.
  • no impact information is received, which means that the striking device 2000 passes over the pressure detecting element 20, and Without the impact pressure detecting member 20, it can be determined that the impact of the impact device 2000 is invalid, and the damage value that the component 1000 will not receive is detected. In this way, it can be accurately determined whether the beating device 2000 is effective in hitting the detection component 1000, and the type of the beating device 2000 can be determined to calculate the damage value caused by the beating device 2000.
  • the detection method further includes:
  • the detection device 100 Within the predetermined time period when the detection device 100 obtains the optical information, if the impact information is acquired, the detection device 100 shields all impacts to the detection device 100 within the preset time period after the impact information is acquired.
  • the processing chip 30 is also used for the detection device 100 to obtain the optical information within a predetermined period of time, if the impact information is obtained, the detection device 100 shields all pairs from the preset period of time after the impact information is obtained. The collision of the device 100 is detected.
  • step 014 can be implemented by the processing chip 30.
  • the pressure detecting element 20 obtains the impact information
  • the striking of the striking device 2000 is effective, but because the striking device 2000 continuously emits light Signal, if there are other objects (such as bullets launched by the robot) without the light emitting element 210 that hit the pressure detecting element 20 within the predetermined period of time, the light detecting element 10 will acquire multiple pieces of the same light information and multiple pieces of light information.
  • each impact information may have corresponding optical information, so that the impact of other objects is regarded as the impact of the striking device 2000 to calculate the damage value, resulting in an error in the calculation of the damage value.
  • the detection device 100 will shield the impact information after the first impact information obtained, where "shielding" can be understood as the pressure detection element 20 will receive the impact information.
  • the first impact information obtained is regarded as the impact information of the striking device 2000, and other impact information is regarded as the impact of other objects Information; "shielding" can also be understood as a predetermined period of time that the light detection element 10 obtains light information, after obtaining the first impact information, the pressure detection element 20 is closed to stop detecting the impact of other objects.
  • each beating device 2000 has a unique identification number (ie, number information), the optical information of different beating devices 2000 is different, and the processing chip 30 obtains multiple identical optical information. Later, multiple identical optical information will be identified as one striking device 2000, so that the impact information after the first impact information obtained can be prevented from being used as the impact of the striking device 2000 without shielding the impact information from other objects. To calculate the damage value.
  • step 013 further includes:
  • Step 0132 Determine the type of the striking device 2000 according to the waveband information and impact information of the optical signal contained in the optical information.
  • the processing chip 30 is also used to determine the type of the striking device 2000 according to the wavelength information and impact information of the optical signal contained in the optical information.
  • step 0132 can be implemented by the processing chip 30.
  • the light emitting element 210 of the striking device 2000 can emit light signals of a variety of different wavebands, and correspondingly, the light detecting element 10 can also receive light signals of the multiple different wavebands, wherein the light signal of each waveband is Corresponding to a type of beating device 2000, the processing chip 30 can determine the type of the beating device 2000 according to the band information of the optical signal and the impact information, so as to accurately calculate the damage value caused by the beating device 2000.
  • the detection method further includes:
  • 015 Determine the damage value suffered by the detection component 1000 equipped with the detection device 100, and the damage value corresponds to the type of the hitting device 2000.
  • the processing chip 30 is also used to determine the damage value suffered by the detection component 1000 equipped with the detection device 100, and the damage value corresponds to the type of the beating device 2000.
  • step 015 can be implemented by the processing chip 30.
  • the processing chip 30 can determine the type of the beating device 2000 according to the light information and the impact information, and each type of the beating device 2000 hits the detection component 1000 When the time, the damage value that can be brought to the detection component 1000 is also different.
  • the processing chip 30 can determine the damage value of the detection component 1000 according to the type of the beating device 2000 , Thereby deducting the blood volume of the detection component 1000 that is the same as the damage value, where the blood volume is the maximum damage value that the detection component 1000 can withstand when it is deemed to be destroyed.
  • the beating device 2000 stops continuously emitting light signals after hitting the detection assembly 1000.
  • the beating device 2000 must continuously emit light signals during the flight, and the light signals include visible light signals used to indicate the camp to which the beating device 2000 belongs (for example, emitting a red light indicates that the beating device 2000 is emitted by the red camp, Emitting blue light indicates that the percussion device 2000 is emitted by the blue camp), so that the audience can intuitively understand the camp described by the percussion device 2000.
  • the optical signal also includes an infrared light signal for determining the type of the striking device 2000, and the code information corresponding to the infrared light signal contains type information to determine the type of the striking device 2000. After the beating device 2000 hits the pressure detecting member 20, it indicates that the task of the beating device 2000 has been completed.
  • the beating device 2000 can stop emitting light signals, for example, turn off the visible light that emits visible light signals, and turn off the infrared light signals. Infrared light.
  • the beating device 2000 can detect the acceleration change of the beating device 2000 through an internal acceleration sensor. When the acceleration suddenly becomes very small or even zero, it can be determined that the beating device 2000 has hit an object. You can stop emitting light signals.
  • a non-volatile computer-readable storage medium 3000 containing computer-executable instructions 310 according to an embodiment of the present application.
  • the processor 320 executes the detection method of any one of the foregoing embodiments.
  • the processor 320 when the computer-readable instruction 310 is executed by the processor 320, the processor 320 is caused to perform the following steps:
  • the processor 320 when the computer-readable instruction 310 is executed by the processor 320, the processor 320 is caused to perform the following steps:
  • 0131 Determine the type of the beating device 2000 according to the coded information and impact information contained in the optical information.
  • a "computer-readable medium” can be any device that can contain, store, communicate, propagate, or transmit a program for use by an instruction execution system, device, or device or in combination with these instruction execution systems, devices, or devices.
  • computer readable media include the following: electrical connections (electronic devices) with one or more wiring, portable computer disk cases (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable and editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because it can be performed, for example, by optically scanning the paper or other medium, and then editing, interpreting, or other suitable methods when necessary. Process to obtain the program electronically and then store it in the computer memory.
  • the aforementioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Abstract

A detection method, a detection device (100), a detection assembly (1000), and a computer storage medium (3000). The detection method comprises: receiving an optical signal and impact transmitted by a hitting device (2000); obtaining optical information corresponding to the optical signal and impact information; and determining the type of the hitting device (2000) according to the optical information and the impact information.

Description

检测方法、检测装置、检测组件和存储介质Detection method, detection device, detection component and storage medium 技术领域Technical field
本申请涉及比赛道具技术领域,特别涉及检测方法、检测装置、检测组件和非易失性计算机可读存储介质。This application relates to the technical field of game props, in particular to a detection method, a detection device, a detection component, and a non-volatile computer-readable storage medium.
背景技术Background technique
在机器人比赛中,机器人可以向基地等场地道具发射炮弹,当场地道具的指定检测区域被击中时,可以视为对场地道具造成伤害,被不同类型的炮弹击中可以视为造成不同的伤害值,然而,场地道具一般仅通过判断检测区域接收到的撞击力度来判断炮弹的类型,单纯检测撞击,会受到炮弹本身的飞行速度的影响,导致速度快但质量小的炮弹和速度慢质量大的炮弹撞击在检测区域时的撞击力度基本相似,从而无法准确的区分炮弹的类型,导致伤害值的计算出现误差,影响比赛的公平性。In robot competitions, robots can fire cannonballs at the base and other field props. When the designated detection area of the field prop is hit, it can be regarded as causing damage to the field props, and hit by different types of cannonballs can be regarded as causing different damage. However, the field props generally only judge the type of shells by judging the strength of the impact received in the detection area. Simply detecting the impact will be affected by the flying speed of the shell itself, resulting in fast speed but low mass shells and slow speed and large mass. The impact strength of the projectiles when they hit the detection area is basically similar, so that it is impossible to accurately distinguish the types of projectiles, resulting in errors in the calculation of the damage value, and affecting the fairness of the game.
发明内容Summary of the invention
本申请的实施方式提供一种检测方法、检测装置、检测组件和非易失性计算机可读存储介质。The embodiments of the present application provide a detection method, a detection device, a detection component, and a non-volatile computer-readable storage medium.
本申请实施方式提供一种检测方法,所述检测方法包括:接收击打装置发射的光信号和撞击;获取所述光信号对应的光信息和撞击信息;及根据所述光信息和所述撞击信息确定所述击打装置的类型。The embodiment of the present application provides a detection method, the detection method includes: receiving the optical signal and impact emitted by the beating device; acquiring the optical information and impact information corresponding to the optical signal; and according to the optical information and the impact The information determines the type of the striking device.
本申请实施方式还提供一种检测装置,所述检测装置包括光检测件、压力检测件和处理芯片。所述光检测件用于接收所述击打装置发射的光信号以生成光信息;所述压力检测件用于接收击打装置的撞击以生成撞击信息;和所述处理芯片用于获取所述光信息和撞击信息;及根据所述光信息和所述撞击信息确定所述击打装置的类型。The embodiment of the present application also provides a detection device, which includes a light detection component, a pressure detection component, and a processing chip. The light detection element is used to receive the light signal emitted by the striking device to generate light information; the pressure detection element is used to receive the impact of the striking device to generate impact information; and the processing chip is used to obtain the Optical information and impact information; and determining the type of the beating device based on the optical information and the impact information.
本申请实施方式还提供一种检测组件,所述检测组件包括座体和检测装置,所述检测装置安装在所述座体上。所述检测装置包括光检测件、压力检测件和处理芯片。所述光检测件用于接收所述击打装置发射的光信号以生成光信息;所述压力检测件用于接收击打装置的撞击以生成撞击信息;和所述处理芯片用于获取所述光信息和撞击信息;及根据所述光信息和所述撞击信息确定所述击打装置的类型。The embodiment of the present application also provides a detection assembly, which includes a base and a detection device, and the detection device is installed on the base. The detection device includes a light detection component, a pressure detection component and a processing chip. The light detection element is used to receive the light signal emitted by the striking device to generate light information; the pressure detection element is used to receive the impact of the striking device to generate impact information; and the processing chip is used to obtain the Optical information and impact information; and determining the type of the beating device based on the optical information and the impact information.
本申请实施方式还提供一种包含计算机可执行指令的非易失性计算机可读存储介质。当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行一种检测方法,所述检测方法包括:接收击打装置发射的光信号和撞击;获取所述光信号对应的光信息和 撞击信息;及根据所述光信息和所述撞击信息确定所述击打装置的类型。The embodiment of the present application also provides a non-volatile computer-readable storage medium containing computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the processor is caused to execute a detection method, and the detection method includes: receiving a light signal emitted by a striking device and an impact; acquiring the light signal Corresponding light information and impact information; and determining the type of the striking device according to the light information and the impact information.
本申请实施方式的检测方法、检测装置、检测组件和计算机可读存储介质中,不仅通过压力检测件接收击打装置的撞击获取撞击信息,还通过光检测件获取击打装置发射的光信号以生成光信息,然后根据光信息和撞击信息确定击打装置的类型,相较于单纯依靠撞击信息确定击打装置的类型而言,对击打装置的类型确定更为准确,从而减少伤害值的计算误差,保证比赛的公平性。In the detection method, detection device, detection component, and computer-readable storage medium of the embodiments of the present application, not only the pressure detection element receives the impact of the beating device to obtain impact information, but also the light detection element is used to obtain the optical signal emitted by the beating device. Generate light information, and then determine the type of the beating device based on the light information and impact information. Compared with simply relying on the impact information to determine the type of the beating device, it is more accurate to determine the type of the beating device, thereby reducing the damage value. Calculate the error to ensure the fairness of the game.
本申请的实施方式的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实施方式的实践了解到。The additional aspects and advantages of the embodiments of the present application will be partly given in the following description, and part of them will become obvious from the following description, or be understood through the practice of the embodiments of the present application.
附图说明Description of the drawings
本申请的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become obvious and easy to understand from the description of the embodiments in conjunction with the following drawings, in which:
图1是本申请某些实施方式的检测方法的流程示意图。Fig. 1 is a schematic flowchart of a detection method according to some embodiments of the present application.
图2是本申请某些实施方式的检测组件和击打装置的结构示意图。Fig. 2 is a schematic diagram of the structure of the detection assembly and the beating device of some embodiments of the present application.
图3是本申请某些实施方式的检测装置的立体示意图。Fig. 3 is a three-dimensional schematic diagram of a detection device according to some embodiments of the present application.
图4是图3中的检测装置沿IV-IV线的截面示意图。Fig. 4 is a schematic cross-sectional view of the detection device in Fig. 3 along the line IV-IV.
图5至图9是本申请某些实施方式的检测方法的流程示意图。5 to 9 are schematic flowcharts of detection methods in some embodiments of the present application.
图10是本申请某些实施方式的处理器和计算机可读存储介质的连接示意图。FIG. 10 is a schematic diagram of the connection between a processor and a computer-readable storage medium in some embodiments of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, in which the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The following embodiments described with reference to the drawings are exemplary, and are only used to explain the present application, and cannot be understood as a limitation to the present application.
在本申请的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of this application, it should be understood that the terms “first” and “second” are only used for description purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the present application, "multiple" means two or more than two, unless otherwise specifically defined.
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接或可以相互通信;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should be noted that the terms "installation", "connection", and "connection" should be understood in a broad sense, unless otherwise clearly specified and limited. For example, it can be a fixed connection or a detachable connection. Connected or integrally connected; it can be mechanically connected, or electrically connected or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium, it can be the internal communication of two components or the interaction of two components relationship. For those of ordinary skill in the art, the specific meanings of the above-mentioned terms in this application can be understood according to specific circumstances.
下面详细描述本申请的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, in which the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The following embodiments described with reference to the drawings are exemplary, and are only used to explain the present application, and cannot be understood as a limitation to the present application.
请参阅图1和图2,本申请实施方式提供一种检测方法,该检测方法包括:Please refer to FIG. 1 and FIG. 2. An embodiment of the present application provides a detection method, and the detection method includes:
011:接收击打装置2000发射的光信号和撞击;011: Receive the light signal and impact emitted by the beating device 2000;
012:获取光信号对应的光信息和撞击信息;012: Obtain the optical information and impact information corresponding to the optical signal;
013:根据光信息和撞击信息确定击打装置2000的类型。013: Determine the type of the beating device 2000 based on the light information and the impact information.
请结合图3和图4,本申请实施方式还提供一种检测装置100,该检测装置100包括光检测件10、压力检测件20和处理芯片30。光检测件10用于接收击打装置2000发射的光信号以生成光信息。压力检测件20用于接收击打装置2000的撞击以生成撞击信息。处理芯片30用于获取光信息和撞击信息、及根据光信息和撞击信息确定击打装置2000的类型。也即是说,步骤011可以由光检测件10配合压力检测件20实现。步骤012和步骤013可以由处理芯片30实现。With reference to FIGS. 3 and 4, the embodiment of the present application further provides a detection device 100, which includes a light detection component 10, a pressure detection component 20 and a processing chip 30. The light detecting element 10 is used to receive the light signal emitted by the striking device 2000 to generate light information. The pressure detecting member 20 is used to receive the impact of the beating device 2000 to generate impact information. The processing chip 30 is used to obtain light information and impact information, and determine the type of the beating device 2000 based on the light information and impact information. In other words, step 011 can be implemented by the light detecting element 10 in cooperation with the pressure detecting element 20. Step 012 and step 013 can be implemented by the processing chip 30.
本申请实施方式的检测组件1000包括座体200及检测装置100。检测组件1000可以作为机器人比赛中的场地道具使用,例如机器人比赛可以是有对战双方的射击比赛,检测组件1000可以是设置在比赛场地上的基地、前哨站、防御塔等,机器人或者发射装置可以发射击打装置2000击打检测组件1000,检测组件1000被击打后,可以视为检测组件1000受到伤害、或者敌方受到伤害、或者我方得分增加等。The detection assembly 1000 of the embodiment of the present application includes a base 200 and a detection device 100. The detection component 1000 can be used as a field prop in a robot competition. For example, a robot competition can be a shooting competition with two opponents. The detection component 1000 can be a base, an outpost, a defensive tower, etc., set on the competition field. A robot or a launching device can be used. The firing device 2000 hits the detection component 1000. After the detection component 1000 is hit, it can be considered that the detection component 1000 is injured, or the enemy is injured, or the score of our side increases.
具体地,在机器人比赛中,发射装置(如炮台、机器人等)会发射击打装置2000(如飞镖、子弹、弹丸、炮弹等),击打装置2000本身设置有光发射件210,光发射件210可发射光信号(光信号包括红外光和可见光中至少一种等),击打装置2000会被炮台发射出去以打击敌方的检测组件1000(即,基地、前哨站、防御塔)等,下面以飞镖发射红外光,飞镖被炮台发射出去以打击敌方的防御塔为例进行说明。Specifically, in a robot competition, a launching device (such as a turret, a robot, etc.) will fire a shooting device 2000 (such as darts, bullets, projectiles, cannonballs, etc.), and the hitting device 2000 itself is provided with a light emitting element 210. 210 can emit light signals (the light signals include at least one of infrared light and visible light, etc.), and the striking device 2000 will be emitted by the turret to strike the enemy's detection component 1000 (ie, base, outpost, defense tower), etc., Let's take the darts emitting infrared light, and the darts are launched by the turret to attack the enemy's defense tower as an example.
检测装置100安装在座体200上。检测装置100可以安装在座体200的靠近顶部的位置,以提高检测装置100的安装高度,便于机器人瞄准,便于观众或参赛者观看到检测装置100。一个座体200上可以安装一个检测装置100;一个座体200上也可以安装多个检测装置100,多个检测装置100的朝向可以不同,或者多个检测装置100的安装高度可以不同,在此不作限制。本申请实施方式中,检测装置100一个座体200上安装一个检测装置100。The detection device 100 is installed on the base 200. The detection device 100 can be installed at a position close to the top of the base 200 to increase the installation height of the detection device 100, facilitate the robot to aim, and make it easier for spectators or contestants to view the detection device 100. One detection device 100 can be installed on one base 200; multiple detection devices 100 can also be installed on one base 200. The orientation of the multiple detection devices 100 can be different, or the installation heights of the multiple detection devices 100 can be different. No restrictions. In the embodiment of the present application, one detection device 100 is installed on a base 200 of the detection device 100.
飞镖在飞向防御塔(具体为飞向设置在座体200上的检测装置100)时,会不断的发射光信号,在飞镖到达光检测件10能够接收光信号的范围内时,光检测件10接收到光信号,然后在一段时间(例如5毫秒(ms)、7ms、10ms、20ms等)后,击打装置2000撞击 到压力检测件20,压力检测件20检测到击打装置2000的撞击。光检测件10具体可以是一个或多个光电二极管,光检测件10检测到特定的光信号后产生电信号,该电信号即为根据光信号生成的光信息。压力检测件20具体可以是一个或多个压力传感器,在接收到击打装置2000的撞击时即可获取到撞击信息(如是否接收到撞击、撞击力度等)。本申请实施方式中,在光检测件10检测到光信号一段时间内,压力检测件20检测到撞击的情况下,检测装置100视为检测到击打装置2000的击打。而任意不能发出上述特定光信号的其他物体(如不带光发射件210的子弹、弹丸等),由于光检测件10未能检测到对应的光信号,即使其他物体撞击到压力检测件20,检测装置100也不视为是击打装置2000的击打。故通过额外设置光检测件10,检测装置100能够区分击打装置2000的击打与其他物体的击打,不会发生误判。When the dart flies to the defensive tower (specifically, to the detection device 100 installed on the base 200), it will continuously emit light signals. When the dart reaches the range where the light detection element 10 can receive the light signal, the light detection element 10 After receiving the light signal, and then after a period of time (for example, 5 milliseconds (ms), 7 ms, 10 ms, 20 ms, etc.), the beating device 2000 hits the pressure detecting member 20, and the pressure detecting member 20 detects the impact of the beating device 2000. The light detecting element 10 may specifically be one or more photodiodes. The light detecting element 10 generates an electrical signal after detecting a specific light signal, and the electrical signal is the light information generated according to the light signal. The pressure detecting member 20 may specifically be one or more pressure sensors, and the impact information (such as whether the impact is received, the impact strength, etc.) can be obtained when the impact of the impact device 2000 is received. In the embodiment of the present application, when the pressure detecting element 20 detects an impact within a period of time when the light detecting element 10 detects the light signal, the detecting device 100 is regarded as detecting the impact of the striking device 2000. For any other objects that cannot emit the above-mentioned specific light signal (such as bullets, projectiles, etc.) without the light emitting element 210, because the light detecting element 10 fails to detect the corresponding light signal, even if other objects hit the pressure detecting element 20, The detection device 100 is not regarded as a hit by the hitting device 2000 either. Therefore, by additionally providing the light detecting element 10, the detecting device 100 can distinguish between the hit of the hitting device 2000 and the hits of other objects, and no misjudgment will occur.
本申请实施方式的检测方法、检测装置100和检测组件1000中,不仅通过压力检测件20接收击打装置2000的撞击获取撞击信息,还通过光检测件10获取击打装置2000发射的光信号以生成光信息,然后根据光信息和撞击信息确定击打装置2000的类型,相较于单纯依靠撞击信息确定击打装置2000的类型而言,对击打装置2000的类型确定更为准确,从而减少伤害值的计算误差,保证比赛的公平性。In the detection method, detection device 100, and detection assembly 1000 of the embodiment of the present application, not only the pressure detection member 20 receives the impact of the beating device 2000 to obtain impact information, but also the light detection member 10 is used to obtain the optical signal emitted by the beating device 2000. Generate light information, and then determine the type of the beating device 2000 based on the light information and the impact information. Compared with determining the type of the beating device 2000 solely relying on the impact information, it is more accurate to determine the type of the beating device 2000, thereby reducing The calculation error of the damage value ensures the fairness of the game.
请参阅图2和5,在某些实施方式中,步骤013包括:Referring to Figures 2 and 5, in some embodiments, step 013 includes:
0131:根据光信息包含的编码信息和撞击信息确定击打装置2000的类型。0131: Determine the type of the beating device 2000 according to the coded information and impact information contained in the optical information.
在某些实施方式中,处理芯片30还用于根据光信息包含的编码信息和撞击信息确定击打装置2000的类型。也即是说,步骤0131可以由处理芯片30实现。In some embodiments, the processing chip 30 is also used to determine the type of the striking device 2000 according to the code information and the impact information contained in the optical information. In other words, step 0131 can be implemented by the processing chip 30.
具体地,击打装置2000发射的光信号(即,红外光)是经过调制的,例如通过脉冲宽度调制(Pulse Width Modulation,PWM)和脉冲位置调制(Pulse Position Modulation,PPM)两种方式进行编码调制。其中,PWM以发射载波的占空比代表高电平和低电平。为了节省能量,一般情况下,发射载波的时间固定,通过改变不发射载波的时间来改变占空比。PPM以发射红外载波的位置表示高电平和低电平。从发射载波到不发射载波为高电平,从不发射载波到发射载波为低电平,或者,从发射载波到不发射载波为低电平,从不发射载波到发射载波为高电平。其发射载波和不发射载波的时间相同,也就是高电平的持续时间和低电平的持续时间是相同的。如此,根据光信号生成的光信息中可包含编码信息。编码信息可以是ASCII码等二进制编码信息,例如,以高电平为1,低电平为0调制生成二进制编码,作为第一编码信息;再例如,以高电平为0,低电平为1调制生成二进制编码,作为编码信息。进一步地,二进制编码信息可以包含8位编码或者包含8位以上的编码,例如16位、32位等。更长的编码位数可以进一步提升光信号的抗干扰能力,避免外界的干扰光线被接收误识别。Specifically, the optical signal (ie, infrared light) emitted by the striking device 2000 is modulated, for example, encoded by two methods: Pulse Width Modulation (PWM) and Pulse Position Modulation (PPM) modulation. Among them, PWM represents the high level and the low level with the duty cycle of the transmitted carrier. In order to save energy, in general, the time for transmitting the carrier is fixed, and the duty cycle is changed by changing the time when the carrier is not transmitted. PPM expresses the high level and low level by the position where the infrared carrier is emitted. It is high level from transmitting carrier to non-transmitting carrier, and low level from transmitting carrier to non-transmitting carrier, or low level from transmitting carrier to non-transmitting carrier, and high level from never transmitting carrier to transmitting carrier. The carrier is transmitted and the carrier is not transmitted for the same time, that is, the duration of the high level and the duration of the low level are the same. In this way, the coded information can be included in the optical information generated from the optical signal. The coded information can be binary coded information such as ASCII code. For example, the high level is 1 and the low level is 0 to modulate to generate binary code as the first coded information; for another example, the high level is 0, and the low level is 0. 1 Modulation generates binary code as coded information. Further, the binary code information may include 8-bit codes or include more than 8-bit codes, such as 16-bits, 32-bits, and so on. Longer code digits can further improve the anti-interference ability of the optical signal, and prevent the external interference light from being misrecognized by reception.
然后处理芯片30根据编码信息和撞击信息确定击打装置2000的类型。例如,编码信息包含8位编码,其中,编码信息包括类型信息和编号信息,例如,前2位可用于表示击打装置2000的类型信息,如“00”表示第一类飞镖,“01”表示第二类飞镖,“10”表示第三类飞镖,“11”表示第四类飞镖;后6位用于表示每个飞镖的身份编号,每个飞镖可单独关联一个唯一的身份编号,以防止两个类型相同(即,类型信息相同)的飞镖同时击打检测装置100时,由于没有唯一的身份编号,使得获取的光信息中的类型信息和编号信息均相同的,从而被误识别为一个飞镖的问题,而每个飞镖关联唯一的身份编号后,与身份编号对应的编号信息也是唯一的,使得每个飞镖的光信息中包含的编码信息均不同。两个飞镖同时击打检测装置100时,即使类型信息相同,也可以通过编号信息进行区分。例如,飞镖a的编码信息为“00000000”和飞镖b的编码信息为“00000001”,两者的类型信息均为“00”,但编号信息不同,飞镖a和飞镖b同时飞向检测装置100时,也能够根据编号信息不同的光信息区分飞镖a和飞镖b,从而防止将飞镖a和飞镖b识别为同一飞镖。另外,由于光信号的编码信息不同,同一频率或波段的红外光也可以带有不同的编码信息,光发射件210只需发射同一频率或波段的红外光,而光检测件10也只需要能够接收同一频率或波段的红外光即可,相较于发射或接收多种频率或波段的红外光而言,光发射件210和光检测件10的硬件配置要求较低。Then the processing chip 30 determines the type of the beating device 2000 based on the encoded information and the impact information. For example, the code information includes an 8-bit code, where the code information includes type information and number information. For example, the first 2 bits can be used to indicate the type information of the hitting device 2000, such as "00" for the first type of dart, and "01" for The second type of darts, "10" means the third type of darts, and "11" means the fourth type of darts; the last 6 digits are used to indicate the ID number of each dart, and each dart can be associated with a unique ID number to prevent When two darts of the same type (ie, the same type information) strike the detection device 100 at the same time, since there is no unique identification number, the type information and number information in the obtained optical information are the same, and thus are mistakenly identified as one The problem of darts, and after each dart is associated with a unique ID number, the number information corresponding to the ID number is also unique, so that the code information contained in the light information of each dart is different. When two darts hit the detection device 100 at the same time, even if the type information is the same, they can be distinguished by the number information. For example, when the code information of dart a is "00000000" and the code information of dart b is "00000001", the type information of both is "00", but the number information is different, when dart a and dart b fly to the detection device 100 at the same time , It is also possible to distinguish between dart a and dart b according to the optical information with different number information, thereby preventing dart a and dart b from being recognized as the same dart. In addition, since the coded information of the optical signal is different, the infrared light of the same frequency or waveband can also carry different coded information. The light emitting element 210 only needs to emit infrared light of the same frequency or waveband, and the light detecting element 10 only needs to be able to It is sufficient to receive infrared light of the same frequency or waveband. Compared with transmitting or receiving infrared light of multiple frequencies or wavebands, the hardware configuration requirements of the light emitting element 210 and the light detecting element 10 are lower.
在某些实施方式中,二进制编码信息中包含至少一位低电平信号以及至少一位高电平信号。In some embodiments, the binary coded information includes at least one low-level signal and at least one high-level signal.
具体地,二进制编码信息中包含至少一位低电平信号编码以及至少一位高电平信号编码,即编码信息中同时存在高电平和低电平信号,例如,以PPM调制方式中,从发射载波到不发射载波为高电平(即,编码为“1”),从不发射载波到发射载波为低电平(即,编码为“0”),若飞镖c的编码信息为“00000000”,则光检测件10在未接收到光信号时一直会产生低电平信号,此时获取的编码信息“00000000”是根据噪音信号获取的,从而一直识别到虚假的飞镖c(即,实际未击中检测装置100的飞镖c);而若外界一直存在和击打装置2000发射的光信号频率相同的红外光时,若飞镖d的编码信息为“11111111”,此时光检测件10会一直接收外界相同频率的红外光(即,噪音信号)不断生成高电平信号,从而一直识别到虚假的飞镖d。因此,在编码信息中同时存在高电平和低电平信号时,更易与外界的噪音信号形成区别,从而更准确的识别到击打装置2000射出的光信号0。Specifically, the binary code information contains at least one bit of low-level signal code and at least one bit of high-level signal code, that is, both high-level and low-level signals exist in the coded information. For example, in the PPM modulation mode, from the transmission From carrier to non-transmission, the carrier is high level (ie, the code is "1"), and from when the carrier is not transmitted to when the carrier is low level (ie, the code is "0"), if the coded information of dart c is "00000000" , The light detecting element 10 will always generate a low-level signal when it does not receive the light signal. The coded information "00000000" acquired at this time is acquired based on the noise signal, so that the false dart c (that is, the actual dart c) has been identified. Hit the dart c) of the detection device 100; and if there is always infrared light with the same frequency as the optical signal emitted by the beating device 2000, if the code information of the dart d is "11111111", the light detection device 10 will always receive The infrared light (ie, noise signal) of the same frequency from the outside continuously generates a high-level signal, so that the false dart d has been identified. Therefore, when there are both high-level and low-level signals in the encoded information, it is easier to be distinguished from external noise signals, so that the optical signal 0 emitted by the striking device 2000 can be more accurately recognized.
请参阅图2、图3、图4和图6,在某些实施方式中,步骤013还包括:Please refer to FIG. 2, FIG. 3, FIG. 4, and FIG. 6. In some embodiments, step 013 further includes:
01311:在检测装置100获取到光信息的预定时长内,若获取到撞击信息,则根据编码信息确定击打装置2000的类型;和01311: Within the predetermined time period when the detection device 100 obtains the optical information, if the impact information is obtained, the type of the striking device 2000 is determined according to the code information; and
01312:在检测装置100获取到光信息的预定时长内,若未获取到撞击信息,则确定击 打装置2000的击打无效。01312: If the impact information is not acquired within the predetermined time period when the detection device 100 acquires the optical information, it is determined that the hit of the hitting device 2000 is invalid.
在某些实施方式中,处理芯片30还用于在检测装置100获取到光信息的预定时长内,若获取到撞击信息,则根据编码信息确定击打装置2000的类型、及在检测装置100获取到光信息的预定时长内,若未获取到撞击信息,则确定击打装置2000的击打无效。也即是说,步骤01311和步骤01312可以由处理芯片30实现。In some embodiments, the processing chip 30 is also used to determine the type of the hitting device 2000 according to the coded information within the predetermined time period when the detection device 100 obtains the optical information, and the detection device 100 obtains the impact information. If the impact information is not acquired within the predetermined time period of the optical information, it is determined that the impact of the impact device 2000 is invalid. In other words, step 01311 and step 01312 can be implemented by the processing chip 30.
具体地,检测装置100还包括基体40和罩体50,压力检测件20、光检测件10和罩体50均设置在基体40上,光检测件10可以直接安装在基体40上,光检测件10也可以安装在罩体50上,再通过罩体50间接安装在基体40上。在本申请实施例中,光检测件10安装在罩体50内,罩体50安装在基体40上。罩体50形成有收容腔51,罩体50整体可以呈一侧有开口的中空的长方体状,中空的部分可作为收容腔51。罩体50可以由多个钣金件焊接而成,钣金件可以由不透光的材料制成,外界光线不能穿过钣金件进入收容腔51内。罩体50开设有通光口52,光信号可以从通光口52进入收容腔51内,罩体50的数量可以是多个,例如为两个、三个、四个等,在此不作限制。两个罩体50位于压力检测件20的相对的两侧上,两个罩体50的两个通光口52相对设置,并均朝向压力检测件20,以使得从压力检测件20上方预设范围(该预设范围根据通光口52垂直基体40的高度h和平行于基体40的宽度w确定)内的待测物体发出的光信号能够从通光口52进入收容腔51内,光检测件10设置在收容腔内以接收从通光口52进入收容腔51内光信号,而从其余位置的任何物体中发出的光信号都将被罩体50阻隔,不能到达收容腔51内。Specifically, the detection device 100 further includes a base 40 and a cover 50. The pressure detection element 20, the light detection element 10, and the cover 50 are all arranged on the base 40. The light detection element 10 can be directly mounted on the base 40, and the light detection element 10 can also be mounted on the cover 50, and then indirectly mounted on the base 40 through the cover 50. In the embodiment of the present application, the light detecting element 10 is installed in the cover 50, and the cover 50 is installed on the base 40. The cover body 50 is formed with a receiving cavity 51, the whole cover body 50 may be in the shape of a hollow cuboid with an opening on one side, and the hollow part may be used as the receiving cavity 51. The cover body 50 may be welded by a plurality of sheet metal parts, and the sheet metal parts may be made of opaque material, and external light cannot pass through the sheet metal parts and enter the receiving cavity 51. The cover 50 is provided with a light opening 52, and the light signal can enter the receiving cavity 51 from the light opening 52. The number of the cover 50 can be multiple, such as two, three, four, etc., which are not limited here. . The two cover bodies 50 are located on opposite sides of the pressure detecting member 20, and the two light-passing openings 52 of the two cover bodies 50 are arranged opposite to each other, and both face the pressure detecting member 20, so that it is preset from above the pressure detecting member 20. The range (the preset range is determined according to the height h of the light opening 52 perpendicular to the base 40 and the width w parallel to the base 40) that the light signal emitted by the object to be measured can enter the containing cavity 51 from the light opening 52, and light detection The component 10 is arranged in the receiving cavity to receive light signals entering the receiving cavity 51 from the light opening 52, and light signals emitted from any objects in the remaining positions will be blocked by the cover 50 and cannot reach the receiving cavity 51.
在击打装置2000撞击向检测装置100时,击打装置2000会先进入压力检测件20上方的预设范围内,此时光检测件10会先接收到击打装置2000发射的光信号以生成光信息,然后在预定时长后,击打装置2000会撞击压力检测件20,压力检测件20会生成撞击信息。可以理解,若光检测件10接收到击打装置2000发射的光信号以生成光信息后的预定时长内(例如5ms、7ms、10ms、20ms等),击打装置2000撞击了压力检测件20,则说明击打装置2000确实击中了检测组件1000,此时根据光信息包含的编码信息即可确定该击打装置2000的类型和身份编号,从而准确的计算击打装置2000造成的伤害值。而在光检测件10接收到击打装置2000发射的光信号以生成光信息后的预定时长内,均未接收到撞击信息,则表示该击打装置2000从压力检测件20上方掠过,而没有撞击压力检测件20,则可确定击打装置2000的击打无效,检测组件1000不会受到的伤害值。如此,可准确地判断击打装置2000是否有效的击中检测组件1000,并确定击打装置2000的类型以计算击打装置2000造成的伤害值。When the striking device 2000 strikes the detecting device 100, the striking device 2000 first enters the preset range above the pressure detecting element 20, and at this time, the light detecting element 10 first receives the light signal emitted by the striking device 2000 to generate light Then, after a predetermined period of time, the striking device 2000 will hit the pressure detecting element 20, and the pressure detecting element 20 will generate impact information. It can be understood that if the light detecting element 10 receives the light signal emitted by the striking device 2000 to generate light information within a predetermined period of time (for example, 5ms, 7ms, 10ms, 20ms, etc.), the striking device 2000 hits the pressure detecting element 20, It means that the beating device 2000 has indeed hit the detection component 1000. At this time, the type and ID number of the beating device 2000 can be determined according to the code information contained in the optical information, so as to accurately calculate the damage value caused by the beating device 2000. However, within a predetermined period of time after the light detecting element 10 receives the optical signal emitted by the striking device 2000 to generate light information, no impact information is received, which means that the striking device 2000 passes over the pressure detecting element 20, and Without the impact pressure detecting member 20, it can be determined that the impact of the impact device 2000 is invalid, and the damage value that the component 1000 will not receive is detected. In this way, it can be accurately determined whether the beating device 2000 is effective in hitting the detection component 1000, and the type of the beating device 2000 can be determined to calculate the damage value caused by the beating device 2000.
请参阅图2、图3、图4和图7,在某些实施方式中,检测方法还包括:Please refer to FIG. 2, FIG. 3, FIG. 4, and FIG. 7. In some embodiments, the detection method further includes:
014:在检测装置100获取到光信息的预定时长内,若获取到撞击信息,则检测装置 100屏蔽从获取到撞击信息后的预设时长内所有对检测装置100的撞击。014: Within the predetermined time period when the detection device 100 obtains the optical information, if the impact information is acquired, the detection device 100 shields all impacts to the detection device 100 within the preset time period after the impact information is acquired.
在某些实施方式中,处理芯片30还用于在检测装置100获取到光信息的预定时长内,若获取到撞击信息,则检测装置100屏蔽从获取到撞击信息后的预设时长内所有对检测装置100的撞击。也即是说,步骤014可以由处理芯片30实现。In some embodiments, the processing chip 30 is also used for the detection device 100 to obtain the optical information within a predetermined period of time, if the impact information is obtained, the detection device 100 shields all pairs from the preset period of time after the impact information is obtained. The collision of the device 100 is detected. In other words, step 014 can be implemented by the processing chip 30.
具体地,在光检测件10获取到光信息的预定时长内,若压力检测件20获取到撞击信息,则说明击打装置2000的击打是有效的,但由于击打装置2000是不断发射光信号的,若后续存在未设置光发射件210的其他物体(如机器人发射的子弹)在该预定时长内撞击压力检测件20,此时光检测件10会获取到多个相同的光信息及多个撞击信息,每个撞击信息可能均存在对应的光信息,从而导致其他物体的撞击被当作击打装置2000的撞击来计算伤害值,造成伤害值的计算误差。因此,在光检测件10获取到光信息的预定时长内,检测装置100会屏蔽从获取到的第一个撞击信息之后的撞击信息,其中,“屏蔽”可以理解为压力检测件20会接收到多个撞击信息,但只会将光检测件10获取到光信息的预定时长内,获取的第一个撞击信息当作击打装置2000的撞击信息,而将其他撞击信息当作其他物体的撞击信息;“屏蔽”还可以理解为光检测件10获取到光信息的预定时长内,在获取到第一个撞击信息后,就关闭压力检测件20,停止检测其他物体的撞击。从而防止其他物体的撞击被当作击打装置2000的撞击来计算伤害值。在其他实施方式中,每个击打装置2000均存在唯一的身份编号(即,编号信息),不同击打装置2000的光信息均是不同的,处理芯片30在获取到多个相同的光信息后,会将多个相同的光信息识别为一个击打装置2000,从而无需屏蔽从获取到的第一个撞击信息之后的撞击信息也能防止其他物体的撞击被当作击打装置2000的撞击来计算伤害值。Specifically, within the predetermined period of time when the light detecting element 10 obtains the light information, if the pressure detecting element 20 obtains the impact information, it means that the striking of the striking device 2000 is effective, but because the striking device 2000 continuously emits light Signal, if there are other objects (such as bullets launched by the robot) without the light emitting element 210 that hit the pressure detecting element 20 within the predetermined period of time, the light detecting element 10 will acquire multiple pieces of the same light information and multiple pieces of light information. For the impact information, each impact information may have corresponding optical information, so that the impact of other objects is regarded as the impact of the striking device 2000 to calculate the damage value, resulting in an error in the calculation of the damage value. Therefore, within the predetermined period of time when the light detection element 10 obtains the optical information, the detection device 100 will shield the impact information after the first impact information obtained, where "shielding" can be understood as the pressure detection element 20 will receive the impact information. Multiple impact information, but only within the predetermined period of time when the light detecting element 10 obtains the optical information, the first impact information obtained is regarded as the impact information of the striking device 2000, and other impact information is regarded as the impact of other objects Information; "shielding" can also be understood as a predetermined period of time that the light detection element 10 obtains light information, after obtaining the first impact information, the pressure detection element 20 is closed to stop detecting the impact of other objects. Therefore, the impact of other objects is prevented from being regarded as the impact of the striking device 2000 to calculate the damage value. In other embodiments, each beating device 2000 has a unique identification number (ie, number information), the optical information of different beating devices 2000 is different, and the processing chip 30 obtains multiple identical optical information. Later, multiple identical optical information will be identified as one striking device 2000, so that the impact information after the first impact information obtained can be prevented from being used as the impact of the striking device 2000 without shielding the impact information from other objects. To calculate the damage value.
请参阅图2、图3、图4和图8,在某些实施方式中,步骤013还包括:Please refer to FIG. 2, FIG. 3, FIG. 4, and FIG. 8. In some embodiments, step 013 further includes:
步骤0132:根据光信息中包含的光信号的波段信息和撞击信息确定击打装置2000的类型。Step 0132: Determine the type of the striking device 2000 according to the waveband information and impact information of the optical signal contained in the optical information.
在某些实施方式中,处理芯片30还用于根据光信息中包含的光信号的波段信息和撞击信息确定击打装置2000的类型。也即是说,步骤0132可以由处理芯片30实现。In some embodiments, the processing chip 30 is also used to determine the type of the striking device 2000 according to the wavelength information and impact information of the optical signal contained in the optical information. In other words, step 0132 can be implemented by the processing chip 30.
具体地,击打装置2000的光发射件210可以发射多种不同的波段的光信号,对应的,光检测件10也能够接收该多种不同的波段的光信号,其中每种波段的光信号对应一种类型的击打装置2000,处理芯片30根据光信号的波段信息和撞击信息即可确定击打装置2000的类型,从而准确的计算击打装置2000造成的伤害值。Specifically, the light emitting element 210 of the striking device 2000 can emit light signals of a variety of different wavebands, and correspondingly, the light detecting element 10 can also receive light signals of the multiple different wavebands, wherein the light signal of each waveband is Corresponding to a type of beating device 2000, the processing chip 30 can determine the type of the beating device 2000 according to the band information of the optical signal and the impact information, so as to accurately calculate the damage value caused by the beating device 2000.
请参阅图2和图9,在某些实施方式中,检测方法还包括:Referring to Figures 2 and 9, in some embodiments, the detection method further includes:
015:确定搭载检测装置100的检测组件1000所受的伤害值,伤害值和击打装置2000的类型对应。015: Determine the damage value suffered by the detection component 1000 equipped with the detection device 100, and the damage value corresponds to the type of the hitting device 2000.
在某些实施方式中,处理芯片30还用于确定搭载检测装置100的检测组件1000所受的伤害值,伤害值和击打装置2000的类型对应。也即是说,步骤015可以由处理芯片30实现。In some embodiments, the processing chip 30 is also used to determine the damage value suffered by the detection component 1000 equipped with the detection device 100, and the damage value corresponds to the type of the beating device 2000. In other words, step 015 can be implemented by the processing chip 30.
具体地,在确定击打装置2000有效的击中检测组件1000后,处理芯片30根据光信息和撞击信息即可确定击打装置2000的类型,每种类型的击打装置2000击中检测组件1000时,所能带给检测组件1000的伤害值也是不同的,在击打装置2000击中检测组件1000时,处理芯片30即可根据击打装置2000的类型,确定检测组件1000所受的伤害值,从而扣除检测组件1000与该伤害值相同的血量,其中,血量为检测组件1000被视为被击毁所能承受的最大伤害值。Specifically, after determining that the beating device 2000 effectively hits the detection component 1000, the processing chip 30 can determine the type of the beating device 2000 according to the light information and the impact information, and each type of the beating device 2000 hits the detection component 1000 When the time, the damage value that can be brought to the detection component 1000 is also different. When the beating device 2000 hits the detection component 1000, the processing chip 30 can determine the damage value of the detection component 1000 according to the type of the beating device 2000 , Thereby deducting the blood volume of the detection component 1000 that is the same as the damage value, where the blood volume is the maximum damage value that the detection component 1000 can withstand when it is deemed to be destroyed.
请参阅图2和图3,在某些实施方式中,击打装置2000在撞击检测组件1000后,停止继续发射光信号。Referring to FIGS. 2 and 3, in some embodiments, the beating device 2000 stops continuously emitting light signals after hitting the detection assembly 1000.
具体地,击打装置2000在飞行过程中要持续的发射光信号,光信号包括用于指示击打装置2000所属阵营的可见光信号(如发出红光表示击打装置2000为红色方阵营发出的,发出蓝光则表示击打装置2000为蓝色方阵营发出的),从而使得观众直观的了解击打装置2000所述的阵营。光信号还包括用于确定击打装置2000的类型的红外光信号,红外光信号对应的编码信息中包含类型信息以确定击打装置2000的类型。在击打装置2000撞击到压力检测件20上后,表示击打装置2000的任务已经完成,此时击打装置2000可停止发射光信号,例如关闭发出可见光信号的可见光灯,关闭发出红外光信号的红外灯。击打装置2000可通过内部设置的加速度传感器检测击打装置2000的加速度变化,在加速度突然变得很小甚至为0时,即可确定击打装置2000撞击到某个物体上了,此时即可停止发射光信号。Specifically, the beating device 2000 must continuously emit light signals during the flight, and the light signals include visible light signals used to indicate the camp to which the beating device 2000 belongs (for example, emitting a red light indicates that the beating device 2000 is emitted by the red camp, Emitting blue light indicates that the percussion device 2000 is emitted by the blue camp), so that the audience can intuitively understand the camp described by the percussion device 2000. The optical signal also includes an infrared light signal for determining the type of the striking device 2000, and the code information corresponding to the infrared light signal contains type information to determine the type of the striking device 2000. After the beating device 2000 hits the pressure detecting member 20, it indicates that the task of the beating device 2000 has been completed. At this time, the beating device 2000 can stop emitting light signals, for example, turn off the visible light that emits visible light signals, and turn off the infrared light signals. Infrared light. The beating device 2000 can detect the acceleration change of the beating device 2000 through an internal acceleration sensor. When the acceleration suddenly becomes very small or even zero, it can be determined that the beating device 2000 has hit an object. You can stop emitting light signals.
请参阅图1和10,本申请实施方式的一种包含计算机可执行指令310的非易失性计算机可读存储介质3000,当计算机可执行指令310被一个或多个处理器320执行时,使得处理器320执行上述任一实施方式的检测方法。1 and 10, a non-volatile computer-readable storage medium 3000 containing computer-executable instructions 310 according to an embodiment of the present application. When the computer-executable instructions 310 are executed by one or more processors 320, The processor 320 executes the detection method of any one of the foregoing embodiments.
例如,请结合图1和图2,计算机可读指令310被处理器320执行时,使得处理器320执行以下步骤:For example, referring to FIG. 1 and FIG. 2, when the computer-readable instruction 310 is executed by the processor 320, the processor 320 is caused to perform the following steps:
011:接收击打装置2000发射的光信号和撞击;011: Receive the light signal and impact emitted by the beating device 2000;
012:获取光信号对应的光信息和撞击信息;012: Obtain the optical information and impact information corresponding to the optical signal;
013:根据光信息和撞击信息确定击打装置2000的类型。013: Determine the type of the beating device 2000 based on the light information and the impact information.
再例如,请结合图2和图5,计算机可读指令310被处理器320执行时,使得处理器320执行以下步骤:For another example, referring to FIG. 2 and FIG. 5, when the computer-readable instruction 310 is executed by the processor 320, the processor 320 is caused to perform the following steps:
0131:根据光信息包含的编码信息和撞击信息确定击打装置2000的类型。0131: Determine the type of the beating device 2000 according to the coded information and impact information contained in the optical information.
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”、或“一些示例”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the description of this specification, the description with reference to the terms “one embodiment”, “some embodiments”, “exemplary embodiments”, “examples”, “specific examples”, or “some examples” etc. means to combine the embodiments The specific features, structures, materials, or characteristics described by the examples are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above-mentioned terms does not necessarily refer to the same embodiment or example. Moreover, the described specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于执行特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的执行,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in the flowchart or described in other ways herein can be understood as a module, segment or part of code that includes one or more executable instructions for performing specific logical functions or steps of the process And the scope of the preferred embodiments of the present application includes additional executions, which may not be in the order shown or discussed, including executing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. This should It is understood by those skilled in the art to which the embodiments of the present application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于执行逻辑功能的可执行指令的定序列表,可以具体执行在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器22的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for executing logic functions, and can be specifically executed in any computer-readable medium, For use by instruction execution systems, devices, or equipment (such as computer-based systems, systems including the processor 22, or other systems that can fetch and execute instructions from instruction execution systems, devices, or equipment), or combine these instruction execution systems, Device or equipment. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transmit a program for use by an instruction execution system, device, or device or in combination with these instruction execution systems, devices, or devices. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) with one or more wiring, portable computer disk cases (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable and editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because it can be performed, for example, by optically scanning the paper or other medium, and then editing, interpreting, or other suitable methods when necessary. Process to obtain the program electronically and then store it in the computer memory.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The aforementioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present application. A person of ordinary skill in the art can comment on the foregoing within the scope of the present application. The embodiment undergoes changes, modifications, substitutions, and modifications.

Claims (36)

  1. 一种检测方法,其特征在于,包括:A detection method, characterized in that it comprises:
    接收击打装置发射的光信号和撞击;Receive the light signal and impact emitted by the beating device;
    获取所述光信号对应的光信息和撞击信息;及Acquiring light information and impact information corresponding to the light signal; and
    根据所述光信息和所述撞击信息确定所述击打装置的类型。The type of the beating device is determined according to the light information and the impact information.
  2. 根据权利要求1所述的检测方法,其特征在于,所述根据所述光信息和所述撞击信息确定所述击打装置的类型,包括:The detection method according to claim 1, wherein the determining the type of the beating device according to the light information and the impact information comprises:
    根据所述光信息包含的编码信息和所述撞击信息确定所述击打装置的类型。The type of the striking device is determined according to the code information contained in the optical information and the impact information.
  3. 根据权利要求2所述的检测方法,其特征在于,所述击打装置和所述编码信息一一对应,所述编码信息包括类型信息和编号信息,所述类型信息与所述击打装置的类型对应,所述编号信息与所述击打装置的身份编号对应。The detection method according to claim 2, wherein the beating device corresponds to the coded information in a one-to-one correspondence, the coded information includes type information and number information, and the type information corresponds to the coded information of the beating device. The type corresponds, and the number information corresponds to the identity number of the beating device.
  4. 根据权利要求2所述的检测方法,其特征在于,所述编码信息为二进制编码信息。The detection method according to claim 2, wherein the coded information is binary coded information.
  5. 根据权利要求4所述的检测方法,其特征在于,所述二进制编码信息中包含至少一位低电平信号以及至少一位高电平信号。The detection method according to claim 4, wherein the binary code information contains at least one low-level signal and at least one high-level signal.
  6. 根据权利要求2所述的检测方法,其特征在于,所述根据所述光信息包含的编码信息和所述撞击信息确定所述击打装置的类型,包括:The detection method according to claim 2, wherein the determining the type of the striking device according to the code information contained in the optical information and the impact information comprises:
    在所述检测装置获取到所述光信息的预定时长内,若获取到所述撞击信息,则根据所述编码信息确定所述击打装置的类型;和If the impact information is acquired within the predetermined time period when the detection device acquires the optical information, the type of the striking device is determined according to the code information; and
    在所述检测装置获取到所述光信息的预定时长内,若未获取到所述撞击信息,则确定所述击打装置的击打无效。If the impact information is not acquired within the predetermined time period when the detection device acquires the light information, it is determined that the hitting of the hitting device is invalid.
  7. 根据权利要求2所述的检测方法,其特征在于,所述检测方法还包括:The detection method according to claim 2, wherein the detection method further comprises:
    在所述检测装置获取到所述光信息的预定时长内,若获取到所述撞击信息,则所述检测装置屏蔽从获取到所述撞击信息后的预设时长内所有对所述检测装置的撞击。Within the predetermined period of time when the detection device obtains the optical information, if the impact information is obtained, the detection device shields all communications to the detection device within the preset time period after the impact information is obtained. Hit.
  8. 根据权利要求1所述的检测方法,其特征在于,所述根据所述光信息和所述撞击信 息确定所述击打装置的类型,包括:The detection method according to claim 1, wherein the determining the type of the beating device according to the light information and the impact information comprises:
    根据所述光信息中包含的所述光信号的波段信息和所述撞击信息确定所述击打装置的类型。The type of the striking device is determined according to the waveband information of the optical signal and the impact information contained in the optical information.
  9. 根据权利要求1所述的检测方法,其特征在于,所述检测方法还包括:The detection method according to claim 1, wherein the detection method further comprises:
    确定搭载所述检测装置的检测组件所受的伤害值,所述伤害值和所述击打装置的类型对应。The damage value suffered by the detection component equipped with the detection device is determined, and the damage value corresponds to the type of the beating device.
  10. 根据权利要求1所述的检测方法,其特征在于,所述光信号包括可见光和红外光中至少一种。The detection method according to claim 1, wherein the optical signal includes at least one of visible light and infrared light.
  11. 一种检测装置,其特征在于,所述检测装置包括:A detection device, characterized in that the detection device comprises:
    光检测件,用于接收所述击打装置发射的光信号以生成光信息;The light detecting element is used to receive the light signal emitted by the striking device to generate light information;
    压力检测件,用于接收击打装置的撞击以生成撞击信息;和The pressure detection element is used to receive the impact of the beating device to generate impact information; and
    处理芯片,用于获取所述光信息和撞击信息、及根据所述光信息和所述撞击信息确定所述击打装置的类型。The processing chip is used to obtain the light information and impact information, and determine the type of the beating device according to the light information and the impact information.
  12. 根据权利要求10所述的检测装置,其特征在于,所述处理芯片还用于根据所述光信息包含的编码信息和所述撞击信息确定所述击打装置的类型。The detection device according to claim 10, wherein the processing chip is further configured to determine the type of the striking device according to the code information contained in the optical information and the impact information.
  13. 根据权利要求12所述的检测装置,其特征在于,所述击打装置和所述编码信息一一对应,所述编码信息包括类型信息和编号信息,所述类型信息与所述击打装置的类型对应,所述编号信息与所述击打装置的身份编号对应。The detection device according to claim 12, wherein the beating device corresponds to the coding information in a one-to-one correspondence, and the coding information includes type information and number information, and the type information corresponds to that of the beating device. The type corresponds, and the number information corresponds to the identity number of the beating device.
  14. 根据权利要求12所述的检测装置,其特征在于,所述编码信息为二进制编码信息,所述二进制编码信息中包含至少一位低电平信号以及至少一位高电平信号。The detection device according to claim 12, wherein the coded information is binary coded information, and the binary coded information contains at least one low-level signal and at least one high-level signal.
  15. 根据权利要求12所述的检测装置,其特征在于,所述处理芯片还用于在所述检测装置获取到所述光信息的预定时长内,若获取到所述撞击信息,则根据所述编码信息确定所述击打装置的类型、及在所述检测装置获取到所述光信息的预定时长内,若未获取到所述撞击信息,则确定所述击打装置的击打无效。The detection device according to claim 12, wherein the processing chip is further configured to, within a predetermined period of time when the detection device obtains the optical information, if the impact information is obtained, then according to the code The information determines the type of the striking device, and within the predetermined time period when the detection device obtains the optical information, if the impact information is not obtained, it is determined that the striking of the striking device is invalid.
  16. 根据权利要求12所述的检测装置,其特征在于,所述处理芯片还用于在所述检测装置获取到所述光信息的预定时长内,若获取到所述撞击信息,则所述检测装置屏蔽从获取到所述撞击信息后的预设时长内所有对所述检测装置的撞击。The detection device according to claim 12, wherein the processing chip is further configured to: within a predetermined time period when the detection device obtains the optical information, if the impact information is obtained, the detection device All impacts to the detection device within a preset time period after the impact information is obtained are shielded.
  17. 根据权利要求11所述的检测装置,其特征在于,所述处理芯片还用于根据所述光信息中包含的所述光信号的波段信息和所述撞击信息确定所述击打装置的类型。The detection device according to claim 11, wherein the processing chip is further configured to determine the type of the striking device according to the waveband information of the optical signal and the impact information contained in the optical information.
  18. 根据权利要求11所述的检测装置,其特征在于,所述处理芯片还用于确定搭载所述检测装置的检测组件所受的伤害值,所述伤害值和所述击打装置的类型对应。11. The detection device according to claim 11, wherein the processing chip is further used to determine a damage value suffered by a detection component carrying the detection device, and the damage value corresponds to the type of the beating device.
  19. 一种检测组件,其特征在于,包括:A detection component, which is characterized in that it comprises:
    座体以及检测装置,所述检测装置安装在所述座体上,所述检测装置包括:A base and a detection device, the detection device is installed on the base, and the detection device includes:
    光检测件,用于接收所述击打装置发射的光信号以生成光信息;The light detecting element is used to receive the light signal emitted by the striking device to generate light information;
    压力检测件,用于接收击打装置的撞击以生成撞击信息;和The pressure detection element is used to receive the impact of the beating device to generate impact information; and
    处理芯片,用于获取所述光信息和撞击信息、及根据所述光信息和所述撞击信息确定所述击打装置的类型。The processing chip is used to obtain the light information and impact information, and determine the type of the beating device according to the light information and the impact information.
  20. 根据权利要求19所述的检测组件,其特征在于,所述处理芯片还用于根据所述光信息包含的编码信息和所述撞击信息确定所述击打装置的类型。The detection component according to claim 19, wherein the processing chip is further configured to determine the type of the striking device according to the code information contained in the optical information and the impact information.
  21. 根据权利要求20所述的检测组件,其特征在于,所述击打装置和所述编码信息一一对应,所述编码信息包括类型信息和编号信息,所述类型信息与所述击打装置的类型对应,所述编号信息与所述击打装置的身份编号对应。The detection component according to claim 20, wherein the beating device corresponds to the coded information in a one-to-one correspondence, and the coded information includes type information and number information, and the type information corresponds to the coded information of the beating device. The type corresponds, and the number information corresponds to the identity number of the beating device.
  22. 根据权利要求20所述的检测组件,其特征在于,所述编码信息为二进制编码信息,所述二进制编码信息中包含至少一位低电平信号以及至少一位高电平信号。The detection component according to claim 20, wherein the coded information is binary coded information, and the binary coded information includes at least one bit of low level signal and at least one bit of high level signal.
  23. 根据权利要求20所述的检测组件,其特征在于,所述处理芯片还用于在所述检测装置获取到所述光信息的预定时长内,若获取到所述撞击信息,则根据所述编码信息确定所述击打装置的类型、及在所述检测装置获取到所述光信息的预定时长内,若未获取到所述撞击信息,则确定所述击打装置的击打无效。22. The detection component according to claim 20, wherein the processing chip is further configured to: within a predetermined period of time when the detection device obtains the optical information, if the impact information is obtained, according to the code The information determines the type of the striking device, and within the predetermined time period when the detection device obtains the optical information, if the impact information is not obtained, it is determined that the striking of the striking device is invalid.
  24. 根据权利要求20所述的检测组件,其特征在于,所述处理芯片还用于在所述检测装置获取到所述光信息的预定时长内,若获取到所述撞击信息,则所述检测装置屏蔽从获取到所述撞击信息后的预设时长内所有对所述检测装置的撞击。22. The detection component according to claim 20, wherein the processing chip is further configured to: within a predetermined time period when the detection device obtains the optical information, if the impact information is obtained, the detection device All impacts to the detection device within a preset time period after the impact information is obtained are shielded.
  25. 根据权利要求19所述的检测组件,其特征在于,所述处理芯片还用于根据所述光信息中包含的所述光信号的波段信息和所述撞击信息确定所述击打装置的类型。The detection component according to claim 19, wherein the processing chip is further configured to determine the type of the striking device according to the waveband information of the optical signal contained in the optical information and the impact information.
  26. 根据权利要求19所述的检测组件,其特征在于,所述处理芯片还用于确定搭载所述检测装置的检测组件所受的伤害值,所述伤害值和所述击打装置的类型对应。22. The detection component according to claim 19, wherein the processing chip is further used to determine an injury value suffered by the detection component carrying the detection device, and the injury value corresponds to the type of the beating device.
  27. 一种包含计算机可执行指令的非易失性计算机可读存储介质,其特征在于,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行一种检测方法,所述检测方法包括:A non-volatile computer-readable storage medium containing computer-executable instructions, wherein when the computer-executable instructions are executed by one or more processors, the processors are caused to execute a detection method, The detection method includes:
    接收击打装置发射的光信号和撞击;Receive the light signal and impact emitted by the beating device;
    获取所述光信号对应的光信息和撞击信息;及Acquiring light information and impact information corresponding to the light signal; and
    根据所述光信息和所述撞击信息确定所述击打装置的类型。The type of the beating device is determined according to the light information and the impact information.
  28. 根据权利要求27所述的检测方法,其特征在于,所述根据所述光信息和所述撞击信息确定所述击打装置的类型,包括:The detection method according to claim 27, wherein the determining the type of the beating device according to the light information and the impact information comprises:
    根据所述光信息包含的编码信息和所述撞击信息确定所述击打装置的类型。The type of the striking device is determined according to the code information contained in the optical information and the impact information.
  29. 根据权利要求28所述的检测方法,其特征在于,所述击打装置和所述编码信息一一对应,所述编码信息包括类型信息和编号信息,所述类型信息与所述击打装置的类型对应,所述编号信息与所述击打装置的身份编号对应。The detection method according to claim 28, wherein the beating device corresponds to the coded information in a one-to-one correspondence, the coded information includes type information and number information, and the type information corresponds to the coded information of the beating device. The type corresponds, and the number information corresponds to the identity number of the beating device.
  30. 根据权利要求28所述的检测方法,其特征在于,所述编码信息为二进制编码信息。The detection method according to claim 28, wherein the coded information is binary coded information.
  31. 根据权利要求30所述的检测方法,其特征在于,所述二进制编码信息中包含至少一位低电平信号以及至少一位高电平信号。The detection method according to claim 30, wherein the binary code information contains at least one low-level signal and at least one high-level signal.
  32. 根据权利要求28所述的检测方法,其特征在于,所述根据所述光信息包含的编码信息和所述撞击信息确定所述击打装置的类型,包括:The detection method according to claim 28, wherein the determining the type of the striking device according to the code information contained in the optical information and the impact information comprises:
    在所述检测装置获取到所述光信息的预定时长内,若获取到所述撞击信息,则根据所述编码信息确定所述击打装置的类型;和If the impact information is acquired within the predetermined time period when the detection device acquires the optical information, the type of the striking device is determined according to the code information; and
    在所述检测装置获取到所述光信息的预定时长内,若未获取到所述撞击信息,则确定所述击打装置的击打无效。If the impact information is not acquired within the predetermined time period when the detection device acquires the optical information, it is determined that the hitting of the hitting device is invalid.
  33. 根据权利要求28所述的检测方法,其特征在于,所述检测方法还包括:The detection method according to claim 28, wherein the detection method further comprises:
    在所述检测装置获取到所述光信息的预定时长内,若获取到所述撞击信息,则所述检测装置屏蔽从获取到所述撞击信息后的预设时长内所有对所述检测装置的撞击。Within the predetermined period of time when the detection device obtains the optical information, if the impact information is obtained, the detection device shields all communications to the detection device within the preset time period after the impact information is obtained. Hit.
  34. 根据权利要求27所述的检测方法,其特征在于,所述根据所述光信息和所述撞击信息确定所述击打装置的类型,包括:The detection method according to claim 27, wherein the determining the type of the beating device according to the light information and the impact information comprises:
    根据所述光信息中包含的所述光信号的波段信息和所述撞击信息确定所述击打装置的类型。The type of the striking device is determined according to the waveband information of the optical signal and the impact information contained in the optical information.
  35. 根据权利要求27所述的检测方法,其特征在于,所述检测方法还包括:The detection method according to claim 27, wherein the detection method further comprises:
    确定搭载所述检测装置的检测组件所受的伤害值,所述伤害值和所述击打装置的类型对应。The damage value suffered by the detection component equipped with the detection device is determined, and the damage value corresponds to the type of the beating device.
  36. 根据权利要求27所述的检测方法,其特征在于,所述光信号包括可见光和红外光中至少一种。The detection method according to claim 27, wherein the optical signal comprises at least one of visible light and infrared light.
PCT/CN2019/129962 2019-12-30 2019-12-30 Detection method, detection device, detection assembly, and storage medium WO2021134228A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/129962 WO2021134228A1 (en) 2019-12-30 2019-12-30 Detection method, detection device, detection assembly, and storage medium
CN201980047477.6A CN112469484B (en) 2019-12-30 2019-12-30 Detection method, detection device, detection assembly and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/129962 WO2021134228A1 (en) 2019-12-30 2019-12-30 Detection method, detection device, detection assembly, and storage medium

Publications (1)

Publication Number Publication Date
WO2021134228A1 true WO2021134228A1 (en) 2021-07-08

Family

ID=74807021

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/129962 WO2021134228A1 (en) 2019-12-30 2019-12-30 Detection method, detection device, detection assembly, and storage medium

Country Status (2)

Country Link
CN (1) CN112469484B (en)
WO (1) WO2021134228A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113189908B (en) * 2021-04-29 2023-12-29 深圳市工匠社科技有限公司 Control circuit, control method and robot athletic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3927480A (en) * 1971-12-31 1975-12-23 Saab Scania Ab Gunnery training scoring system with laser pulses
KR100816388B1 (en) * 2006-10-02 2008-03-25 주식회사 코리아일레콤 Man-worn laser detector and method of controling thereof in a combat training simulation system
US8336883B2 (en) * 2009-01-16 2012-12-25 Thomas Smalley Ball-striking game
CN107050843A (en) * 2017-04-14 2017-08-18 广州市智专信息科技有限公司 A kind of unmanned plane method for gaming and corresponding unmanned plane and laser gun
CN107223205A (en) * 2016-05-31 2017-09-29 深圳市大疆创新科技有限公司 Detect detecting system, method and the loose impediment of external impact thing
CN206837451U (en) * 2017-06-13 2018-01-05 赵强 A kind of structure of the electronic plug-in simulated photoelectric gun post of shooting gun in kind
CN206965096U (en) * 2017-05-12 2018-02-06 深圳市大疆创新科技有限公司 Bullet and trigger mechanism for match
CN108079566A (en) * 2016-11-20 2018-05-29 刘水军 Water bullet target practice interaction systems
CN108955364A (en) * 2018-07-23 2018-12-07 清华大学 Laser simulation shooting exercise system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3927480A (en) * 1971-12-31 1975-12-23 Saab Scania Ab Gunnery training scoring system with laser pulses
KR100816388B1 (en) * 2006-10-02 2008-03-25 주식회사 코리아일레콤 Man-worn laser detector and method of controling thereof in a combat training simulation system
US8336883B2 (en) * 2009-01-16 2012-12-25 Thomas Smalley Ball-striking game
CN107223205A (en) * 2016-05-31 2017-09-29 深圳市大疆创新科技有限公司 Detect detecting system, method and the loose impediment of external impact thing
CN108079566A (en) * 2016-11-20 2018-05-29 刘水军 Water bullet target practice interaction systems
CN107050843A (en) * 2017-04-14 2017-08-18 广州市智专信息科技有限公司 A kind of unmanned plane method for gaming and corresponding unmanned plane and laser gun
CN206965096U (en) * 2017-05-12 2018-02-06 深圳市大疆创新科技有限公司 Bullet and trigger mechanism for match
CN206837451U (en) * 2017-06-13 2018-01-05 赵强 A kind of structure of the electronic plug-in simulated photoelectric gun post of shooting gun in kind
CN108955364A (en) * 2018-07-23 2018-12-07 清华大学 Laser simulation shooting exercise system

Also Published As

Publication number Publication date
CN112469484A (en) 2021-03-09
CN112469484B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
US9057582B2 (en) Simulation system
CN204255183U (en) Electronic laser target and targeting system
JPS60251397A (en) Firing practice method
US20070264616A1 (en) Structure of Detecting Device Used in Miles System and Gun Simulator
US8344302B1 (en) Optically-coupled communication interface for a laser-guided projectile
US20180353845A1 (en) Laser Tag Sword System and Method of Use
WO2021134228A1 (en) Detection method, detection device, detection assembly, and storage medium
CN101500676A (en) Targeting system for a robot gaming environment
CN109975825B (en) Single-emitting multi-receiving area scanning type laser detection device assembled on non-rotating bomb
CN108303886B (en) Pilot's Real-time Decision prediction technique based on Aircraft Survivability
US20140324198A1 (en) Method for detecting a point of impact on a real moving target
US6398555B1 (en) Simulation system
KR100624202B1 (en) A structure and processing methods of mock grenade
KR100544101B1 (en) A structure of detecting device used in miles system
US3950862A (en) Solar cell detector array for engagement simulation
RU2655705C1 (en) Ammunition of non-contact action with remote laser fuse
JPH02101399A (en) Firing training effect deciding circuit employing laser beam
JP2010210148A (en) Target device
JP2004144451A (en) Gun
JPS6136188B2 (en)
KR101242483B1 (en) Simulated combat training system using mocked up hand grenade
RU2296287C1 (en) Target seeker of self-aiming war component
EP1840496A1 (en) A shoot-back unit and a method for shooting back at a shooter missing a target
US11536544B1 (en) Target tracking system
WO2021100683A1 (en) Sound generation device and optical target shooting system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19958145

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19958145

Country of ref document: EP

Kind code of ref document: A1