Method and device for generating motion trail of equipment, and medium

By using step data and direction data to generate motion trajectories in wearable devices, the problem of high energy consumption when generating motion trajectories is solved, efficiency is improved and battery life is extended.

CN119104049APending Publication Date: 2024-12-10ZHUHAI MOJIE TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310678626.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-08
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

Wearable devices need to process a large amount of data when generating motion trajectories, resulting in large energy consumption and affecting the battery life of the device.

Method used

By fully utilizing step data and direction data, the processing of other data is reduced, and the second coordinate of the device is determined using step data and direction data, thereby generating a motion trajectory and reducing the amount of data and calculation.

Benefits of technology

It improves the efficiency of the equipment's motion trajectory generation, reduces energy consumption, and extends the battery life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119104049A_ABST
    Figure CN119104049A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method and a device for generating a motion track of equipment, and a medium. The method for generating the motion trail of the equipment comprises the following steps: acquiring a first coordinate of the wearable equipment, and acquiring step number data and direction data generated by the wearable equipment; determining a second coordinate of the wearable device based on the step number data and the direction data; the second coordinate of the wearable device is determined according to the step number data and the direction data, processing of the step number data and the direction data is fully utilized, processing of other data is reduced, and the processing efficiency of the wearable device is improved. Therefore, the data volume and the calculation amount in the method for generating the motion trail of the equipment are reduced, the generation efficiency of the motion trail of the equipment is improved, the energy consumption of the equipment during motion trail generation is reduced, and the endurance time of the equipment is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, and medium for generating a motion trajectory of a device. Background Art

[0002] With the development of science and technology, wearable bag devices are gradually applied to people's lives. Wearable bag devices are also a kind of equipment. Wearable bag devices include smart glasses, head-mounted display devices or audio devices. When the wearable bag device is worn on the user's head, the wearable bag device produces the device trajectory based on the GPS function, and needs to process a large amount of data when generating the motion trajectory of the device, such as navigation data, accelerometer data, gyroscope data and magnetometer data, which leads to high energy consumption of the device when generating the motion trajectory. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, and medium for generating a motion trajectory of a device, thereby fully utilizing the processing of step data and direction data, at least to a certain extent, and reducing the processing of other data, thereby reducing the amount of data and the amount of calculation in the method for generating the motion trajectory of the device, improving the efficiency of generating the motion trajectory of the device, and reducing the energy consumption of the device when generating the motion trajectory, thereby extending the battery life of the device.

[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0005] According to one aspect of an embodiment of the present application, a method for generating a motion trajectory of a device is provided, comprising:

[0006] Obtaining a first coordinate of a wearable device, and obtaining step data and direction data generated by the wearable device;

[0007] determining a second coordinate of the wearable device based on the step data and the direction data;

[0008] A motion trajectory of the wearable device is generated according to the first coordinate and the second coordinate.

[0009] In some embodiments of the present application, determining the second coordinate of the wearable device based on the step data and the direction data includes:

[0010] Calculate the current direction change according to the direction data;

[0011] The second coordinate is determined based on the current direction change amount, the step count data and the first coordinate.

[0012] In some embodiments of the present application, the calculating the current direction change amount according to the direction data includes:

[0013] Determine a second angle between the orientation of the wearable device at the current position and the preset direction, and determine a first angle between the orientation of the wearable device corresponding to the user in the previous step and the preset direction;

[0014] The current direction change is calculated according to the first angle and the second angle.

[0015] In some embodiments of the present application, determining the second coordinate based on the current direction change, the step count data and the first coordinate includes:

[0016] Obtain a first component and a second component in the first coordinate;

[0017] The second coordinate is determined based on the first component, the second component, and a component formed by the walking stride in the step count data and the current direction change amount.

[0018] In some embodiments of the present application, the method comprises:

[0019] Get the acceleration value of the wearable device at a preset number of steps;

[0020] The walking stride of the wearable device is determined based on the acceleration value and the preset corresponding relationship.

[0021] In some embodiments of the present application, the method further comprises:

