A building block toy independent control system and method based on multi-sensor interaction
Through the multi-sensor interactive control system, the internal structure of the building block toy is simplified, the problem of unsmooth movements in the existing technology is solved, and the precise calibration and smooth execution of multi-actions are achieved.
Patent Information
- Application Number
- CN202411001670.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-25
AI Technical Summary
When existing interactive building block toys implement multiple independent actions, their internal structures are complex, the structures are easily damaged, and the linkage between multiple control systems is insufficient, resulting in unsmooth movements.
A control system based on multi-sensor interaction is adopted, including a sensor setting module, a motion capture module, a motion analysis module and a control module. It obtains external signals through the sensor interface, analyzes and calibrates the toy motion, and adjusts the moving parts to achieve smooth motion.
The internal structure of the building block toy is simplified, the smoothness and accuracy of the movements are improved, the realization of multiple movements under a single control system is realized, and the production cost is reduced.
Smart Images

Figure CN118550215B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of toy control systems, and in particular to an independent control system and method for building block toys based on multi-sensor interaction. Background Art
[0002] Building block toys are usually cubic wooden or plastic solid toys that are decorated with letters or pictures on each surface, allowing different arrangements or building activities; interactive toys are toys that can interact with people. Through built-in sensors and computer chips, they can recognize, analyze and respond to the user's input signals such as movement, sound and touch, thereby giving the user a more realistic, interesting and participatory experience.
[0003] Existing improvements in independent control of interactive building block toys are usually improvements in toy obstacle avoidance. For example, in the Chinese patent application publication number CN113703332A, an interactive control system and toy for educational toys are disclosed. This solution is to protect the safety of the toy while also protecting the safety of the children using the toy by more intelligent speed control and obstacle avoidance. Other improvements in independent control of interactive building block toys are usually improvements in the diversification of interactive functions. In the existing improvements, in terms of independent control of interactive building block toys, when the building block toys are able to achieve multiple independent actions, multiple different control systems are placed in the building block toys, which makes the internal structure of the building block toys more complicated and the toy structure is easily damaged. At the same time, there is a lack of linkage control between the multiple control systems, resulting in the problem that the movements of the building block toys are not smooth enough. In view of this, it is necessary to improve the existing independent control method of interactive building block toys. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent, by proposing an independent control method for building block toys based on multi-sensor interaction, which is used to solve the problem in the prior art of independent control of interactive building block toys. When the building block toys are able to realize multiple independent actions, multiple different control systems are placed in the building block toys, which makes the internal structure of the building block toys more complicated and the toy structure is easily damaged. At the same time, there is a lack of linkage control between the multiple control systems, resulting in the problem that the movements of the building block toys are not smooth enough.
[0005] To achieve the above-mentioned object, the present invention provides an independent control system for building block toys based on multi-sensor interaction, comprising: a sensor setting module, a motion capture module, a motion analysis module and a control module; the sensor setting module, the motion capture module and the motion analysis module are communicatively connected, and the motion analysis module is communicatively connected to the control module;
[0006] The sensor setting module is used to place a sensor in the toy and set a plurality of sensor interfaces on the sensor;
[0007] The motion capture module is used to obtain a plurality of toy actions that the building block toy can perform, and obtain the moving parts corresponding to each toy action based on the toy actions;
[0008] The motion analysis module is used to obtain the triggering features corresponding to each toy motion based on the coordinates of the multiple sensing interfaces of the sensor in the three-dimensional rectangular coordinate system;
[0009] The control module is used to establish an integrated module in the sensor, and the integrated module is used to store the trigger characteristics corresponding to each toy action; when the sensor interface receives an external signal, the movement of the building block toy is controlled based on the external signal and the calibration characteristics of the building block toy after the movement are obtained based on the method of obtaining the trigger characteristics, and an error comparison is performed on the calibration characteristics and the trigger characteristics, and the components of the building block toy that move incorrectly are adjusted based on the results of the error comparison.
[0010] Further, the sensor setting module is configured with a sensor setting strategy, and the sensor setting strategy includes: placing a sensor in the building block toy, wherein the sensor includes a plurality of sensor interfaces, and the sensor interface is used to receive external action signals or sound signals in the toy component, and provide feedback to the sensor based on the received signal;
[0011] The movable parts placed in the building block toy are respectively recorded as action parts DB1 to action parts DBN; and the corresponding multiple sensor interfaces in the action parts are respectively recorded as action interfaces DJ1 to action interfaces DJN.
[0012] Furthermore, the motion capture module is configured with a motion capture strategy, which includes: recording a plurality of independent actions that the building block toy can perform as toy actions WD1 to toy actions WDM; for any toy action WDM1 from toy actions WD1 to toy actions WDM, recording the action parts of the building block toy that are in motion when performing the toy action WDM1 as the motion parts of the toy action WDM1;
[0013] Get the moving parts for all your toy actions.
[0014] Further, the action analysis module is configured with an action modeling strategy, and the action modeling strategy includes: for any toy action WDM1 from toy actions WD1 to toy actions WDM, controlling movable parts in the building block toy to make the building block toy perform toy action WDM1, and keeping the building block toy still after completing the toy action WDM1, and recording the building block toy at this time as a completed state YZM1;
[0015] A three-dimensional rectangular coordinate system is established, which is recorded as the sensor analysis coordinate system, wherein the units of the X-axis, Y-axis and Z-axis of the sensor analysis coordinate system are all cm;
[0016] Put the building block toys in the normal state into the sensor analysis coordinate system in equal proportion, and record the coordinates of multiple action interfaces in the sensor analysis coordinate system as normal interface coordinates CJ1 to normal interface coordinates CJN, where the normal state is the state of the building block toys when no interaction is performed and no action is completed;
[0017] Place the building block toys in the completed state YZM1 in equal proportion into the sensor analysis coordinate system, and record the coordinates of multiple action interfaces in the sensor analysis coordinate system as action interface coordinates DZ1 to action interface coordinates DZN; record the action interface coordinates in the moving parts of the toy action WDM1 in the action interface coordinates DZ1 to action interface coordinates DZN as moved coordinates YY1 to moved coordinates YYK, where K is a positive integer less than or equal to N and greater than or equal to 1, and the position of the building block toy in the normal state when placed in the sensor analysis coordinate system is the same as the position when the building block toy in the completed state YZM1 is placed.
[0018] Furthermore, the motion analysis module is also configured with a motion analysis strategy, which includes: for any one of the moved coordinates YYK1 from the moved coordinates YY1 to the moved coordinates YYK, the two moved coordinates closest to the moved coordinate YYK1 are marked as adjacent edge coordinates LBK1~1 and adjacent edge coordinates LBK1~2, the coordinate value of the moved coordinate YYK1 is recorded as (α1, α2, α3), the coordinate values of the adjacent edge coordinates LBK1~1 and the adjacent edge coordinates LBK1~2 are recorded as (β1, β2, β3) and (γ1, γ2, γ3), respectively, and the adjacent angle cosine of the moved coordinate YYK1 is obtained using a motion cosine algorithm, and the motion cosine algorithm includes: , where F is the cosine of the adjacent angle; the motion angle algorithm is used to obtain the adjacent angle of the moved coordinate YYK1, and the motion angle algorithm includes: , where f is the adjacent angle of the moved coordinate YYK1.
[0019] Furthermore, the motion analysis strategy also includes: connecting the adjacent edge coordinate LBK1~1 with the adjacent edge coordinate LBK1~2 in the sensor analysis coordinate system, and recording the line segment obtained after the connection as the positioning line segment of the moved coordinate YYK1, and recording the adjacent angle and the positioning line segment of the moved coordinate YYK1 as the trigger feature of the moved coordinate YYK1;
[0020] Get the trigger features of all the moved coordinates corresponding to the completed state YZM1;
[0021] Get the trigger features of all moved coordinates corresponding to all completed states.
[0022] Further, the control module is configured with a real-time acquisition strategy, which includes: establishing an integrated module in the sensor, the integrated module being used to store trigger features of all moved coordinates corresponding to all completed states;
[0023] When the building block toy is started, the sensor interface is used to receive external action signals and sound signals in real time. When the trigger condition of any toy action WDM1 from toy action WD1 to toy action WDM is met, the building block toy at this time is recorded as the waiting state DYM1; the trigger characteristics of all moved coordinates of the completed state corresponding to the toy action WDM1 are recorded as standard trigger characteristics.
[0024] Furthermore, the control module is also configured with an action corresponding strategy, which includes: placing the building block toys in the waiting state DYM1 in equal proportion into the sensor analysis coordinate system, wherein the position of the building block toys in the waiting state DYM1 in the sensor analysis coordinate system is the same as the position of the building block toys in the normal state;
[0025] For any motion interface coordinate YJA within any moving component YBA of the toy action WDM1, move the moving component YBA from the point where the motion interface coordinate YJA is located to the point where the moved coordinate YYA is located, wherein the moved coordinate YYA is the action interface coordinate within the moving component YBA when the trigger feature of the completed state YZM1 corresponding to the toy action WDM1 is obtained.
[0026] Furthermore, the control module is also configured with a control strategy, which includes: when all moving parts of the toy action WDM1 have completed movement, for any moving part YBA of the toy action, a trigger feature corresponding to the action interface coordinates in the moving part YBA is obtained and recorded as a correction feature, and when the adjacent angle in the correction feature is equal to the adjacent angle in the standard trigger feature and the positioning line segment in the correction feature coincides with the positioning line segment in the standard trigger feature, the action part DBA is recorded as a correct moving part;
[0027] When the adjacent angle in the correction feature is not equal to the adjacent angle in the standard trigger feature or the positioning line segment in the correction feature does not overlap with the positioning line segment in the standard trigger feature, the action component DBA is recorded as an erroneous moving component. When the action component DBA is recorded as an erroneous moving component, the moving components where the two adjacent side coordinates corresponding to the moved coordinate YYA are located are obtained, which are recorded as calibrable components KJ1 and calibrable components KJ2. The positions of the calibrable components KJ1 and the calibrable components KJ2 are adjusted so that the adjacent side coordinates in the calibrable components KJ1 and the calibrable components KJ2 after adjustment are equal to the adjacent angle in the trigger feature obtained after the analysis of the moved coordinate YYA by the action analysis strategy and the adjacent angle in the standard trigger feature, and the positioning line segment in the obtained trigger feature overlaps with the positioning line segment in the standard trigger feature.
[0028] Based on the processing method of the moving parts YBA, all the moving parts in the toy action WDM1 are processed. When all the parts in the toy action WDM1 are recorded as correct moving parts or after the positions of the calibrable parts are calibrated after being recorded as incorrect moving parts, the building block toy at this time is recorded as a building block toy that has completed the toy action WDM1; when the building block toy is recorded as a building block toy that has completed the action M1, the moving parts of the actual building block toy are controlled to make the actual building block toy action consistent with the action of the building block toy in the sensor analysis coordinate system.
[0029] In a second aspect, the present invention provides a method for independent control of a building block toy based on multi-sensor interaction, comprising the following steps: placing a sensor in the toy, and setting a plurality of sensor interfaces on the sensor;
[0030] Acquire multiple toy actions that the building block toy can perform, and acquire a moving part corresponding to each toy action based on the toy actions;
[0031] Acquire trigger features corresponding to each toy action based on coordinates of multiple sensing interfaces of the sensor in a three-dimensional rectangular coordinate system;
[0032] An integrated module is established in the sensor, and the integrated module is used to store the trigger characteristics corresponding to each toy action; when the sensor interface receives an external signal, the movement of the building block toy is controlled based on the external signal and the calibration characteristics of the building block toy after the movement are obtained based on the method of obtaining the trigger characteristics, an error comparison is performed between the calibration characteristics and the trigger characteristics, and the incorrectly moving parts of the building block toy are adjusted based on the results of the error comparison.
[0033] Beneficial effects of the present invention: the present invention first places a sensor in the toy, and sets a plurality of sensing interfaces on the sensor; obtains a plurality of toy actions that the building block toy can make, and obtains a moving part corresponding to each toy action based on the toy action; then obtains a trigger feature corresponding to each toy action based on the coordinates of the plurality of sensing interfaces of the sensor in a three-dimensional rectangular coordinate system, and the advantage of this is that by obtaining the trigger feature corresponding to each toy action based on the plurality of sensing interfaces, it is helpful to quickly calibrate the toy action when controlling the building block toy to make different toy actions, so that the action actually made by the building block toy is consistent with the triggered trigger condition, thereby achieving the building block toy making a plurality of toy actions;
[0034] The present invention also establishes an integrated module in the sensor; when the sensor interface receives an external signal, the movement of the building block toy is controlled based on the external signal and the calibration feature of the building block toy after the movement is obtained based on the method of obtaining the trigger feature, and finally an error comparison is performed between the calibration feature and the trigger feature, and based on the result of the error comparison, the wrongly moving parts in the building block toy are adjusted. The advantage of this is that by establishing an integrated module and storing the trigger features of multiple toy actions through the integrated module, it is possible to enable the building block toy to perform multiple toy actions through the control system and the integrated module when only one control system is placed in the building block toy, thereby saving the production cost and simplifying the internal structure of the building block toy; at the same time, by obtaining the calibration feature of the building block toy and performing an error comparison between the calibration feature and the trigger feature, it is possible to prevent the building block toy from performing wrong toy actions when receiving an external signal, thereby improving the movement smoothness and accuracy of the building block toy. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flow chart of the steps of the method of the present invention;
[0036] Figure 2 A schematic diagram of obtaining the trigger feature of the present invention;
[0037] Figure 3 is a functional block diagram of the system of the present invention;
[0038] Figure 4 It is a connection block diagram of the electronic device of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Example 1, please refer to Figure 1 As shown, the present application provides a method for independent control of building block toys based on multi-sensor interaction, including: step S1, placing a sensor in the toy, and setting a plurality of sensor interfaces on the sensor.
[0041] Step S1 includes the following sub-steps:
[0042] Step S101, placing a sensor in the building block toy, wherein the sensor includes a plurality of sensor interfaces, and the sensor interfaces are used to receive external action signals or sound signals in the toy components, and provide feedback to the sensor based on the received signals;
[0043] Step S102 , the movable parts placed in the building block toy are recorded as action parts DB1 to action parts DBN; and the corresponding multiple sensor interfaces in the action parts are recorded as action interfaces DJ1 to action interfaces DJN.
[0044] Step S2, obtaining a plurality of toy actions that the building block toy can perform, and obtaining a moving part corresponding to each toy action based on the toy actions.
[0045] Step S2 includes the following sub-steps:
[0046] Step S201, a plurality of independent actions that can be completed by the building block toy are recorded as toy actions WD1 to toy actions WDM; for any toy action WDM1 among toy actions WD1 to toy actions WDM, the action parts of the building block toy that are in motion when performing the toy action WDM1 are recorded as motion parts of the toy action WDM1;
[0047] In the specific implementation process, for example, in the specific analysis, the action parts are: head part No. 1, head part No. 2, trunk part No. 1, trunk part No. 2, trunk part No. 3, arm part No. 1, arm part No. 2, leg part No. 1, leg part No. 2, foot part No. 1 and foot part No. 2. When the building block toy performs the toy action WDM1, the motion parts in motion are head part No. 1, trunk part No. 2, arm part No. 1 and arm part No. 2. Therefore, head part No. 1, trunk part No. 2, arm part No. 1 and arm part No. 2 are recorded as the motion parts of the toy action WDM1.
[0048] Step S202, obtaining moving parts of all toy actions.
[0049] Step S3, acquiring trigger features corresponding to each toy action based on the coordinates of the multiple sensing interfaces of the sensor in the three-dimensional rectangular coordinate system.
[0050] The step S3 includes the following sub-steps: step S301, for any toy action WDM1 from toy actions WD1 to toy actions WDM, controlling movable parts in the building block toy to make the building block toy perform toy action WDM1, and keeping the building block toy still after completing the toy action WDM1, and recording the building block toy at this time as a completed state YZM1;
[0051] In the specific implementation process, for example, in the specific analysis, the toy action WDM1 is to control the torso No. 1 component and the arm No. 1 component to rotate and raise the hand. After the building block toy completes the rotation and raising the hand, the building block toy is kept still, and the building block toy at this time has been completed. State YZM1;
[0052] Step S302, establishing a three-dimensional rectangular coordinate system, recorded as a sensor analysis coordinate system, wherein the units of the X axis, Y axis and Z axis of the sensor analysis coordinate system are all cm;
[0053] Step S303, placing the building block toys in the normal state in equal proportion into the sensor analysis coordinate system, and recording the coordinates of multiple action interfaces in the sensor analysis coordinate system as normal interface coordinates CJ1 to normal interface coordinates CJN, wherein the normal state is the state of the building block toys when no interaction is performed and no action is completed;
[0054] Place the building block toys in the completed state YZM1 in equal proportion into the sensor analysis coordinate system, and record the coordinates of multiple action interfaces in the sensor analysis coordinate system as action interface coordinates DZ1 to action interface coordinates DZN; record the action interface coordinates in the moving parts of the toy action WDM1 in the action interface coordinates DZ1 to action interface coordinates DZN as moved coordinates YY1 to moved coordinates YYK, where K is a positive integer less than or equal to N and greater than or equal to 1, and the position of the building block toy in the normal state when placed in the sensor analysis coordinate system is the same as the position when the building block toy in the completed state YZM1 is placed.
[0055] In the specific implementation process, when the block occupied by the action interface in the sensor analysis coordinate system is large, the coordinates of the center point of the block occupied by the action interface are marked as the action interface coordinates;
[0056] Step S3 also includes the following sub-steps: Step S304, for any one of the moved coordinates YYK1 from the moved coordinates YY1 to the moved coordinates YYK, the two moved coordinates closest to the moved coordinate YYK1 are marked as adjacent edge coordinates LBK1~1 and adjacent edge coordinates LBK1~2, the coordinate value of the moved coordinate YYK1 is recorded as (α1, α2, α3), the coordinate values of the adjacent edge coordinates LBK1~1 and the adjacent edge coordinates LBK1~2 are recorded as (β1, β2, β3) and (γ1, γ2, γ3), respectively, and the adjacent angle cosine of the moved coordinate YYK1 is obtained using a motion cosine algorithm, and the motion cosine algorithm includes: , where F is the cosine of the adjacent angle; the motion angle algorithm is used to obtain the adjacent angle of the moved coordinate YYK1, and the motion angle algorithm includes: , where f is the adjacent angle of the moved coordinate YYK1.
[0057] In the specific implementation process, for example, in a data processing, the coordinate value of the moved coordinate YYK1 in the sensor analysis coordinate system is (1,1,1), and the coordinate values of the adjacent edge coordinate LBK1~1 and the adjacent edge coordinate LBK1~2 are (-1,0,4) and (0,4,-1) respectively. By calculation, F can be obtained as , calculated by the motion angle algorithm, the adjacent angle of the moved coordinate YYK1 is 120°;
[0058] Step S305, connecting the adjacent edge coordinate LBK1~1 with the adjacent edge coordinate LBK1~2 in the sensor analysis coordinate system, and recording the line segment obtained after the connection as the positioning line segment of the moved coordinate YYK1, and recording the adjacent angle and the positioning line segment of the moved coordinate YYK1 as the triggering feature of the moved coordinate YYK1;
[0059] See also Figure 2 As shown, the cubes corresponding to DD1 to DD5 are moving parts corresponding to a toy action, the coordinates of point DD6 are moved coordinates, and points DD7 and DD8 are the adjacent edge coordinates of point DD6. Then, through analysis, it can be obtained that straight line DD9 is a positioning line segment, and the angle formed by the line connecting DD6 and DD7 and the line connecting DD6 and DD8 at point DD6 is the adjacent angle;
[0060] Step S306, based on step 304, obtaining the trigger features of all the moved coordinates corresponding to the completed state YZM1;
[0061] Step S307, based on steps S302 to S306, obtain the trigger features of all moved coordinates corresponding to all completed states.
[0062] Step S4, establishing an integrated module in the sensor, the integrated module is used to store the trigger feature corresponding to each toy action; when the sensor interface receives an external signal, the movement of the building block toy is controlled based on the external signal and the calibration feature of the building block toy after the movement is obtained based on the method of obtaining the trigger feature, an error comparison is performed between the calibration feature and the trigger feature, and the wrongly moving parts of the building block toy are adjusted based on the result of the error comparison. In the specific implementation process, receiving the external signal through the sensor interface can be achieved through existing sensors, such as through sound sensors and gesture recognition technologies;
[0063] Step S4 includes the following sub-steps: Step S401, establishing an integrated module in the sensor, the integrated module being used to store trigger features of all moved coordinates corresponding to all completed states;
[0064] Step S402, when the building block toy is started, the sensor interface is used to receive external action signals and sound signals in real time. When the trigger condition of any toy action WDM1 from toy action WD1 to toy action WDM is met, the building block toy at this time is recorded as the waiting state DYM1; the trigger characteristics of all the moved coordinates of the completed state corresponding to the toy action WDM1 are recorded as the standard trigger characteristics.
[0065] Step S403, placing the building block toys in the waiting state DYM1 into the sensing analysis coordinate system in equal proportion, wherein the position of the building block toys in the waiting state DYM1 in the sensing analysis coordinate system is the same as the position of the building block toys in the normal state;
[0066] In the specific implementation process, by making the position of the building block toy in the waiting state DYM1 in the sensor analysis coordinate system the same as the position of the building block toy in the normal state, it can be ensured that there is no error when obtaining the motion interface coordinates, thereby performing more precise control;
[0067] Step S404, for the motion interface coordinate YJA in any moving component YBA of the toy action WDM1, move the moving component YBA from the point where the motion interface coordinate YJA is located to the point where the moved coordinate YYA is located, wherein the moved coordinate YYA is the action interface coordinate in the moving component YBA when the trigger feature of the completed state YZM1 corresponding to the toy action WDM1 is obtained.
[0068] Step S4 also includes the following sub-steps: Step S405, when all moving parts of the toy action WDM1 have completed the movement, for any moving part YBA of the toy action, based on step S304 and step S305, the trigger feature corresponding to the action interface coordinate in the moving part YBA is obtained, recorded as the correction feature, when the adjacent angle in the correction feature is equal to the adjacent angle in the standard trigger feature and the positioning line segment in the correction feature coincides with the positioning line segment in the standard trigger feature, the action part DBA is recorded as the correct moving part;
[0069] In a specific implementation process, when the adjacent angle in the correction feature is equal to the adjacent angle in the standard trigger feature and the positioning line segment in the correction feature coincides with the positioning line segment in the standard trigger feature, it means that the position of the moving part YBA is the position where the moving part YBA should be in the toy action WDM1, so the action part DBA can be recorded as the correct moving part;
[0070] When the adjacent angle in the correction feature is not equal to the adjacent angle in the standard trigger feature or the positioning line segment in the correction feature does not overlap with the positioning line segment in the standard trigger feature, the action component DBA is recorded as an erroneous moving component. When the action component DBA is recorded as an erroneous moving component, the moving component where the two adjacent side coordinates corresponding to the moved coordinate YYA are located is obtained, which are recorded as the calibrable component KJ1 and the calibrable component KJ2. The positions of the calibrable component KJ1 and the calibrable component KJ2 are adjusted so that the adjacent side coordinates in the calibrable component KJ1 and the calibrable component KJ2 after adjustment are equal to the adjacent angle in the trigger feature obtained after analysis of the moved coordinate YYA through steps S304 and S305, and the positioning line segment in the obtained trigger feature overlaps with the positioning line segment in the standard trigger feature.
[0071] Step S406, based on the processing method for the moving parts YBA, all the moving parts in the toy action WDM1 are processed. When all the parts in the toy action WDM1 are recorded as correct moving parts or after the positions of the calibrable parts are calibrated after being recorded as incorrect moving parts, the building block toy at this time is recorded as a building block toy that has completed the toy action WDM1; when the building block toy is recorded as a building block toy that has completed the action M1, the moving parts of the actual building block toy are controlled to make the actual building block toy action consistent with the action of the building block toy in the sensor analysis coordinate system.
[0072] Example 2, please refer to Figure 3 As shown, the present invention also provides an independent control system for building block toys based on multi-sensor interaction, including a sensor setting module, a motion capture module, a motion analysis module and a control module; the sensor setting module, the motion capture module and the motion analysis module are communicatively connected, and the motion analysis module is communicatively connected to the control module;
[0073] The sensor setting module is used to place a sensor in the toy and set a plurality of sensor interfaces on the sensor; the sensor setting module is configured with a sensor setting strategy, and the sensor setting strategy includes: placing a sensor in the building block toy, wherein the sensor includes a plurality of sensor interfaces, and the sensor interface is used to receive an external action signal or sound signal in the toy component, and provide feedback to the sensor based on the received signal;
[0074] The movable parts placed in the building block toy are respectively recorded as action parts DB1 to action parts DBN; and the corresponding multiple sensor interfaces in the action parts are respectively recorded as action interfaces DJ1 to action interfaces DJN.
[0075] The motion capture module is used to obtain multiple toy actions that the building block toy can perform, and obtain the moving parts corresponding to each toy action based on the toy actions; the motion capture module is configured with a motion capture strategy, and the motion capture strategy includes: recording multiple independent actions that the building block toy can complete as toy actions WD1 to toy actions WDM; for any toy action WDM1 from toy actions WD1 to toy actions WDM, recording the action parts of the building block toy that are in motion when performing toy action WDM1 as moving parts of toy action WDM1; and obtaining the moving parts of all toy actions.
[0076] The motion analysis module is used to obtain the trigger features corresponding to each toy action based on the coordinates of multiple sensor interfaces of the sensor in the three-dimensional rectangular coordinate system; the motion analysis module is configured with a motion modeling strategy, and the motion modeling strategy includes: for any toy action WDM1 from toy actions WD1 to toy actions WDM, controlling the movable parts in the building block toy to make the building block toy perform the toy action WDM1, and keeping the building block toy still after completing the toy action WDM1, and recording the building block toy at this time as the completed state YZM1;
[0077] A three-dimensional rectangular coordinate system is established, which is recorded as the sensor analysis coordinate system, wherein the units of the X-axis, Y-axis and Z-axis of the sensor analysis coordinate system are all cm;
[0078] Put the building block toys in the normal state into the sensor analysis coordinate system in equal proportion, and record the coordinates of multiple action interfaces in the sensor analysis coordinate system as normal interface coordinates CJ1 to normal interface coordinates CJN, where the normal state is the state of the building block toys when no interaction is performed and no action is completed;
[0079] Place the building block toys in the completed state YZM1 in equal proportion into the sensor analysis coordinate system, and record the coordinates of multiple action interfaces in the sensor analysis coordinate system as action interface coordinates DZ1 to action interface coordinates DZN; record the action interface coordinates in the moving parts of the toy action WDM1 in the action interface coordinates DZ1 to action interface coordinates DZN as moved coordinates YY1 to moved coordinates YYK, where K is a positive integer less than or equal to N and greater than or equal to 1, and the position of the building block toy in the normal state when placed in the sensor analysis coordinate system is the same as the position when the building block toy in the completed state YZM1 is placed.
[0080] The motion analysis module is also configured with a motion analysis strategy, which includes: for any one of the moved coordinates YYK1 from the moved coordinates YY1 to the moved coordinates YYK, the two moved coordinates closest to the moved coordinate YYK1 are marked as adjacent edge coordinates LBK1~1 and adjacent edge coordinates LBK1~2, the coordinate value of the moved coordinate YYK1 is recorded as (α1, α2, α3), the coordinate values of the adjacent edge coordinates LBK1~1 and the adjacent edge coordinates LBK1~2 are recorded as (β1, β2, β3) and (γ1, γ2, γ3), respectively, and the motion cosine algorithm is used to obtain the adjacent angle cosine of the moved coordinate YYK1, and the motion cosine algorithm includes: , where F is the cosine of the adjacent angle; the motion angle algorithm is used to obtain the adjacent angle of the moved coordinate YYK1, and the motion angle algorithm includes: , where f is the adjacent angle of the moved coordinate YYK1.
[0081] In the sensor analysis coordinate system, the adjacent edge coordinate LBK1~1 is connected with the adjacent edge coordinate LBK1~2, and the line segment obtained after the connection is recorded as the positioning line segment of the moved coordinate YYK1, and the adjacent angle and the positioning line segment of the moved coordinate YYK1 are recorded as the trigger feature of the moved coordinate YYK1;
[0082] Get the trigger features of all the moved coordinates corresponding to the completed state YZM1;
[0083] Get the trigger features of all moved coordinates corresponding to all completed states.
[0084] The control module is used to establish an integrated module in the sensor, and the integrated module is used to store the trigger characteristics corresponding to each toy action; when the sensor interface receives an external signal, the building block toy is controlled to move based on the external signal and the calibration characteristics of the building block toy after the movement are obtained based on the trigger characteristic acquisition method, the calibration characteristics are compared with the trigger characteristics, and the wrongly moving parts of the building block toy are adjusted based on the error comparison results. The control module is configured with a real-time acquisition strategy, and the real-time acquisition strategy includes: establishing an integrated module in the sensor, and the integrated module is used to store the trigger characteristics of all the moved coordinates corresponding to all the completed states;
[0085] When the building block toy is started, the sensor interface is used to receive external action signals and sound signals in real time. When the trigger condition of any toy action WDM1 from toy action WD1 to toy action WDM is met, the building block toy at this time is recorded as the waiting state DYM1; the trigger characteristics of all moved coordinates of the completed state corresponding to the toy action WDM1 are recorded as standard trigger characteristics.
[0086] The control module is also configured with an action corresponding strategy, which includes: placing the building block toys in the waiting state DYM1 in equal proportion into the sensor analysis coordinate system, wherein the position of the building block toys in the waiting state DYM1 in the sensor analysis coordinate system when placed is the same as the position of the building block toys in the normal state when placed;
[0087] For any motion interface coordinate YJA within any moving component YBA of the toy action WDM1, move the moving component YBA from the point where the motion interface coordinate YJA is located to the point where the moved coordinate YYA is located, wherein the moved coordinate YYA is the action interface coordinate within the moving component YBA when the trigger feature of the completed state YZM1 corresponding to the toy action WDM1 is obtained.
[0088] The control module is also configured with a control strategy, which includes: when all moving parts of the toy action WDM1 have completed movement, for any moving part YBA of the toy action, a trigger feature corresponding to the action interface coordinates in the moving part YBA is obtained and recorded as a correction feature, and when the adjacent angle in the correction feature is equal to the adjacent angle in the standard trigger feature and the positioning line segment in the correction feature coincides with the positioning line segment in the standard trigger feature, the action part DBA is recorded as a correct moving part;
[0089] When the adjacent angle in the correction feature is not equal to the adjacent angle in the standard trigger feature or the positioning line segment in the correction feature does not overlap with the positioning line segment in the standard trigger feature, the action component DBA is recorded as an erroneous moving component. When the action component DBA is recorded as an erroneous moving component, the moving components where the two adjacent side coordinates corresponding to the moved coordinate YYA are located are obtained, which are recorded as calibrable components KJ1 and calibrable components KJ2. The positions of the calibrable components KJ1 and the calibrable components KJ2 are adjusted so that the adjacent side coordinates in the calibrable components KJ1 and the calibrable components KJ2 after adjustment are equal to the adjacent angle in the trigger feature obtained after the analysis of the moved coordinate YYA by the action analysis strategy and the adjacent angle in the standard trigger feature, and the positioning line segment in the obtained trigger feature overlaps with the positioning line segment in the standard trigger feature.
[0090] Based on the processing method of the moving parts YBA, all the moving parts in the toy action WDM1 are processed. When all the parts in the toy action WDM1 are recorded as correct moving parts or after the positions of the calibrable parts are calibrated after being recorded as incorrect moving parts, the building block toy at this time is recorded as a building block toy that has completed the toy action WDM1; when the building block toy is recorded as a building block toy that has completed the action M1, the moving parts of the actual building block toy are controlled to make the actual building block toy action consistent with the action of the building block toy in the sensor analysis coordinate system.
[0091] Example 3, please refer to Figure 4 As shown, the present invention provides an electronic device 50, including a processor 501 and a memory 502, wherein the memory 502 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 501, the steps in the above method are executed. Through the above technical solution, the processor 501 and the memory 502 are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms (not shown), and the memory 502 stores a computer program executable by the processor 501. When the electronic device is running, the processor 501 executes the computer program to execute the method in any optional implementation of the above embodiment to achieve the following functions: first, a sensor is placed in the toy, and multiple sensing interfaces are set on the sensor; multiple toy actions that the building block toy can make are obtained, and the moving parts corresponding to each toy action are obtained based on the toy actions; then, the trigger features corresponding to each toy action are respectively obtained based on the coordinates of the multiple sensing interfaces of the sensor in the three-dimensional rectangular coordinate system; an integrated module is established in the sensor; when the sensing interface receives an external signal, the building block toy is controlled to move based on the external signal and the calibration features of the building block toy after the movement are obtained based on the method of obtaining the trigger features, and finally, the calibration features are compared with the trigger features, and the wrong moving parts in the building block toy are adjusted based on the results of the error comparison.
[0092] Embodiment 4, the present invention provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: first, a sensor is placed in the toy, and multiple sensing interfaces are set on the sensor; multiple toy actions that the building block toy can make are obtained, and the moving parts corresponding to each toy action are obtained based on the toy actions; then, the trigger features corresponding to each toy action are respectively obtained based on the coordinates of the multiple sensing interfaces of the sensor in the three-dimensional rectangular coordinate system; an integrated module is established in the sensor; when the sensing interface receives an external signal, the building block toy is controlled to move based on the external signal and the calibration features of the building block toy after the movement are obtained based on the acquisition method of the trigger features, and finally the calibration features are compared with the trigger features, and the wrong moving parts in the building block toy are adjusted based on the results of the error comparison.
[0093] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0094] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0095] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
Claims
1. An independent control system for building block toys based on multi-sensor interaction, characterized in that: include: A sensor setting module, a motion capture module, a motion analysis module and a control module; the sensor setting module, the motion capture module and the motion analysis module are communicatively connected, and the motion analysis module is communicatively connected to the control module; The sensor setting module is used to place a sensor in the toy and set a plurality of sensor interfaces on the sensor; The motion capture module is used to obtain a plurality of toy actions that the building block toy can perform, and obtain the moving parts corresponding to each toy action based on the toy actions; The motion analysis module is used to obtain the triggering features corresponding to each toy motion based on the coordinates of the multiple sensing interfaces of the sensor in the three-dimensional rectangular coordinate system; The control module is used to establish an integrated module in the sensor, and the integrated module is used to store the triggering feature corresponding to each toy action; When the sensing interface receives an external signal, the movement of the building block toy is controlled based on the external signal and the calibration feature of the building block toy after the movement is obtained based on the method of obtaining the trigger feature, an error comparison is performed between the calibration feature and the trigger feature, and the incorrectly moving parts of the building block toy are adjusted based on the result of the error comparison.
2. The independent control system for building block toys based on multi-sensor interaction according to claim 1, characterized in that: The sensor setting module is configured with a sensor setting strategy, and the sensor setting strategy includes: placing a sensor in the building block toy, wherein the sensor includes a plurality of sensor interfaces, and the sensor interfaces are used to receive external action signals or sound signals in the toy component, and provide feedback to the sensor based on the received signal; The movable parts placed in the building block toy are respectively recorded as action parts DB1 to action parts DBN; and the corresponding multiple sensor interfaces in the action parts are respectively recorded as action interfaces DJ1 to action interfaces DJN.
3. The independent control system for building block toys based on multi-sensor interaction according to claim 2, characterized in that: The motion capture module is configured with a motion capture strategy, which includes: recording multiple independent actions that can be completed by the building block toy as toy actions WD1 to toy actions WDM; for any toy action WDM1 from toy actions WD1 to toy actions WDM, recording the action parts of the building block toy that are in motion when performing the toy action WDM1 as the motion parts of the toy action WDM1; Get the moving parts for all your toy actions.
4. The independent control system for building block toys based on multi-sensor interaction according to claim 3, characterized in that: The action analysis module is configured with an action modeling strategy, which includes: for any toy action WDM1 from toy actions WD1 to toy actions WDM, controlling movable parts in the building block toy to make the building block toy perform the toy action WDM1, and keeping the building block toy still after completing the toy action WDM1, and recording the building block toy at this time as a completed state YZM1; A three-dimensional rectangular coordinate system is established, which is recorded as the sensor analysis coordinate system, wherein the units of the X-axis, Y-axis and Z-axis of the sensor analysis coordinate system are all cm; Put the building block toys in the normal state into the sensor analysis coordinate system in equal proportion, and record the coordinates of multiple action interfaces in the sensor analysis coordinate system as normal interface coordinates CJ1 to normal interface coordinates CJN, where the normal state is the state of the building block toys when no interaction is performed and no action is completed; Place the building block toys in the completed state YZM1 in equal proportion into the sensor analysis coordinate system, and record the coordinates of multiple action interfaces in the sensor analysis coordinate system as action interface coordinates DZ1 to action interface coordinates DZN; record the action interface coordinates in the moving parts of the toy action WDM1 in the action interface coordinates DZ1 to action interface coordinates DZN as moved coordinates YY1 to moved coordinates YYK, where K is a positive integer less than or equal to N and greater than or equal to 1, and the position of the building block toy in the normal state when placed in the sensor analysis coordinate system is the same as the position when the building block toy in the completed state YZM1 is placed.
5. The independent control system for building block toys based on multi-sensor interaction according to claim 4, characterized in that: The motion analysis module is also configured with a motion analysis strategy, which includes: for any one of the moved coordinates YYK1 to the moved coordinates YYK, the two moved coordinates closest to the moved coordinate YYK1 are marked as adjacent edge coordinates LBK1~1 and adjacent edge coordinates LBK1~2, the coordinate value of the moved coordinate YYK1 is recorded as (α1, α2, α3), the coordinate values of the adjacent edge coordinates LBK1~1 and the adjacent edge coordinates LBK1~2 are recorded as (β1, β2, β3) and (γ1, γ2, γ3), respectively, and the adjacent angle cosine of the moved coordinate YYK1 is obtained using a motion cosine algorithm, and the motion cosine algorithm includes: , where F is the cosine of the adjacent angle; the motion angle algorithm is used to obtain the adjacent angle of the moved coordinate YYK1, and the motion angle algorithm includes: , where f is the adjacent angle of the moved coordinate YYK1.
6. The independent control system for building block toys based on multi-sensor interaction according to claim 5, characterized in that: The motion analysis strategy also includes: connecting the adjacent edge coordinate LBK1~1 with the adjacent edge coordinate LBK1~2 in the sensor analysis coordinate system, and recording the line segment obtained after the connection as the positioning line segment of the moved coordinate YYK1, and recording the adjacent angle of the moved coordinate YYK1 and the positioning line segment as the trigger feature of the moved coordinate YYK1; Get the trigger features of all the moved coordinates corresponding to the completed state YZM1; Get the trigger features of all moved coordinates corresponding to all completed states.
7. The independent control system for building block toys based on multi-sensor interaction according to claim 6, characterized in that: The control module is configured with a real-time acquisition strategy, which includes: establishing an integrated module in the sensor, the integrated module being used to store trigger features of all moved coordinates corresponding to all completed states; When the building block toy is started, the sensor interface is used to receive external action signals and sound signals in real time. When the trigger condition of any toy action WDM1 from toy action WD1 to toy action WDM is met, the building block toy at this time is recorded as the waiting state DYM1; the trigger characteristics of all moved coordinates of the completed state corresponding to the toy action WDM1 are recorded as standard trigger characteristics.
8. The independent control system for building block toys based on multi-sensor interaction according to claim 7, characterized in that: The control module is also configured with an action corresponding strategy, which includes: placing the building block toys in the waiting state DYM1 in equal proportion into the sensor analysis coordinate system, wherein the position of the building block toys in the waiting state DYM1 in the sensor analysis coordinate system is the same as the position of the building block toys in the normal state; For any motion interface coordinate YJA within any moving component YBA of the toy action WDM1, move the moving component YBA from the point where the motion interface coordinate YJA is located to the point where the moved coordinate YYA is located, wherein the moved coordinate YYA is the action interface coordinate within the moving component YBA when the trigger feature of the completed state YZM1 corresponding to the toy action WDM1 is obtained.
9. The independent control system for building block toys based on multi-sensor interaction according to claim 8, characterized in that: The control module is also configured with a control strategy, which includes: when all moving parts of the toy action WDM1 have completed movement, for any moving part YBA of the toy action, a trigger feature corresponding to the action interface coordinates in the moving part YBA is obtained and recorded as a correction feature, and when the adjacent angle in the correction feature is equal to the adjacent angle in the standard trigger feature and the positioning line segment in the correction feature coincides with the positioning line segment in the standard trigger feature, the action part DBA is recorded as a correct moving part; When the adjacent angle in the correction feature is not equal to the adjacent angle in the standard trigger feature or the positioning line segment in the correction feature does not overlap with the positioning line segment in the standard trigger feature, the action component DBA is recorded as an erroneous moving component. When the action component DBA is recorded as an erroneous moving component, the moving components where the two adjacent side coordinates corresponding to the moved coordinate YYA are located are obtained, which are recorded as calibrable components KJ1 and calibrable components KJ2. The positions of the calibrable components KJ1 and the calibrable components KJ2 are adjusted so that the adjacent side coordinates in the calibrable components KJ1 and the calibrable components KJ2 after adjustment are equal to the adjacent angle in the trigger feature obtained after the analysis of the moved coordinate YYA by the action analysis strategy and the adjacent angle in the standard trigger feature, and the positioning line segment in the obtained trigger feature overlaps with the positioning line segment in the standard trigger feature. Based on the processing method of the moving parts YBA, all the moving parts in the toy action WDM1 are processed. When all the parts in the toy action WDM1 are recorded as correct moving parts or after the positions of the calibrable parts are calibrated after being recorded as incorrect moving parts, the building block toy at this time is recorded as a building block toy that has completed the toy action WDM1; when the building block toy is recorded as a building block toy that has completed the action M1, the moving parts of the actual building block toy are controlled to make the actual building block toy action consistent with the action of the building block toy in the sensor analysis coordinate system.
10. A method for independent control of building block toys based on multi-sensor interaction, characterized in that: An independent control system for building block toys based on multi-sensor interaction applicable to any one of claims 1 to 9 comprises the following steps: Placing a sensor in the toy and setting a plurality of sensing interfaces on the sensor; Acquire multiple toy actions that the building block toy can perform, and acquire a moving part corresponding to each toy action based on the toy actions; Acquire trigger features corresponding to each toy action based on coordinates of multiple sensing interfaces of the sensor in a three-dimensional rectangular coordinate system; An integrated module is established in the sensor, and the integrated module is used to store the triggering feature corresponding to each toy action; When the sensing interface receives an external signal, the movement of the building block toy is controlled based on the external signal and the calibration feature of the building block toy after the movement is obtained based on the method of obtaining the trigger feature, an error comparison is performed between the calibration feature and the trigger feature, and the incorrectly moving parts of the building block toy are adjusted based on the result of the error comparison.