[0022] The motion trajectory of the wearable device is backtracked to output a return trajectory between a first return node and a second return node.

[0023] In some embodiments of the present application, the method comprises:

[0024] Obtain the walking stride stored in the motion trajectory of the wearable device;

[0025] If the walking stride is consistent with the walking stride of the current user, the motion trajectory of the wearable device is output.

[0026] In some embodiments of the present application, the method further comprises:

[0027] Obtain the current node coordinates of the wearable device in the motion trajectory of the wearable device, and obtain the current coordinates of the interactive device interacting with the wearable device;

[0028] A navigation track between the current coordinates of the interactive device and the current node coordinates is determined based on the current node coordinates and the current coordinates of the interactive device, and the navigation track is transmitted to the interactive device.

[0029] According to one aspect of an embodiment of the present application, a device for generating a motion trajectory of a device is provided, comprising:

[0030] An acquisition module, used to acquire a first coordinate of a wearable device, and acquire step data and direction data generated by the wearable device;

[0031] A coordinate module, for determining a second coordinate of the wearable device based on the step data and the direction data;

[0032] A motion trajectory module is used to generate a motion trajectory of the wearable device according to the first coordinate and the second coordinate.

[0033] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for generating a motion trajectory of a device as described in the above embodiment is implemented.

[0034] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a method for generating a motion trajectory of the device as described in the above embodiments.

[0035] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for generating a motion trajectory of a device provided in the above embodiment.

[0036] In the technical solutions provided in some embodiments of the present application, a first coordinate of a wearable device is obtained, and step data and direction data generated by the wearable device are obtained; a second coordinate of the wearable device is determined based on the step data and the direction data; and a motion trajectory of the wearable device is generated according to the first coordinate and the second coordinate, wherein the second coordinate of the wearable device is determined by the step data and the direction data, which makes full use of the processing of the step data and the direction data and reduces the processing of other data, thereby reducing the amount of data and the amount of calculation in the method for generating the motion trajectory of the device, improving the efficiency of generating the motion trajectory of the device, and reducing the energy consumption of the device when generating the motion trajectory, thereby extending the battery life of the device.

[0037] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0039] Figure 1 A schematic diagram showing a flow chart of a method for generating a motion trajectory of a device according to an embodiment of the present application;

[0040] Figure 2 Shows Figure 1 Schematic diagram of the process of S120;

[0041] Figure 3 A block diagram of a device for generating a motion trajectory of a device according to an embodiment of the present application is shown;

[0042] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0043] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0044] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0045] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0046] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0047] Figure 1 A flow chart of a method for generating a motion trajectory of a device according to an embodiment of the present application is shown. The method can be applied to electronic devices, which may include but are not limited to wearable devices, such as AR (Augmented Reality), VR (Virtual Reality), MR (Mixed Reality) electronic devices, etc.

[0048] Please refer to Figure 1 The method for generating the motion trajectory of the device at least includes steps S110 to S130, which are described in detail as follows (the method is applied to a wearable device as an example for explanation):

[0049] In step S110, a first coordinate of the wearable device is obtained, and step data and direction data generated by the wearable device are obtained.

[0050] In an embodiment of the present application, the wearable device may be a smart glasses, and the first coordinate of the wearable device is used as the current coordinate of the wearable device. At this time, the current position of the wearable device in the current scene is located, and the location is marked with coordinates according to the coordinate system of the current scene, so as to determine the first coordinate of the wearable device. Optionally, the first coordinate may be the starting point coordinate of the motion trajectory of the wearable device, and the second coordinate may be the end point coordinate of the motion trajectory of the wearable device. At this time, the first coordinate is the previous step coordinate of the second coordinate, and the second coordinate is determined by combining the first coordinate, the step number data and the direction data.

[0051] In an embodiment of the present application, the wearable device can obtain the first coordinate when receiving an acquisition instruction for obtaining coordinates. The acquisition instruction can be triggered by the user or automatically triggered when the wearable device is in a specific scenario. For example, when the wearable device starts the positioning function, the acquisition instruction can be automatically triggered. For example, when the wearable device is in a parking lot, shopping mall, etc., it can be considered that the wearable device needs to record the motion trajectory.

[0052] Among them, the step data and direction data generated by the wearable device are obtained, the step data is determined by a pedometer built into the wearable device or external to the wearable device, and the direction data is determined by a magnetometer built into the wearable device or external to the wearable device. At this time, the step data and direction data generated by the wearable device are fully utilized to reduce the processing of other data, thereby reducing the amount of data and calculation in the method for generating the motion trajectory of the device.

[0053] At this time, the first coordinate of the wearable device is obtained first, and then the step data and direction data are obtained, which can be adjusted according to the actual scene. The step data and direction data correspond to the same timestamp.

[0054] When the wearable device is worn by a user, the position of the wearable device is adjusted as the user walks. The wearable device may be equipped with an accelerometer so that the wearable device can be determined to be in a position change state through acceleration data output by the accelerometer.

[0055] refer to Figure 2 , in step S120, a second coordinate of the wearable device is determined based on the step data and the direction data.

[0056] In an embodiment of the present application, the step data and direction data determine the second coordinate of the wearable device, which makes full use of the processing of the step data and direction data and reduces the processing of other data, thereby reducing the amount of data and calculation in the method for generating the motion trajectory of the device, improving the efficiency of generating the motion trajectory of the device, and reducing the energy consumption of the device when generating the motion trajectory, thereby extending the battery life of the device.

[0057] The specific steps are as follows:

[0058] Step S121, calculating the current direction change according to the direction data;

[0059] Among them, the current direction change is determined based on the change of direction data. At this time, the second angle of the orientation of the wearable device at the current position relative to the preset direction is determined, and the first angle of the orientation of the wearable device corresponding to the user in the previous step relative to the preset direction is determined; the current direction change is calculated according to the first angle and the second angle. At this time, the angle difference between the first angle and the second angle is the current direction change, so as to determine the direction difference between the wearable device at the current position and the previous position through the current direction change.

[0060] Optionally, the preset direction is north, the horizontal right direction is the positive direction of the x-axis, the horizontal forward direction is the positive direction of the y-axis, and the vertical upward direction is the positive direction of the z-axis. The outputs of the magnetometer of the wearable device in the three-axis directions are bx, by, and bz respectively. Then, at the k-1th step, the second angle of the orientation of the wearable device at the current position relative to the north direction is arctan(bx k / by k ), the first angle between the wearable device and the north direction corresponding to the user in the previous step is arctan(bx k-1 / by k-1 ), from which we can get the direction change θ of the k-th step compared to the k-1-th step: θ = arctan(bx k / by k )-arctan(bx k-1 / by k-1 ).

[0061] Step S122, determining a second coordinate based on the current direction change, the step count data and the first coordinate.

[0062] In the embodiment of the present application, the second coordinate is determined based on the first coordinate in combination with the current direction change and the step data. At this time, the first component and the second component in the first coordinate are obtained; the second coordinate is determined based on the first component, the second component, the walking stride in the step data, and the component formed by the current direction change, wherein the step data includes the number of steps and the walking stride of each step. Optionally, the first component can be the horizontal coordinate of the first coordinate, and the second component can be the vertical coordinate of the first coordinate.

[0063] Among them, the second coordinate is the first component is x k , the second coordinate is the second component is y k, At this time, the first coordinate is the first component x k-1 , the cosine function cos(θ) of the current direction change and the walking stride L of the current position determine the first component of the second coordinate. The calculation formula of the first component of the second coordinate is x k= x k-1 +L*cos(θ).

[0064] The second component y is obtained by passing the first coordinate k-1 , the sine function cos(θ) of the current direction change and the walking stride L of the current position determine the second component of the second coordinate. The calculation formula of the second component of the second coordinate is y k= y k-1 +L*sin(θ), therefore, the relationship between the coordinates of the kth step and the coordinates of the k-1th step can be calculated by the direction change θ of the kth step relative to the k-1th step: (xk ,y k )=(x k-1 +L*cos(θ),y k-1 +L*sin(θ)). Optionally, the walking stride of the same user is relatively fixed.

[0065] Therefore, the current coordinates are used as reference coordinates, and the current direction change and walking stride are introduced under the reference coordinates to determine the coordinates of the next step, thereby making full use of the first coordinates, step data and direction data of the wearable device to determine the second coordinates of the wearable device, so as to generate the motion trajectory of the device using the first coordinates of the wearable device and the second coordinates of the wearable device, and reduce the processing of other data, thereby reducing the amount of data and calculation in the method for generating the motion trajectory of the device, improving the efficiency of generating the motion trajectory of the device, and reducing the energy consumption of the device when generating the motion trajectory, thereby extending the battery life of the device.

[0066] In step S130, a motion trajectory of the wearable device is generated according to the first coordinates and the second coordinates.

[0067] In an embodiment of the present application, the first coordinate and the second coordinate are connected, and the curve degree of the line segment between the first coordinate and the second coordinate is adjusted along the direction change, so as to generate a motion trajectory of the wearable device according to the first coordinate and the second coordinate. Optionally, the motion trajectory of the wearable device is the motion trajectory of the wearable device between two position points, the first coordinate is used as the starting point coordinate of the motion trajectory of the wearable device, and the second coordinate is used as the end point coordinate of the motion trajectory of the wearable device. At this time, a plurality of nodes are provided in the motion trajectory of the wearable device, and each node corresponds to a position point of the wearable device during walking.

[0068] In addition, the motion trajectory of the wearable device can be backtracked after being generated, thereby forming a backtracking trajectory, and the current user of the wearable device is guided to return according to the backtracking trajectory. At this time, the motion trajectory of the wearable device is backtracked, and the first return node and the second return node in the motion trajectory of the wearable device are marked. At this time, the first return node is the return starting point of the wearable device, and the first return node can be the current position of the wearable device; the second return node is the return end point of the wearable device, which can be a location point of interest pre-stored in the wearable device. By marking the first return node and the second return node in the motion trajectory of the wearable device, the return trajectory between the first return node and the second return node is output, so as to guide the current user of the wearable device to return through the return trajectory.

[0069] The current user of the wearable device makes a return trip and determines the number of steps required to walk from the first node of the return trip to the second node of the return trip and the walking stride of each step based on the step count data of the return trajectory, and adjusts the direction of the current user of the wearable device in time according to the direction change in each step.

[0070] In addition, when tracing back the motion trajectory of the wearable device, the magnetic field strength of the current position and the corresponding position in the return trajectory are compared N steps before and after, and the number of steps with the smallest difference in magnetic field strength is used as the number of steps corresponding to the current position in the trajectory, so as to correct the return trajectory and reduce the error of the wearable device's motion trajectory tracing, thereby improving the accuracy of the tracing trajectory. Optionally, N steps are preset steps. Optionally, the magnetic field strength of the current position and the corresponding position in the return trajectory are compared N steps before and after, and multiple magnetic field strength differences are formed, and the multiple magnetic field strength differences are compared to determine the minimum magnetic field strength difference, and determine the number of steps with the smallest magnetic field strength difference.

[0071] In another embodiment of the present application, the acceleration value of the wearable device at a preset number of steps is obtained; the walking stride of the wearable device is determined based on the acceleration value and the preset corresponding relationship, thereby determining the walking distance of the wearable device at each step, and at this time, the preset corresponding relationship is trained based on the previous acceleration value and the walking stride of the wearable device. Optionally, the preset number of steps is 5 steps or 10 steps.

[0072] At this time, the walking stride stored in the motion trajectory of the wearable device is obtained. Each user of the wearable device has a corresponding walking stride. By comparing the walking strides, it can be determined whether it is the same user or multiple users with similar walking strides; if the walking stride is consistent with the walking stride of the current user, the motion trajectory of the wearable device is output. Since the walking stride is consistent with the walking stride of the current user, the walking strides of the two users are consistent, and the motion trajectory of the wearable device can be used as a basis for guiding the motion trajectory of the two users to trace back, so as to guide the return of another user based on the motion trajectory of the wearable device, and output the motion trajectory of the wearable device, so as to facilitate the sharing of the motion trajectory of the wearable device. Optionally, the walking stride is the walking stride stored in the motion trajectory of the wearable device.

[0073] In addition, the current node coordinates of the wearable device in the motion track of the wearable device are obtained, and the current coordinates of the interactive device interacting with the wearable device are obtained; based on the current node coordinates and the current coordinates of the interactive device, the navigation track between the current coordinates of the interactive device and the current node coordinates is determined, and the navigation track is transmitted to the interactive device, wherein the navigation track between the current coordinates of the interactive device and the current node coordinates is determined based on the current node coordinates and the current coordinates of the interactive device, so as to guide the user of the corresponding interactive device to move toward the user of the wearable device according to the navigation track, so as to realize walking guidance between the two, and optionally, the interactive device and the wearable device can interact through Bluetooth connection, wireless connection, communication connection, etc., so as to facilitate the transmission of coordinate signals. The interactive device can be a wearable device or a terminal device, etc.

[0074] At this time, the navigation trajectory can guide the user of the interactive device to walk, wherein, since the navigation trajectory guides the user of the interactive device to walk mainly based on the processing of step data and direction data, and makes full use of the pedometer and magnetometer, the wearable device can also guide the navigation trajectory when it is in a scene without GPS signal, indoor scene or parking scene.

[0075] At this time, the motion trajectory is traced back through the step data and direction data, and the step data and direction data are not affected by the GPS signal and can be used in various scenarios, and the processing of other data is reduced, thereby reducing the amount of data and calculation in the device's motion trajectory generation method, improving the device's motion trajectory generation efficiency, and reducing the device's energy consumption when generating the motion trajectory, thereby extending the device's battery life.

[0076] The following describes an apparatus embodiment of the present application, which can be used to execute the method for generating the motion trajectory of the device in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the embodiment of the method for generating the motion trajectory of the device in the above-mentioned embodiment of the present application.

[0077] Figure 3 A block diagram of a device for generating a motion trajectory of a device according to an embodiment of the present application is shown.

[0078] Reference Figure 3 As shown, a device for generating a motion trajectory of a device according to an embodiment of the present application includes:

[0079] An acquisition module 210, configured to acquire a first coordinate of a wearable device, and acquire step data and direction data generated by the wearable device;

[0080] A coordinate module 220, configured to determine a second coordinate of the wearable device based on the step data and the direction data;

[0081] The trajectory module 230 is used to generate a motion trajectory of the wearable device according to the first coordinate and the second coordinate.

[0082] In one embodiment of the present application, the coordinate module 220 is further used to: calculate the current direction change amount according to the direction data;

[0083] The second coordinate is determined based on the current direction change amount, the step count data and the first coordinate.

[0084] In one embodiment of the present application, the coordinate module 220 is further used to: determine a second angle of the orientation of the wearable device at the current position relative to the preset direction, and determine a first angle of the orientation of the wearable device corresponding to the user in the previous step relative to the preset direction;

[0085] The current direction change is calculated according to the first angle and the second angle.

[0086] In one embodiment of the present application, the coordinate module 220 is further used to: obtain a first component and a second component in the first coordinate;

[0087] The second coordinate is determined based on the first component, the second component, and a component formed by the walking stride in the step count data and the current direction change amount.

[0088] In one embodiment of the present application, the trajectory module 230 is further used to: obtain the acceleration value of the wearable device at a preset number of steps;

[0089] The walking stride of the wearable device is determined based on the acceleration value and the preset corresponding relationship.

[0090] In one embodiment of the present application, the trajectory module 230 is further used to: trace back the movement trajectory of the wearable device to output a return trajectory between the first return node and the second return node.

[0091] In one embodiment of the present application, the trajectory module 230 is further used to: obtain the walking stride stored in the motion trajectory of the wearable device;

[0092] If the walking stride is consistent with the walking stride of the current user, the motion trajectory of the wearable device is output to the current user.

[0093] In one embodiment of the present application, the trajectory module 230 is further used to: obtain the current node coordinates of the wearable device in the motion trajectory of the wearable device;

[0094] A navigation track of other users moving to the current node coordinates is determined based on the current node coordinates and the coordinates of other users.

[0095] In one embodiment of the present application, an electronic device is further provided, the electronic device comprising:

[0096] one or more processors;

[0097] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating the motion trajectory of the device as described in the above embodiments.

[0098] In one example, Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0099] It should be noted that Figure 4 The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0100] like Figure 4 As shown, the computer system includes a central processing unit (CPU) 301 (i.e., the processor as described above), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RAM) 303, such as executing the method described in the above embodiment. It should be understood that RAM 303 and ROM 302 are the storage devices as described above. In RAM 303, various programs and data required for system operation are also stored. CPU 301, ROM 302 and RAM 303 are connected to each other through bus 304. Input / output (I / O) interface 305 is also connected to bus 304.

[0101] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.

[0102] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, various functions defined in the system of the present application are executed.

[0103] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage medium can be, for example, - but not limited to - a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage mediums may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0104] In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0105] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0106] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0107] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0108] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0109] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0110] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0111] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for generating a motion trajectory of a device, characterized in that: include: Obtaining a first coordinate of a wearable device, and obtaining step data and direction data generated by the wearable device; determining a second coordinate of the wearable device based on the step data and the direction data; A motion trajectory of the wearable device is generated according to the first coordinate and the second coordinate.

2. The method according to claim 1, characterized in that The determining the second coordinate of the wearable device based on the step data and the direction data includes: Calculate the current direction change according to the direction data; The second coordinate is determined based on the current direction change amount, the step count data and the first coordinate.

3. The method according to claim 2, characterized in that The calculating the current direction change amount according to the direction data comprises: Determine a second angle between the orientation of the wearable device at the current position and the preset direction, and determine a first angle between the orientation of the wearable device corresponding to the user in the previous step and the preset direction; The current direction change is calculated according to the first angle and the second angle.

4. The method according to claim 3, characterized in that The determining the second coordinate based on the current direction change, the step count data and the first coordinate includes: Obtain a first component and a second component in the first coordinate; The second coordinate is determined based on the first component, the second component, and a component formed by the walking stride in the step count data and the current direction change amount.

5. The method according to claim 4, characterized in that The method comprises: Get the acceleration value of the wearable device at a preset number of steps; The walking stride of the wearable device is determined based on the acceleration value and the preset corresponding relationship.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The motion trajectory of the wearable device is backtracked to output a return trajectory between a first return node and a second return node.

7. The method according to any one of claims 1 to 5, characterized in that: The method comprises: Obtain the walking stride stored in the motion trajectory of the wearable device; If the walking stride is consistent with the walking stride of the current user, the motion trajectory of the wearable device is output.

8. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtain the current node coordinates of the wearable device in the motion trajectory of the wearable device, and obtain the current coordinates of the interactive device interacting with the wearable device; A navigation track between the current coordinates of the interactive device and the current node coordinates is determined based on the current node coordinates and the current coordinates of the interactive device, and the navigation track is transmitted to the interactive device.

9. A device for generating a motion trajectory of a device, characterized in that: include: An acquisition module, used to acquire a first coordinate of a wearable device, and acquire step data and direction data generated by the wearable device; A coordinate module, for determining a second coordinate of the wearable device based on the step data and the direction data; A trajectory module is used to generate a motion trajectory of the wearable device according to the first coordinate and the second coordinate.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a motion trajectory of the device according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Method and apparatus for generating motion trajectory of device, device, and medium

    EP4696985A1

  • Method and apparatus for generating motion trajectory of device, device, and medium

    WO2024250982A1