WO2021003994A1 - Control method for virtual character, and related product - Google Patents

Control method for virtual character, and related product Download PDF

Info

Publication number
WO2021003994A1
WO2021003994A1 PCT/CN2019/123822 CN2019123822W WO2021003994A1 WO 2021003994 A1 WO2021003994 A1 WO 2021003994A1 CN 2019123822 W CN2019123822 W CN 2019123822W WO 2021003994 A1 WO2021003994 A1 WO 2021003994A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual character
motion
joint
electronic device
instruction
Prior art date
Application number
PCT/CN2019/123822
Other languages
French (fr)
Chinese (zh)
Inventor
招俊健
梁修杰
黎招洪
Original Assignee
深圳市工匠社科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市工匠社科技有限公司 filed Critical 深圳市工匠社科技有限公司
Publication of WO2021003994A1 publication Critical patent/WO2021003994A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Definitions

  • This application relates to the technical field of machine control, and in particular to a method for controlling virtual characters and related products.
  • an embodiment of the present application provides a method for controlling a virtual character.
  • the method is applied to a virtual character control system.
  • the virtual character control system includes a processor, a communication module, an action generation module, and a collection module.
  • the communication module is coupled and connected; the method includes:
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method described in the first aspect.
  • the processor 101 is configured to process the target action information to obtain a virtual character movement instruction, and the virtual character movement instruction is used to control the movement of the virtual character;
  • the motion parameter of the virtual robot is carried in the motion instruction, and the motion instruction of the virtual robot may be obtained by encapsulating the motion parameter.
  • the preset encryption algorithm may be a symmetric encryption algorithm or an asymmetric encryption algorithm.
  • the communication module before the communication module uses a preset encryption algorithm to encrypt the virtual character movement instruction, the communication module is further configured to: add a time stamp to the virtual character movement instruction , The time stamp is used to record the time when the virtual character motion instruction is generated and the effective duration of the virtual character motion instruction, encrypt the virtual character motion instruction with the time stamp, and send the encrypted virtual character to the electronic device Character movement instruction; the electronic device is used to parse the encrypted virtual character movement instruction after receiving the encrypted virtual character movement instruction to obtain the timestamp, and determine whether the current time is within the effective duration If yes, control the motion of the virtual robot, if not, ignore the motion instruction of the virtual robot.
  • FIG. 2A provides a schematic diagram of another virtual character control system according to an embodiment of the present application.
  • the virtual character control system includes: a multi-joint controller body, the virtual servo robot main body runs on an electronic device, wherein the multi-joint controller body includes a controller motion joint, a controller microprocessor, and a control
  • the virtual character control system is used to control the motion of the virtual steering gear robot body corresponding to the multi-joint controller body, the virtual steering gear robot body running on an electronic device, wherein the The main body of the virtual servo robot includes a virtual robot wireless communication module, a virtual robot motion joint and a virtual robot microprocessor.
  • the method before sending the virtual character motion instruction to the electronic device through the communication module, the method further includes: processing the latest motion amplitude of each joint by the processor to obtain the target The target joint is the latest corresponding joint with the largest and/or smallest motion amplitude; wherein the sending the virtual character motion instruction to the electronic device through the communication module includes: sending the virtual character motion instruction to the electronic device through the communication module Send the virtual character movement instruction and the zoom-in instruction, the virtual character movement instruction is used to control the movement of the virtual character, and the zoom-in instruction is used to control the movement of the virtual character in the preview of the visual interface of the electronic device Suppose the area is enlarged to display the movement process of the target joint.
  • the method before encrypting the virtual character motion instruction by the communication module using a preset encryption algorithm, the method further includes:
  • a time stamp is added to the virtual character movement instruction through the communication module, and the time stamp is used to record the time when the virtual character movement instruction is generated and the effective duration of the virtual character movement instruction.
  • the time-stamped virtual character movement instruction is encrypted, and the encrypted virtual character movement instruction is sent to the electronic device; the electronic device parses the encrypted virtual character movement instruction after receiving the encrypted virtual character movement instruction Instruction to obtain the time stamp, and determine whether the current time is within the effective time period according to the time stamp, if yes, control the movement of the virtual character, and if not, ignore the movement instruction of the virtual character.
  • the above-mentioned program before sending the virtual character movement instruction to the electronic device through the communication module, the above-mentioned program is further used to execute instructions of the following steps:
  • the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other various media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: flash disk , Read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disc, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A control method for a virtual character, and a related product, the method being used in a virtual character control system. The virtual character control system comprises a processor, a communications module, a movement generation module, and a collection module, the processor being coupled and connected to the communications module. The method comprises: by means of the movement generation module, generating a target motion pose (301); by means of the collection module, collecting the target motion pose to obtain target motion information (302); by means of the processor, processing the target motion information to obtain a virtual character motion instruction (303); and by means of the communications module, sending the virtual character motion instruction to an electronic device so as to control the motion of the virtual character, the virtual character being run on the electronic device (304). The present invention is beneficial for providing convenience of virtual character operations for a user.

Description

虚拟角色的控制方法及相关产品Virtual character control method and related products 技术领域Technical field
本申请涉及机器控制技术领域,具体涉及一种虚拟角色的控制方法及相关产品。This application relates to the technical field of machine control, and in particular to a method for controlling virtual characters and related products.
背景技术Background technique
目前,在实现虚拟游戏的控制时,通常由用户佩戴体感设备,然后,由用户做出动作,体感设备采集用户的动作以控制虚拟角色的运动,例如,通过体感设备控制骑车游戏等。但是,体感设备在采集用户的动作时,仅能采集部分简单的动作或者预先设定好的动作,在控制时仅能完成固定动作的控制,导致动作不能由用户自主设定,从而导致了虚拟角色的动作丰富度较低,进而影响用户的游戏体验。At present, when realizing virtual game control, the user usually wears a somatosensory device, and then the user makes an action. The somatosensory device collects the user's actions to control the movement of the virtual character, for example, the somatosensory device controls the cycling game. However, when the somatosensory device collects the user's actions, it can only collect some simple actions or pre-set actions, and can only complete the control of fixed actions during control. As a result, the actions cannot be set independently by the user, resulting in virtual The character's action richness is low, which in turn affects the user's game experience.
发明内容Summary of the invention
本申请实施例提供了一种虚拟角色的控制方法及相关产品,通过采集用户的任何动作,来控制虚拟角色的运动,进而提高用户的游戏体验。The embodiments of the present application provide a virtual character control method and related products, which can control the movement of the virtual character by collecting any actions of the user, thereby improving the user's game experience.
第一方面,本申请实施例提供虚拟角色的控制方法,所述方法应用于虚拟角色控制系统,所述虚拟角色控制系统包括处理器、通信模块、动作生成模块和采集模块,所述处理器与所述通信模块耦合连接;所述方法包括:In the first aspect, an embodiment of the present application provides a method for controlling a virtual character. The method is applied to a virtual character control system. The virtual character control system includes a processor, a communication module, an action generation module, and a collection module. The communication module is coupled and connected; the method includes:
通过所述动作生成模块生成目标运动姿势;Generating a target motion posture through the motion generating module;
通过所述采集模块采集所述目标运动姿势,得到目标动作信息;Collecting the target motion posture through the acquisition module to obtain target motion information;
通过所述处理器处理所述目标动作信息,得到虚拟角色运动指令;Processing the target motion information by the processor to obtain a virtual character motion instruction;
通过所述通信模块向电子设备发送所述虚拟角色运动指令,以控制虚拟角色的运动,所述虚拟角色运行于所述电子设备上。Sending the virtual character movement instruction to the electronic device through the communication module to control the movement of the virtual character, and the virtual character runs on the electronic device.
第二方面,本申请实施例提供一种虚拟角色控制系统,所述虚拟角色控制系统包括处理器、通信模块、动作生成模块和采集模块,所述处理器与所述通信模块耦合连接;In a second aspect, an embodiment of the present application provides a virtual character control system. The virtual character control system includes a processor, a communication module, an action generation module, and a collection module, and the processor is coupled to the communication module;
所述动作生成模块,用于生成目标运动姿势;The action generation module is used to generate a target motion posture;
所述采集模块,用于采集所述目标运动姿势,得到目标动作信息;The collection module is used to collect the target motion posture to obtain target motion information;
所述处理器,用于处理所述目标动作信息,得到虚拟角色运动指令;The processor is configured to process the target motion information to obtain a virtual character motion instruction;
所述通信模块,用于向电子设备发送所述虚拟角色运动指令,以控制虚拟角色的运动,所述虚拟角色运行于所述电子设备上。The communication module is configured to send the virtual character movement instruction to an electronic device to control the movement of the virtual character, and the virtual character runs on the electronic device.
第三方面,本申请实施例提供一种虚拟角色控制设备,所述虚拟角色控制设备包括处理器、电源电路和权利要求第二方面所述的虚拟角色控制系统。In a third aspect, an embodiment of the present application provides a virtual character control device. The virtual character control device includes a processor, a power supply circuit, and the virtual character control system according to the second aspect of the claim.
第四方面,本申请实施例提供一种虚拟角色控制装置,其特征在于,所述系统包括壳体和第三方面所述的虚拟角色控制设备。In a fourth aspect, an embodiment of the present application provides a virtual character control device, wherein the system includes a housing and the virtual character control device described in the third aspect.
第五方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序使得计算机执行如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and the computer program enables a computer to execute the method described in the first aspect.
第六方面,本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机可操作来使计算机执行如第一方面所述的方法。In a sixth aspect, embodiments of the present application provide a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer is operable to cause the computer to execute the computer program as described in the first aspect Methods.
实施本申请实施例,具有如下有益效果:The implementation of the embodiments of this application has the following beneficial effects:
可以看出,在本申请实施例中,通过动作生成模块生成目标运动姿势,通过采集模块采集目标运动姿势,得到目标动作信息,处理器根据所述目标动作信息生成虚拟角色运动指令,并通过通信模块将虚拟角色运动指令发给电子设备,从而实现控制虚拟角色的运动,因此,能够相对于现有方案中通过体感设备采集固定动作,本申请中可以采集用户的任意一个动作,并控制虚拟角色执行与该动作相同的运动,从而丰富了虚拟角色的动作,进而提高用户的游戏体验。It can be seen that, in the embodiment of the present application, the target motion posture is generated by the motion generation module, and the target motion posture is collected by the acquisition module to obtain target motion information. The processor generates virtual character motion instructions according to the target motion information, and communicates The module sends the virtual character movement instructions to the electronic device to control the movement of the virtual character. Therefore, compared with the existing solution through the somatosensory device, the fixed movement can be collected. In this application, any movement of the user can be collected and the virtual character can be controlled. Perform the same movement as the action, thereby enriching the actions of the virtual character, thereby improving the user's gaming experience.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1A为本申请实施例提供的一种虚拟角色控制系统的示意图;FIG. 1A is a schematic diagram of a virtual character control system provided by an embodiment of this application;
图1B为本申请实施例提供的一种动作生成模块的结构示意图;FIG. 1B is a schematic structural diagram of an action generation module provided by an embodiment of this application;
图1C为本申请实施例提供的一种平面坐标系的映射示意图;FIG. 1C is a schematic diagram of mapping a plane coordinate system provided by an embodiment of the application;
图1D为本申请实施例提供的虚拟角色的一种可能的结构示意图;FIG. 1D is a schematic diagram of a possible structure of a virtual character provided by an embodiment of this application;
图2A为本申请实施例提供的另一种虚拟角色控制系统的示意图;2A is a schematic diagram of another virtual character control system provided by an embodiment of the application;
图2B为本申请实施例提供的一种电位器设置的示意图;2B is a schematic diagram of a potentiometer setting according to an embodiment of the application;
图2C为本申请实施例提供的一种对电位器输出信号的处理示意图;2C is a schematic diagram of processing the output signal of the potentiometer according to an embodiment of the application;
图3为本申请实施例提供的一种虚拟角色的控制方法的流程示意图;FIG. 3 is a schematic flowchart of a method for controlling a virtual character provided by an embodiment of the application;
图4为本申请实施例提供的一种虚拟角色控制系统的结构示意图。Fig. 4 is a schematic structural diagram of a virtual character control system provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of this application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the application and the drawings are used to distinguish different objects, rather than describing a specific order . In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结果或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。The reference to "embodiments" herein means that specific features, results or characteristics described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
参阅图1A,图1A为本申请实施例提供了一种虚拟角色控制系统100的示意图。如图1A所示,虚拟角色控制系统100包括处理器101、通信模块102、 动作生成模块103和采集模块104,处理器101与通信模块102耦合连接。Referring to FIG. 1A, FIG. 1A provides a schematic diagram of a virtual character control system 100 according to an embodiment of the application. As shown in FIG. 1A, the virtual character control system 100 includes a processor 101, a communication module 102, an action generation module 103, and a collection module 104. The processor 101 is coupled to the communication module 102.
其中,动作生成模块103,用于生成目标运动姿势,目标运动姿势可以为用户的运动姿势,也可以是用户控制动作自定义生成模块生成的运动姿势;Wherein, the action generation module 103 is used to generate a target motion posture. The target motion posture can be a user's motion posture, or a motion posture generated by a user-controlled action custom generation module;
采集模块104,用于采集动作生成模块103生成的目标运动姿势,得到目标动作信息,目标动作信息可以是欧拉角;The collection module 104 is configured to collect the target motion posture generated by the motion generation module 103 to obtain target motion information, and the target motion information may be Euler angles;
处理器101,用于处理所述目标动作信息,得到虚拟角色运动指令,所述虚拟角色运动指令用于控制虚拟角色的运动;The processor 101 is configured to process the target action information to obtain a virtual character movement instruction, and the virtual character movement instruction is used to control the movement of the virtual character;
通信模块102,用于向电子设备105发送虚拟角色运动指令,以控制虚拟角色的运动,虚拟角色运行于电子设备105上,在发送时,可以对虚拟角色运动指令进行加密处理,以提升传输时的安全性;The communication module 102 is used to send a virtual character movement instruction to the electronic device 105 to control the movement of the virtual character. The virtual character runs on the electronic device 105. When sending, the virtual character movement instruction can be encrypted to improve the transmission time. Security
电子设备105,用于接收虚拟角色运动指令后,对虚拟角色运动指令进行解析,得到解析内容,最后根据解析内容控制虚拟角色的运动。The electronic device 105 is configured to analyze the virtual character movement instruction after receiving the virtual character movement instruction to obtain the analysis content, and finally control the movement of the virtual character according to the analysis content.
可以看出,在本申请实施例中,通过动作生成模块生成目标运动姿势,通过采集模块采集目标运动姿势,得到目标动作信息,处理器根据所述目标动作信息生成虚拟角色运动指令,并通过通信模块将虚拟角色运动指令发给电子设备,从而实现控制虚拟角色的运动,因此,能够相对于现有方案中通过体感设备采集固定动作,本申请中可以采集用户的任意一个动作,并控制虚拟角色执行与该动作相同的运动,从而丰富了虚拟角色的动作,进而提高用户的游戏体验。It can be seen that, in the embodiment of the present application, the target motion posture is generated by the motion generation module, and the target motion posture is collected by the acquisition module to obtain target motion information. The processor generates virtual character motion instructions according to the target motion information, and communicates The module sends the virtual character movement instructions to the electronic device to control the movement of the virtual character. Therefore, compared with the existing solution through the somatosensory device, the fixed movement can be collected. In this application, any movement of the user can be collected and the virtual character can be controlled. Perform the same movement as the action, thereby enriching the actions of the virtual character, thereby improving the user's gaming experience.
在一些可能的实施方式中,采集模块104包括至少一个电位器,动作生成模块103包括左机械臂和右机械臂,所述左机械臂和所述右机械臂包括多个关节,如图1B所示,所述多个关节包括左手腕03、左手臂02、左肩膀01、右手腕06、右手臂05和右肩膀04,所述至少一个电位器中的每个电位器分别设置于所述左机械臂的左手腕03、左手臂02和左肩膀01,以及所述右机械臂的右手腕06、右手臂05和右肩膀04,所述目标动作信息包括所述至少一个电位器所采集的所述左手腕的运动参数、所述左手臂的运动参数、所述左肩膀的运动参数、所述右手腕的运动参数、所述右手臂的运动参数和右肩膀的运动参数,其中,运动参数可以为欧拉角。In some possible implementations, the acquisition module 104 includes at least one potentiometer, and the action generation module 103 includes a left robot arm and a right robot arm. The left robot arm and the right robot arm include multiple joints, as shown in FIG. 1B. As shown, the multiple joints include the left wrist 03, the left arm 02, the left shoulder 01, the right wrist 06, the right arm 05 and the right shoulder 04, and each of the at least one potentiometer is arranged on the left The left wrist 03, left arm 02, and left shoulder 01 of the robotic arm, and the right wrist 06, right arm 05, and right shoulder 04 of the right robotic arm. The target action information includes all the information collected by the at least one potentiometer. The motion parameters of the left wrist, the motion parameters of the left arm, the motion parameters of the left shoulder, the motion parameters of the right wrist, the motion parameters of the right arm, and the motion parameters of the right shoulder, where the motion parameters can be For Euler angle.
可选的,在处理所述目标动作信息,得到虚拟角色运动指令方面,处理器 101具体可以通过如下步骤进行实现,具体包括步骤A1-A4:Optionally, in terms of processing the target action information to obtain a virtual character motion instruction, the processor 101 may specifically implement the following steps, specifically including steps A1-A4:
A1、处理器根据所述左手腕的运动参数、所述左手臂的运动参数、所述左肩膀的运动参数、所述右手腕的运动参数、所述右手臂的运动参数和右肩膀的运动参数,训练得到目标三维运动模型;A1. The processor according to the motion parameters of the left wrist, the motion parameters of the left arm, the motion parameters of the left shoulder, the motion parameters of the right wrist, the motion parameters of the right arm, and the motion parameters of the right shoulder , Training to obtain the target three-dimensional motion model;
其中,在进行三维运动模型训练时,可以通过神经网络模型的训练方式进行训练,具体可以为:对上述数据进行正向训练和反向训练,在训练后模型的loss值收敛到一个固定的区域时,该固定区域可以通过多次训练后,其loss值的波动处于一个区间中,则该区间为此固定区域,该三维运动模型训练完成。Among them, when training the three-dimensional motion model, the training can be carried out by the training method of the neural network model, which can be specifically: forward training and reverse training on the above data, and the loss value of the model converges to a fixed area after training When the fixed area can be trained for many times, and the fluctuation of its loss value is in an interval, then the interval is the fixed area, and the training of the three-dimensional motion model is completed.
A2、处理器将所述目标三维运动模型按照预设的映射方式,将所述左手腕、所述左手臂、所述左肩膀、所述右手腕、所述右手臂和所述右肩膀的运动映射为平面运动,得到所述左手腕、所述左手臂、所述左肩膀、所述右手腕、所述右手臂和所述右肩膀的平面运动参数;A2. The processor converts the target three-dimensional motion model to the motion of the left wrist, the left arm, the left shoulder, the right wrist, the right arm, and the right shoulder according to a preset mapping method. Mapping into a plane motion, obtaining plane motion parameters of the left wrist, the left arm, the left shoulder, the right wrist, the right arm, and the right shoulder;
其中,平面运动参数包括:旋转角度,例如,左手腕的左右旋转角度和前后旋转角度,其左右可以理解为动作生成模块的正面的左右,前后可以理解为动作生成模块正面的前后。Among them, the plane motion parameters include: the rotation angle, for example, the left and right rotation angle and the front and back rotation angle of the left wrist, the left and right can be understood as the front and the left of the motion generation module, and the front and back can be understood as the front and back of the motion generation module.
可选的,一种可能的预设的映射方式为:此处以右手臂为例进行说明,如图1C所示,以又手臂的关节处为圆心,将动作生成模块的竖直放置时与水平面垂直的直线作为y轴,水平过圆心的直线作为x轴,将动作生成模块所在的面抽象为一个平面,xoy平面与抽象的平面重合。则可以将右手臂在左右方向上的运动投影到该平面;以手臂的关节为圆心,与前述平面垂直的平面,且该垂直的平面与动作生成模块的前后方向平行(即x与垂直),则可以将手臂前后运动投影到该平面,从而得到右手臂的平面运动参数,因此,该平面运动参数可以理解为旋转的角度。Optionally, a possible preset mapping method is: here, the right arm is taken as an example for illustration, as shown in Figure 1C, with the joint of the arm as the center of the circle, the vertical position of the action generation module is placed with the horizontal plane The vertical line is used as the y-axis, and the horizontal line passing through the center of the circle is used as the x-axis, abstracting the surface where the action generation module is located as a plane, and the xoy plane coincides with the abstract plane. Then the movement of the right arm in the left and right direction can be projected to this plane; the joint of the arm is the center, a plane perpendicular to the aforementioned plane, and the perpendicular plane is parallel to the front and back direction of the action generation module (that is, x and perpendicular), The back and forth motion of the arm can be projected onto the plane to obtain the plane motion parameter of the right arm. Therefore, the plane motion parameter can be understood as the angle of rotation.
A3、处理器根据所述左手腕、所述左手臂、所述左肩膀、所述右手腕、所述右手臂和所述右肩膀的平面运动参数,确定出所述虚拟角色的运动参数;A3. The processor determines the motion parameters of the virtual character according to the plane motion parameters of the left wrist, the left arm, the left shoulder, the right wrist, the right arm, and the right shoulder;
其中,可以将动作生成模块103的关节的平面运动参数作为虚拟角色中与该关节对应的关节的运动参数。Among them, the plane motion parameters of the joints of the motion generation module 103 can be used as the motion parameters of the joints corresponding to the joints in the virtual character.
可选的,还可以将平面运动参数映射为用户的运动参数,然后根据用户的运动参数来确定出虚拟角色的运动参数。将平面运动参数映射为用户的运动参 数可以为通过历史数据或者神经网络模型进行映射得到,神经网络模型可以通过训练得到,训练的方法可以参照前述的网络模型训练方法得到。Optionally, the plane motion parameters can also be mapped to the user's motion parameters, and then the motion parameters of the virtual character are determined according to the user's motion parameters. The mapping of plane motion parameters to the user's motion parameters can be obtained through historical data or neural network model mapping. The neural network model can be obtained through training, and the training method can be obtained by referring to the aforementioned network model training method.
A4、处理器根据所述虚拟角色的运动参数生成虚拟角色运动指令。A4. The processor generates a virtual character motion instruction according to the motion parameter of the virtual character.
可选的,本申请所涉及的虚拟角色可以为虚拟机器人,但并不对虚拟角色做唯一限定。下面以虚拟机器人为例做具体说明。Optionally, the virtual character involved in this application may be a virtual robot, but the virtual character is not uniquely limited. The following takes a virtual robot as an example for specific description.
可选的,在控制虚拟机器人运动时,其对应的虚拟角色运动指令可以为虚拟机器人运动指令,则一种可能的处理所述目标动作信息,得到虚拟机器人运动指令的实现过程可以步骤M1-M2,如下所示:Optionally, when controlling the motion of the virtual robot, the corresponding virtual character motion instruction may be a virtual robot motion instruction, then a possible process of processing the target motion information to obtain the virtual robot motion instruction may be steps M1-M2. ,As follows:
M1、将目标动作信息中的左手腕的运动参数、所述左手臂的运动参数、所述左肩膀的运动参数、所述右手腕的运动参数、所述右手臂的运动参数和右肩膀的运动参数,与虚拟机器人的关节进行对应处理,得到虚拟机器人对应的关节的运动参数;M1, the movement parameters of the left wrist, the movement parameters of the left arm, the movement parameters of the left shoulder, the movement parameters of the right wrist, the movement parameters of the right arm, and the movement of the right shoulder in the target movement information The parameters are processed corresponding to the joints of the virtual robot to obtain the motion parameters of the joints corresponding to the virtual robot;
其中,虚拟机器人对应的关节的运动参数包括虚拟机器人左手腕的运动参数、左手臂的运动参数、左肩膀的运动参数、右手腕的运动参数、右手臂的运动参数和右肩膀的运动参数,其运动参数为动作生成模块103中对应的关节的运动参数进行拟人化处理后得到的参数。Among them, the motion parameters of the joints corresponding to the virtual robot include the motion parameters of the left wrist of the virtual robot, the motion parameters of the left arm, the motion parameters of the left shoulder, the motion parameters of the right wrist, the motion parameters of the right arm, and the motion parameters of the right shoulder. The motion parameter is a parameter obtained after the motion parameter of the corresponding joint in the motion generation module 103 is personified.
具体来讲,采集模块在采集到动作生成模块生成的运动参数后,需对运动参数进行拟人化处理,以得到目标动作信息,其中,拟人化处理的实现过程可以为:获取每个关节对应的运动幅度,其中,该运动幅度用于表征关节的运动剧烈程度;获取每个关节对应的预设幅度范围;如每个关节的运动幅度小于所述预设幅度范围的下边界,将该关节的运动幅度调整为零,如每个关节的运动幅度大于所述预设幅度范围的上边界,通过所述采集模块将该运动关节的运动幅度调整为所述上边界;处理每个关节最新的运动幅度,得到目标动作信息。Specifically, after the acquisition module collects the motion parameters generated by the motion generation module, it needs to anthropomorphize the motion parameters to obtain the target motion information. Among them, the realization process of the anthropomorphic processing can be: obtain the corresponding to each joint The motion amplitude, where the motion amplitude is used to characterize the intensity of the joint's motion; obtain the preset amplitude range corresponding to each joint; if the motion amplitude of each joint is less than the lower boundary of the preset amplitude range, the joint Adjust the motion amplitude to zero. If the motion amplitude of each joint is greater than the upper boundary of the preset amplitude range, adjust the motion amplitude of the motion joint to the upper boundary through the acquisition module; process the latest motion of each joint Amplitude, get target action information.
其中,拟人化处理可以理解为将动作生成模块的运动参数经过数据处理,得到符合人的运动参数,例如,动作生成模块生成的左手腕的旋转角度可以为在360度范围内进行旋转,但人的手腕的旋转角度不能为大于A度的角度,A角度为人手腕可以旋转的最大角度,A角度可以通过历史实验数据进行设定,将动作生成模块的左手腕的旋转角度大于A角度的值,全部用A角度替代,从而得到符合人的运动参数。Among them, the anthropomorphic processing can be understood as the data processing of the motion parameters of the motion generation module to obtain the motion parameters that conform to the human. For example, the rotation angle of the left wrist generated by the motion generation module can be rotated within 360 degrees, but the human The rotation angle of the wrist cannot be greater than A degree. Angle A is the maximum angle that a human wrist can rotate. Angle A can be set through historical experimental data. The rotation angle of the left wrist of the action generation module is greater than the value of Angle A. All are replaced by angle A, so as to obtain the motion parameters that conform to the human.
可选的,如图1D所示,图1D为虚拟机器人的一种可能的虚拟结构示意图。虚拟机器人包括多个关节,其中,虚拟舵机1-8分别为设置于虚拟机器人不同关节处,具体为:虚拟舵机1设置于左手腕,虚拟舵机2设置于左手臂,虚拟舵机3和虚拟舵机4设置于左肩膀,虚拟舵机5和虚拟舵机6设置于右肩膀,虚拟舵机7设置于右手臂,虚拟舵机8设置于右手腕。其中,虚拟舵机1的旋转最大角度为100度,虚拟舵机2的最大旋转角度为170度,虚拟舵机3的最大旋转角度为86度,虚拟舵机4的最大旋转角度为170度,虚拟舵机5的最大旋转角度为170度,虚拟舵机6的最大旋转角度为86度,虚拟舵机7的最大旋转角度为170度,虚拟舵机8的最大旋转角度为100度。其中,还可以有存在与虚拟机器人的腰部的虚拟舵机9,虚拟舵机9的最大旋转角度为170度。其中,虚拟舵机1-9分别与动作生成模块的关节处设置的舵机相对应,虚拟舵机1-9的最大旋转角度为将动作生成模块的旋转角度经过处理后的最大旋转角度,即为人的关节的最大旋转角度,例如人手腕的最大旋转角度A。Optionally, as shown in FIG. 1D, FIG. 1D is a schematic diagram of a possible virtual structure of the virtual robot. The virtual robot includes multiple joints. Among them, the virtual servos 1-8 are respectively set at different joints of the virtual robot, specifically: the virtual servo 1 is set on the left wrist, the virtual servo 2 is set on the left arm, and the virtual servo 3 is set on the left arm. And the virtual servo 4 is arranged on the left shoulder, the virtual servo 5 and the virtual servo 6 are arranged on the right shoulder, the virtual servo 7 is arranged on the right arm, and the virtual servo 8 is arranged on the right wrist. Among them, the maximum rotation angle of the virtual servo 1 is 100 degrees, the maximum rotation angle of the virtual servo 2 is 170 degrees, the maximum rotation angle of the virtual servo 3 is 86 degrees, and the maximum rotation angle of the virtual servo 4 is 170 degrees. The maximum rotation angle of the virtual steering gear 5 is 170 degrees, the maximum rotation angle of the virtual steering gear 6 is 86 degrees, the maximum rotation angle of the virtual steering gear 7 is 170 degrees, and the maximum rotation angle of the virtual steering gear 8 is 100 degrees. Among them, there may also be a virtual steering gear 9 existing at the waist of the virtual robot, and the maximum rotation angle of the virtual steering gear 9 is 170 degrees. Among them, the virtual servos 1-9 correspond to the servos set at the joints of the action generation module, and the maximum rotation angle of the virtual servos 1-9 is the maximum rotation angle after processing the rotation angle of the action generation module, namely Is the maximum rotation angle of a human joint, such as the maximum rotation angle A of a human wrist.
M2、将虚拟机器人对应的关节的运动参数进行封装,得到虚拟机器人运动指令。M2. Encapsulate the motion parameters of the joints corresponding to the virtual robot to obtain the motion instructions of the virtual robot.
其中,对机器人对应的关节的运动参数进行封装时,将运动参数封装于指令的载荷字段,得到虚拟机器人运动指令。Wherein, when encapsulating the motion parameters of the joints corresponding to the robot, the motion parameters are encapsulated in the load field of the instruction to obtain the virtual robot motion instruction.
可选的,虚拟机器人运动指令中携带该运动参数,虚拟机器人运动指令可以由该运动参数经过封装后得到。Optionally, the motion parameter of the virtual robot is carried in the motion instruction, and the motion instruction of the virtual robot may be obtained by encapsulating the motion parameter.
可选的,虚拟机器人包括多个关节,所述多个关节与所述动作生成模块的关节相对应,电子设备在接收到运动指令后,可以执行步骤B1-B4,具体如下:Optionally, the virtual robot includes multiple joints, and the multiple joints correspond to the joints of the motion generation module. After receiving the motion instruction, the electronic device may perform steps B1-B4, which are specifically as follows:
B1、电子设备获取所述虚拟机器人的每个关节的当前姿态角度,以及对所述运动指令进行解析,得到所述虚拟机器人的每个关节的目标姿态角度。B1. The electronic device obtains the current posture angle of each joint of the virtual robot, and analyzes the motion instruction to obtain the target posture angle of each joint of the virtual robot.
可选的,姿态角度可以理解为虚拟机器人的当前姿势相对于预设的姿势的偏离度,例如,预设姿势可以为机器人竖直站立,双手臂水平伸展的状态。Optionally, the posture angle may be understood as the degree of deviation of the current posture of the virtual robot with respect to the preset posture. For example, the preset posture may be a state where the robot stands upright with both arms extended horizontally.
可选的,一种可能的获取虚拟机器人的每个关节的当前姿态角度的方法包括步骤B11-B12,具体如下:Optionally, a possible method for obtaining the current posture angle of each joint of the virtual robot includes steps B11-B12, which are specifically as follows:
B11、电子设备读取所述每个关节的虚拟舵机的PWM位置信号。B11. The electronic device reads the PWM position signal of the virtual servo of each joint.
其中,每个关节均设置有响应的虚拟舵机,虚拟舵机用于控制该关节进行 运动。PWM为脉冲宽度调制(Pulse Width Modulation)。Among them, each joint is provided with a corresponding virtual servo, which is used to control the joint to move. PWM is pulse width modulation (Pulse Width Modulation).
B12、电子设备根据所述PWM位置信号确定出所述每个关节的当前姿态角度。B12. The electronic device determines the current posture angle of each joint according to the PWM position signal.
可选的,可以从PWM中提取出每个关节的当前姿态角度。Optionally, the current attitude angle of each joint can be extracted from the PWM.
B2、电子设备根据所述每个关节的当前姿态角度和所述每个关节的目标姿态角度,确定出所述每个关节的目标运动轨迹。B2. The electronic device determines the target motion trajectory of each joint according to the current posture angle of each joint and the target posture angle of each joint.
其中,在确定目标姿态角度时,可以通过如下方法进行确认,具体包括步骤B21-B23:Among them, when determining the target attitude angle, the following methods can be used to confirm, specifically including steps B21-B23:
B21、电子设备计算所述每个关节的当前姿态角度和所述每个关节的目标姿态角度的之间的角度差,得到每个关节的参考角度。B21. The electronic device calculates the angle difference between the current posture angle of each joint and the target posture angle of each joint to obtain the reference angle of each joint.
B22、电子设备将所述每个关节的参考角度均分为N个子参考角度;B22. The electronic device divides the reference angle of each joint into N sub-reference angles.
B23、电子设备根据所述N个子参考角度,确定出所述每个关节的目标运动轨迹。B23. The electronic device determines the target motion track of each joint according to the N sub-reference angles.
其中,根据N个子参考角度,确定每个关节的目标运动轨迹可以理解为:机体各个关节的当前角度和控制器发来的目标角度进行差值计算,差值小所需转动幅度小,时间也快,差值大所需转动幅度大,时间也慢,为了各个关节联动的一致性,故将差值按照一定时间均匀划分成小角度,逐次逼近转动虚拟舵机达到目标角度。Among them, according to the N sub-reference angles, determining the target motion trajectory of each joint can be understood as: the difference between the current angle of each joint of the body and the target angle sent by the controller is calculated. Small differences require small rotation amplitude and time Fast, large difference requires large rotation range and slow time. For the consistency of the linkage of each joint, the difference is evenly divided into small angles according to a certain time, and the virtual servo is approached and rotated to reach the target angle.
B3、电子设备根据所述每个关节的目标运动轨迹确定出所述每个关节的目标运动参数;B3. The electronic device determines the target motion parameter of each joint according to the target motion trajectory of each joint;
B4、电子设备根据所述每个关节的目标运动参数控制虚拟机器人进行运动。B4. The electronic device controls the virtual robot to move according to the target motion parameters of each joint.
可选的,基于上述的拟人化处理,通信模块在向电子设备发送虚拟角色运动指令时,还可向电子设备发送放大指令,所述放大指令用于指示电子设备在控制所述虚拟机器人运动时,在电子设备的可视化界面的预设区域放大显示所述目标关节的运动过程。其中,该预设区域可以为可视化界面的左下角区域、右下角区域、左上角区域或者右上角区域,等等。Optionally, based on the above-mentioned personification processing, when the communication module sends a virtual character movement instruction to the electronic device, it may also send an amplification instruction to the electronic device. The amplification instruction is used to instruct the electronic device to control the movement of the virtual robot. , Zooming in and displaying the movement process of the target joint in the preset area of the visual interface of the electronic device. Wherein, the preset area may be the lower left corner area, the lower right corner area, the upper left corner area, or the upper right corner area of the visualization interface, and so on.
可选的,通信模块在将虚拟角色运动指令发送到电子设备时,可以对虚拟角色运动指令和/或运动指令进行加密处理,以对虚拟角色运动指令进行加密 处理为例做具体说明,其可以包括步骤C1-C2,具体如下:Optionally, when the communication module sends the virtual character movement instruction to the electronic device, it can encrypt the virtual character movement instruction and/or the movement instruction, taking the encryption processing of the virtual character movement instruction as an example for specific description, which may Including steps C1-C2, as follows:
C1、通信模块将所述虚拟角色运动指令采用预设的加密算法对所述虚拟角色运动指令进行加密,得到加密后的虚拟角色运动指令;C1. The communication module encrypts the virtual character movement instruction using a preset encryption algorithm to obtain an encrypted virtual character movement instruction;
其中,预设的加密算法可以为对称加密算法,也可以为非对称加密算法。Among them, the preset encryption algorithm may be a symmetric encryption algorithm or an asymmetric encryption algorithm.
C2、通信模块向电子设备发送所述加密后的虚拟角色运动指令。C2. The communication module sends the encrypted virtual character movement instruction to the electronic device.
在一些可能的实施方式中,在通过所述通信模块采用预设的加密算法对所述虚拟角色运动指令进行加密之前,所述通信模块,还用于:对所述虚拟角色运动指令添加时间戳,所述时间戳用于记录所述虚拟角色运动指令生成的时刻和所述虚拟角色运动指令生的有效时长,将添加时间戳的虚拟角色运动指令进行加密,并向电子设备发送加密后的虚拟角色运动指令;所述电子设备,用于在接收到所述加密后的虚拟角色运动指令,解析所述加密后的虚拟角色运动指令,得到所述时间戳,判断当前时间是否在所述有效时长内,如是,则控制所述虚拟机器人运动,如否,则忽略所述虚拟机器人运动指令。In some possible implementation manners, before the communication module uses a preset encryption algorithm to encrypt the virtual character movement instruction, the communication module is further configured to: add a time stamp to the virtual character movement instruction , The time stamp is used to record the time when the virtual character motion instruction is generated and the effective duration of the virtual character motion instruction, encrypt the virtual character motion instruction with the time stamp, and send the encrypted virtual character to the electronic device Character movement instruction; the electronic device is used to parse the encrypted virtual character movement instruction after receiving the encrypted virtual character movement instruction to obtain the timestamp, and determine whether the current time is within the effective duration If yes, control the motion of the virtual robot, if not, ignore the motion instruction of the virtual robot.
在一些可能的实施方式中,在电子设备控制虚拟角色的运动方面,具体的控制过程可包括如下步骤:当运行于所述电子设备上的虚拟角色数量为两个时,则每个虚拟角色对应一个虚拟角色运动指令,所述电子设备根据每个虚拟角色运动指令确定每个虚拟角色的运动轨迹,如确定所述两个虚拟角色的运动轨迹存在重叠运动轨迹时,在控制虚拟角色运动时,分屏显示,以在一个屏幕上显示每个虚拟角色对应的重叠运动轨迹,从而保证用户可清楚的观看每个虚拟角色的运动过程,提高用户体验。In some possible implementations, in terms of the electronic device controlling the movement of the virtual character, the specific control process may include the following steps: when the number of virtual characters running on the electronic device is two, each virtual character corresponds to A virtual character motion instruction. The electronic device determines the motion trajectory of each virtual character according to each virtual character motion instruction. For example, when it is determined that the motion trajectories of the two virtual characters have overlapping motion trajectories, when controlling the motion of the virtual character, Split-screen display to display the overlapping motion track corresponding to each virtual character on one screen, so as to ensure that the user can clearly watch the motion process of each virtual character and improve user experience.
请参阅图2A,图2A为本申请实施例提供了另一种虚拟角色控制系统的示意图。如图2A所示,虚拟角色控制系统包括:多关节控制器本体,所述虚拟舵机机器人主体运行于电子设备,其中,多关节控制器本体包括控制器运动关节、控制器微处理器和控制器无线通讯模块,另外,该虚拟角色控制系统用于控制与所述多关节控制器本体对应的虚拟舵机机器人主体的运动,所述虚拟舵机机器人主体运行于电子设备上,其中,所述虚拟舵机机器人主体包括虚拟机器人无线通讯模块、虚拟机器人运动关节和虚拟机器人微处理器,其中,该虚拟机器人无线通讯模块和虚拟机器人微处理器可以为电子设备中原有的无 线通讯模块(如蓝牙通讯模块、wifi模块)和微处理器(处理器),或者,为了实现与多关节控制器本体进行信息交互进行专有设置的无线通讯模块和微处理器,本申请不做唯一限定。所述多关节控制器本体控制控制器运动关节运动时,触发所述设置在控制器运动关节内部的电位器转动,所述电位器输出相应AD信号,所述AD信号传至控制器微处理器,经过关节编号、范围控制、读取变化差值等算法对AD信号进行数据规整,进行数据化、参数化,继而将所述数据打包成数据包,所述数据包经所述控制器无线通讯模块、虚拟机器人无线通讯模块传到所述虚拟机器人微处理器进行处理,经过算法处理将所述数据包转换成PWM虚拟舵机控制信号,所述虚拟PWM舵机控制信号用于控制设置在虚拟舵机机器人主体运动关节内部或直接构成虚拟舵机机器人主体运动关节的虚拟舵机运动,使得所述虚拟舵机机器人主体运动关节的运动与多关节控制器本体运动关节的运动同步。Please refer to FIG. 2A. FIG. 2A provides a schematic diagram of another virtual character control system according to an embodiment of the present application. As shown in Figure 2A, the virtual character control system includes: a multi-joint controller body, the virtual servo robot main body runs on an electronic device, wherein the multi-joint controller body includes a controller motion joint, a controller microprocessor, and a control In addition, the virtual character control system is used to control the motion of the virtual steering gear robot body corresponding to the multi-joint controller body, the virtual steering gear robot body running on an electronic device, wherein the The main body of the virtual servo robot includes a virtual robot wireless communication module, a virtual robot motion joint and a virtual robot microprocessor. The virtual robot wireless communication module and the virtual robot microprocessor can be the original wireless communication module in the electronic device (such as Bluetooth A communication module, a wifi module) and a microprocessor (processor), or a wireless communication module and a microprocessor configured exclusively for information interaction with the body of the multi-joint controller, are not exclusively limited in this application. When the multi-joint controller body controls the movement of the controller's motion joints, it triggers the potentiometer set inside the controller's motion joints to rotate, the potentiometer outputs a corresponding AD signal, and the AD signal is transmitted to the controller microprocessor , Through the joint number, range control, read the change difference and other algorithms to carry out data regulation on the AD signal, carry out digitization and parameterization, and then package the data into data packets, which are wirelessly communicated by the controller The virtual robot wireless communication module is transmitted to the virtual robot microprocessor for processing, and the data packet is converted into a PWM virtual steering gear control signal through algorithm processing. The virtual PWM steering gear control signal is used to control settings in the virtual robot The motion joints of the main body of the steering gear robot are internally or directly constituting the virtual steering gear movement of the main body motion joints of the virtual steering gear robot, so that the motion of the main body motion joints of the virtual steering gear robot is synchronized with the motion of the multi-joint controller body motion joints.
可选的,如图2B所示,在控制器运动关节内部设置有电位器,多关节控制器本体运动关节运动时,触发所述设置在控制器本体运动关节内部的电位器转动,从而电位器输出相应AD信号,该AD信号中携带有运动关节的运动信息。Optionally, as shown in FIG. 2B, a potentiometer is provided inside the motion joint of the controller. When the multi-joint controller body moves the joint movement, the potentiometer set inside the motion joint of the controller body is triggered to rotate, so that the potentiometer The corresponding AD signal is output, and the AD signal carries the motion information of the moving joint.
可选的,如图2C所示,控制器微处理器对电位器输出的AD信号进行经过关节编号、范围控制、读取变化差值等算法对AD信号进行数据规整,进行数据化、参数化,继而将所述数据打包成数据包,该数据包可以理解为虚拟舵机机器人主体的控制数据包,图中AD信号的传输仅为一种示意性说明,其可以为无线传输,也可以为有线传输。Optionally, as shown in Figure 2C, the controller microprocessor performs data regulation on the AD signal output by the potentiometer through algorithms such as joint numbering, range control, and reading of the change difference, and performs data and parameterization on the AD signal. , And then package the data into a data packet, which can be understood as a control data packet of the virtual steering gear robot body. The transmission of the AD signal in the figure is only a schematic illustration, which can be wireless transmission or Wired transmission.
可以看出,在本申请实施例中,多关节控制器本体采集用户的动作,该动作可以为用户的任意一个洞,并通过无线通信模块将运动数据发给电子设备,从而实现控制电子设备上的虚拟角色的运动,因此,能够相对于现有方案中通过体感设备采集固定动作,本申请中可以采集用户的任意一个动作,并控制虚拟角色执行与该动作相同的运动,从而丰富了虚拟角色的动作,进而提高用户的游戏体验。It can be seen that in the embodiment of this application, the multi-joint controller body collects the user's movement, which can be any hole of the user, and sends the movement data to the electronic device through the wireless communication module, thereby achieving control on the electronic device Therefore, compared with the collection of fixed actions by somatosensory equipment in the existing solutions, this application can collect any action of the user and control the virtual character to perform the same movement as the action, thereby enriching the virtual character Actions, which in turn improve the user’s gaming experience.
参阅图3,图3为本申请实施例提供的一种虚拟角色的控制方法,所述方 法应用于如图1A和图2A所示的虚拟角色控制系统,所述虚拟角色控制系统包括处理器、通信模块、动作生成模块和采集模块,所述处理器与所述通信模块耦合连接;所述方法包括但不限于以下步骤:Referring to FIG. 3, FIG. 3 is a method for controlling a virtual character provided by an embodiment of the application. The method is applied to the virtual character control system shown in FIG. 1A and FIG. 2A. The virtual character control system includes a processor, A communication module, an action generation module and an acquisition module, the processor is coupled to the communication module; the method includes but is not limited to the following steps:
301:通过所述动作生成模块生成目标运动姿势。301: Generate a target motion posture through the motion generation module.
302:通过所述采集模块采集所述目标运动姿势,得到目标动作信息。302: Collect the target motion posture through the acquisition module to obtain target motion information.
303:通过所述处理器处理所述目标动作信息,得到虚拟角色运动指令。303: Process the target motion information by the processor to obtain a virtual character motion instruction.
304:通过所述通信模块向电子设备发送所述虚拟角色运动指令,以控制虚拟角色的运动,所述虚拟角色运行于所述电子设备上。304: Send the virtual character movement instruction to the electronic device through the communication module to control the movement of the virtual character, and the virtual character runs on the electronic device.
可以看出,在本申请实施例中,通过动作生成模块生成目标运动姿势,通过采集模块采集目标运动姿势,得到目标动作信息,处理器根据所述目标动作信息生成虚拟角色运动指令,并通过通信模块将虚拟角色运动指令发给电子设备,从而实现控制虚拟角色的运动,因此,能够相对于现有方案中通过体感设备采集固定动作,本申请中可以采集用户的任意一个动作,并控制虚拟角色执行与该动作相同的运动,从而丰富了虚拟角色的动作,使操作虚拟角色控制系统的操作者,可随心所欲的操控虚拟角色的云顿,进而提高用户的游戏体验。It can be seen that, in the embodiment of the present application, the target motion posture is generated by the motion generation module, and the target motion posture is collected by the acquisition module to obtain target motion information. The processor generates virtual character motion instructions according to the target motion information, and communicates The module sends the virtual character movement instructions to the electronic device to control the movement of the virtual character. Therefore, compared with the existing solution through the somatosensory device, the fixed movement can be collected. In this application, any movement of the user can be collected and the virtual character can be controlled. Perform the same movement as the action, thereby enriching the actions of the virtual character, so that the operator who operates the virtual character control system can control the virtual character's cloudiness as desired, thereby improving the user's game experience.
在一些可能的实施方式中,通过所述采集模块采集所述目标运动姿势,得到目标动作信息的实现过程可以为:通过所述采集模块获取每个关节对应的运动幅度;通过所述采集模块获取每个关节对应的预设幅度范围;如每个关节的运动幅度小于所述预设幅度范围的下边界,通过所述采集模块将该关节的运动幅度调整为零,如每个关节的运动幅度大于所述预设幅度范围的上边界,通过所述采集模块将该运动关节的运动幅度调整为所述上边界;通过所述采集模块处理每个关节最新的运动幅度,得到目标动作信息In some possible implementation manners, the realization process of acquiring the target motion posture through the acquisition module to obtain the target motion information may be: acquiring the motion amplitude corresponding to each joint through the acquisition module; acquiring through the acquisition module The preset amplitude range corresponding to each joint; if the motion amplitude of each joint is less than the lower boundary of the preset amplitude range, the acquisition module adjusts the motion amplitude of the joint to zero, such as the motion amplitude of each joint Is greater than the upper boundary of the preset amplitude range, adjust the motion amplitude of the motion joint to the upper boundary through the acquisition module; process the latest motion amplitude of each joint through the acquisition module to obtain target motion information
在一些可能的实施方式中,在所述通过所述通信模块向电子设备发送所述虚拟角色运动指令之前,所述方法还包括:通过所述处理器处理每个关节最新的运动幅度,得到目标关节,所述目标关节为最新的运动幅度最大和/或最小对应的关节;其中,所述通过所述通信模块向电子设备发送所述虚拟角色运动指令,包括:通过所述通信模块向电子设备发送所述虚拟角色运动指令和放大指令,所述虚拟角色运动指令用于控制虚拟角色的运动,所述放大指令用于在控制所述虚拟角色运动时,在所述电子设备的可视化界面的预设区域放大显示 所述目标关节的运动过程。In some possible implementation manners, before sending the virtual character motion instruction to the electronic device through the communication module, the method further includes: processing the latest motion amplitude of each joint by the processor to obtain the target The target joint is the latest corresponding joint with the largest and/or smallest motion amplitude; wherein the sending the virtual character motion instruction to the electronic device through the communication module includes: sending the virtual character motion instruction to the electronic device through the communication module Send the virtual character movement instruction and the zoom-in instruction, the virtual character movement instruction is used to control the movement of the virtual character, and the zoom-in instruction is used to control the movement of the virtual character in the preview of the visual interface of the electronic device Suppose the area is enlarged to display the movement process of the target joint.
在一些可能的实施方式中,通过所述通信模块向电子设备发送所述虚拟角色运动指令的实现过程可以为:通过所述通信模块采用预设的加密算法对所述虚拟角色运动指令进行加密;通过所述通信模块向电子设备发送加密后的虚拟角色运动指令。In some possible implementation manners, the implementation process of sending the virtual character movement instruction to the electronic device through the communication module may be: encrypting the virtual character movement instruction through the communication module using a preset encryption algorithm; The encrypted virtual character movement instruction is sent to the electronic device through the communication module.
在一些可能的实施方式中,在通过所述通信模块采用预设的加密算法对所述虚拟角色运动指令进行加密之前,所述方法还包括:In some possible implementation manners, before encrypting the virtual character motion instruction by the communication module using a preset encryption algorithm, the method further includes:
通过所述通信模块对所述虚拟角色运动指令添加时间戳,所述时间戳用于记录所述虚拟角色运动指令生成的时刻和所述虚拟角色运动指令生的有效时长,通过所述通信模块将添加时间戳的虚拟角色运动指令进行加密,并向电子设备发送加密后的虚拟角色运动指令;所述电子设备在接收到所述加密后的虚拟角色运动指令,解析所述加密后的虚拟角色运动指令,得到所述时间戳,根据所述时间戳判断当前时间是否在所述有效时长内,如是,则控制所述虚拟角色运动,如否,则忽略所述虚拟角色运动指令。A time stamp is added to the virtual character movement instruction through the communication module, and the time stamp is used to record the time when the virtual character movement instruction is generated and the effective duration of the virtual character movement instruction. The time-stamped virtual character movement instruction is encrypted, and the encrypted virtual character movement instruction is sent to the electronic device; the electronic device parses the encrypted virtual character movement instruction after receiving the encrypted virtual character movement instruction Instruction to obtain the time stamp, and determine whether the current time is within the effective time period according to the time stamp, if yes, control the movement of the virtual character, and if not, ignore the movement instruction of the virtual character.
其中,所述有效时长可以为预设的,也可以基于所述控制系统与所述电子设备之间的距离进行设定,本申请不做唯一限定。Wherein, the effective duration may be preset, or may be set based on the distance between the control system and the electronic device, which is not uniquely limited in this application.
在一些可能的实施方式中,所述方法还包括:当运行于所述电子设备上的虚拟角色数量为两个时,则每个虚拟角色对应一个虚拟角色运动指令,所述电子设备根据每个虚拟角色运动指令确定每个虚拟角色的运动轨迹,如确定所述两个虚拟角色的运动轨迹存在重叠运动轨迹时,在控制虚拟角色运动时,分屏显示,以在一个屏幕上显示每个虚拟角色对应的重叠运动轨迹,从而保证用户可清楚的观看每个虚拟角色的运动过程,提高用户体验。In some possible implementation manners, the method further includes: when the number of virtual characters running on the electronic device is two, each virtual character corresponds to a virtual character motion instruction, and the electronic device according to each The virtual character motion instructions determine the motion trajectory of each virtual character. For example, when it is determined that the motion trajectories of the two virtual characters have overlapping motion trajectories, when controlling the motion of the virtual character, the virtual character is displayed in a split screen to display each virtual character on one screen. The overlapping motion trajectories corresponding to the characters ensure that the user can clearly watch the motion process of each virtual character and improve the user experience.
与上述图3所示的实施例一致的,请参阅图4,图4为本申请实施例提供的一种虚拟角色控制系统400的结构示意图,如图4所示,虚拟角色控制系统400包括处理器、通信模块、动作生成模块和采集模块,所述处理器与所述通信模块耦合连接;以及一个或多个程序,其中,上述一个或多个程序不同于上述一个或多个应用程序,且上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行以下步骤的指令:Consistent with the embodiment shown in FIG. 3 above, please refer to FIG. 4. FIG. 4 is a schematic structural diagram of a virtual character control system 400 provided by an embodiment of the application. As shown in FIG. 4, the virtual character control system 400 includes processing A processor, a communication module, an action generation module, and a collection module, the processor is coupled to the communication module; and one or more programs, wherein the one or more programs are different from the one or more application programs, and The above-mentioned one or more programs are stored in the above-mentioned memory and are configured to be executed by the above-mentioned processor, and the above-mentioned programs include instructions for executing the following steps:
通过所述动作生成模块生成目标运动姿势;Generating a target motion posture through the motion generating module;
通过所述采集模块采集所述目标运动姿势,得到目标动作信息;Collecting the target motion posture through the acquisition module to obtain target motion information;
通过所述处理器处理所述目标动作信息,得到虚拟角色运动指令;Processing the target motion information by the processor to obtain a virtual character motion instruction;
通过所述通信模块向电子设备发送所述虚拟角色运动指令,以控制虚拟角色的运动,所述虚拟角色运行于所述电子设备上。Sending the virtual character movement instruction to the electronic device through the communication module to control the movement of the virtual character, and the virtual character runs on the electronic device.
在一些可能的实施方式中,在通过所述采集模块采集所述目标运动姿势,得到目标动作信息方面,上述程序具体用于执行以下步骤的指令:In some possible implementation manners, in terms of collecting the target motion posture through the acquisition module to obtain target motion information, the above program is specifically used to execute the instructions of the following steps:
通过所述采集模块获取每个关节对应的运动幅度;Acquiring the motion amplitude corresponding to each joint through the acquisition module;
通过所述采集模块获取每个关节对应的预设幅度范围;Acquiring the preset amplitude range corresponding to each joint through the acquisition module;
如每个关节的运动幅度小于所述预设幅度范围的下边界,通过所述采集模块将该关节的运动幅度调整为零,如每个关节的运动幅度大于所述预设幅度范围的上边界,通过所述采集模块将该运动关节的运动幅度调整为所述上边界;If the motion amplitude of each joint is smaller than the lower boundary of the preset amplitude range, adjust the motion amplitude of the joint to zero through the acquisition module, for example, the motion amplitude of each joint is greater than the upper boundary of the preset amplitude range , Adjusting the motion amplitude of the motion joint to the upper boundary through the acquisition module;
通过所述采集模块处理每个关节最新的运动幅度,得到目标动作信息。The latest motion range of each joint is processed by the acquisition module to obtain target motion information.
在一些可能的实施方式中,在所述通过所述通信模块向电子设备发送所述虚拟角色运动指令之前,上述程序还用于执行以下步骤的指令:In some possible implementation manners, before sending the virtual character movement instruction to the electronic device through the communication module, the above-mentioned program is further used to execute instructions of the following steps:
通过所述处理器处理每个关节最新的运动幅度,得到目标关节,所述目标关节为最新的运动幅度最大和/或最小对应的关节;Processing the latest motion amplitude of each joint by the processor to obtain a target joint, where the target joint is the joint corresponding to the latest largest and/or smallest motion amplitude;
其中,所述通过所述通信模块向电子设备发送所述虚拟角色运动指令,包括:Wherein, the sending the virtual character movement instruction to the electronic device through the communication module includes:
通过所述通信模块向电子设备发送所述虚拟角色运动指令和放大指令,所述虚拟角色运动指令用于控制虚拟角色的运动,所述放大指令用于在控制所述虚拟角色运动时,在所述电子设备的可视化界面的预设区域放大显示所述目标关节的运动过程。The communication module sends the virtual character movement instruction and the zoom instruction to the electronic device, the virtual character movement instruction is used to control the movement of the virtual character, and the zoom instruction is used to control the movement of the virtual character in the The preset area of the visual interface of the electronic device is enlarged to display the movement process of the target joint.
在一些可能的实施方式中,在通过所述通信模块向电子设备发送所述虚拟角色运动指令方面,上述程序具体用于执行以下步骤的指令:In some possible implementation manners, in terms of sending the virtual character movement instruction to the electronic device through the communication module, the above-mentioned program is specifically used to execute instructions of the following steps:
通过所述通信模块采用预设的加密算法对所述虚拟角色运动指令进行加密;Encrypt the motion instructions of the virtual character by using a preset encryption algorithm through the communication module;
通过所述通信模块向电子设备发送加密后的虚拟角色运动指令。The encrypted virtual character movement instruction is sent to the electronic device through the communication module.
本发明实施例提供了一种仿人机械手臂,仿人机械手臂包括处理器、电源电路和上述的虚拟角色控制系统。The embodiment of the present invention provides a humanoid robotic arm, which includes a processor, a power supply circuit, and the aforementioned virtual character control system.
本发明实施例提供了一种仿臂角色系统,该系统包括壳体和上述的仿人机械手臂。The embodiment of the present invention provides an arm-like character system, which includes a housing and the above-mentioned human-like robot arm.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the involved actions and modules are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, the functional units in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized in the form of hardware or software program module.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网 络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer readable memory. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other various media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: flash disk , Read-only memory (English: Read-Only Memory, abbreviation: ROM), random access device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disc, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the application are described in detail above, and specific examples are used in this article to illustrate the principles and implementation of the application. The descriptions of the above examples are only used to help understand the methods and core ideas of the application; A person of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as a limitation of the present application.

Claims (10)

  1. 一种虚拟角色的控制方法,其特征在于,所述方法应用于虚拟角色控制系统,所述虚拟角色控制系统包括处理器、通信模块、动作生成模块和采集模块,所述处理器与所述通信模块耦合连接;所述方法包括:A method for controlling a virtual character, characterized in that the method is applied to a virtual character control system, the virtual character control system includes a processor, a communication module, an action generation module, and a collection module, and the processor communicates with the Module coupling connection; the method includes:
    通过所述动作生成模块生成目标运动姿势;Generating a target motion posture through the motion generating module;
    通过所述采集模块采集所述目标运动姿势,得到目标动作信息;Collecting the target motion posture through the acquisition module to obtain target motion information;
    通过所述处理器处理所述目标动作信息,得到虚拟角色运动指令;Processing the target motion information by the processor to obtain a virtual character motion instruction;
    通过所述通信模块向电子设备发送所述虚拟角色运动指令,以控制虚拟角色的运动,所述虚拟角色运行于所述电子设备上。Sending the virtual character movement instruction to the electronic device through the communication module to control the movement of the virtual character, and the virtual character runs on the electronic device.
  2. 根据权利要求1所述的方法,其特征在于,所述通过所述采集模块采集所述目标运动姿势,得到目标动作信息,包括:The method according to claim 1, wherein the collecting the target motion posture through the acquisition module to obtain target motion information comprises:
    通过所述采集模块获取每个关节对应的运动幅度;Acquiring the motion amplitude corresponding to each joint through the acquisition module;
    通过所述采集模块获取每个关节对应的预设幅度范围;Acquiring the preset amplitude range corresponding to each joint through the acquisition module;
    如每个关节的运动幅度小于所述预设幅度范围的下边界,通过所述采集模块将该关节的运动幅度调整为零,如每个关节的运动幅度大于所述预设幅度范围的上边界,通过所述采集模块将该运动关节的运动幅度调整为所述上边界;If the motion amplitude of each joint is smaller than the lower boundary of the preset amplitude range, adjust the motion amplitude of the joint to zero through the acquisition module, for example, the motion amplitude of each joint is greater than the upper boundary of the preset amplitude range , Adjusting the motion amplitude of the motion joint to the upper boundary through the acquisition module;
    通过所述采集模块处理每个关节最新的运动幅度,得到目标动作信息。The latest motion range of each joint is processed by the acquisition module to obtain target motion information.
  3. 根据权利要求1或2所述的方法,其特征在于,在所述通过所述通信模块向电子设备发送所述虚拟角色运动指令之前,所述方法还包括:The method according to claim 1 or 2, characterized in that, before the sending the virtual character movement instruction to the electronic device through the communication module, the method further comprises:
    通过所述处理器处理每个关节最新的运动幅度,得到目标关节,所述目标关节为最新的运动幅度最大和/或最小对应的关节;Processing the latest motion amplitude of each joint by the processor to obtain a target joint, where the target joint is the joint corresponding to the latest largest and/or smallest motion amplitude;
    其中,所述通过所述通信模块向电子设备发送所述虚拟角色运动指令,包括:Wherein, the sending the virtual character movement instruction to the electronic device through the communication module includes:
    通过所述通信模块向电子设备发送所述虚拟角色运动指令和放大指令,所述虚拟角色运动指令用于控制虚拟角色的运动,所述放大指令用于在控制所述虚拟角色运动时,在所述电子设备的可视化界面的预设区域放大显示所述目标关节的运动过程。The communication module sends the virtual character movement instruction and the zoom instruction to the electronic device, the virtual character movement instruction is used to control the movement of the virtual character, and the zoom instruction is used to control the movement of the virtual character in the The preset area of the visual interface of the electronic device is enlarged to display the movement process of the target joint.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述通过所述通信模块向电子设备发送所述虚拟角色运动指令,包括:The method according to any one of claims 1 to 3, wherein the sending the virtual character movement instruction to the electronic device through the communication module comprises:
    通过所述通信模块采用预设的加密算法对所述虚拟角色运动指令进行加密;Encrypt the motion instructions of the virtual character by using a preset encryption algorithm through the communication module;
    通过所述通信模块向电子设备发送加密后的虚拟角色运动指令。The encrypted virtual character movement instruction is sent to the electronic device through the communication module.
  5. 一种虚拟角色控制系统,其特征在于,所述虚拟角色控制系统包括处理器、通信模块、动作生成模块和采集模块,所述处理器与所述通信模块耦合连接;A virtual character control system, characterized in that, the virtual character control system includes a processor, a communication module, an action generation module, and an acquisition module, and the processor is coupled to the communication module;
    所述动作生成模块,用于生成目标运动姿势;The action generation module is used to generate a target motion posture;
    所述采集模块,用于采集所述目标运动姿势,得到目标动作信息;The collection module is used to collect the target motion posture to obtain target motion information;
    所述处理器,用于处理所述目标动作信息,得到虚拟角色运动指令;The processor is configured to process the target motion information to obtain a virtual character motion instruction;
    所述通信模块,用于向电子设备发送所述虚拟角色运动指令,以控制虚拟角色的运动,所述虚拟角色运行于所述电子设备上。The communication module is configured to send the virtual character movement instruction to an electronic device to control the movement of the virtual character, and the virtual character runs on the electronic device.
  6. 根据权利要求5所述的系统,其特征在于,The system according to claim 5, wherein:
    在采集所述目标运动姿势,得到目标动作信息方面,所述采集模块,具体用于:In terms of collecting the target motion posture and obtaining target motion information, the collecting module is specifically used for:
    获取每个关节对应的运动幅度;Obtain the motion amplitude corresponding to each joint;
    获取每个关节对应的预设幅度范围;Obtain the preset amplitude range corresponding to each joint;
    如每个关节的运动幅度小于所述预设幅度范围的下边界,将该关节的运动幅度调整为零,如每个关节的运动幅度大于所述预设幅度范围的上边界,将该运动关节的运动幅度调整为所述上边界;If the motion amplitude of each joint is less than the lower boundary of the preset amplitude range, adjust the motion amplitude of the joint to zero; if the motion amplitude of each joint is greater than the upper boundary of the preset amplitude range, the motion joint Adjusted to the upper boundary;
    处理每个关节最新的运动幅度,得到目标动作信息。Process the latest motion range of each joint to obtain target motion information.
  7. 根据权利要求5或6所述的系统,其特征在于,在向电子设备发送所述虚拟角色运动指令之前,所述处理器还用于:处理每个关节最新的运动幅度,得到目标关节,所述目标关节为最新的运动幅度最大和/或最小对应的关节;The system according to claim 5 or 6, characterized in that, before sending the virtual character motion instruction to the electronic device, the processor is further configured to process the latest motion amplitude of each joint to obtain the target joint, so The target joint is the latest joint with the largest and/or smallest corresponding motion range;
    在向电子设备发送所述虚拟角色运动指令方面,所述处理器,具体用于:向电子设备发送所述虚拟角色运动指令和放大指令,所述虚拟角色运动指令用于以控制虚拟角色的运动,所述放大指令用于在控制所述虚拟角色运动时,在所述电子设备的可视化界面的预设区域放大显示所述目标关节的运动过程。In terms of sending the virtual character movement instruction to the electronic device, the processor is specifically configured to: send the virtual character movement instruction and the zoom-in instruction to the electronic device, and the virtual character movement instruction is used to control the movement of the virtual character The zoom-in instruction is used to zoom in and display the movement process of the target joint in a preset area of the visual interface of the electronic device when controlling the movement of the virtual character.
  8. 根据权利要求5-7任一项所述的系统,其特征在于,The system according to any one of claims 5-7, wherein:
    在向电子设备发送所述虚拟角色运动指令方面,所述通信模块,具体用于: 采用预设的加密算法对所述虚拟角色运动指令进行加密;向电子设备发送加密后的虚拟角色运动指令。In terms of sending the virtual character movement instruction to the electronic device, the communication module is specifically configured to: encrypt the virtual character movement instruction using a preset encryption algorithm; and send the encrypted virtual character movement instruction to the electronic device.
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序使得计算机执行如权利要求1-4任一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program that enables a computer to execute the method according to any one of claims 1-4.
  10. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-4任一项所述的方法。A computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any one of claims 1-4 The method described.
PCT/CN2019/123822 2019-07-05 2019-12-06 Control method for virtual character, and related product WO2021003994A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910606568.0A CN110413110A (en) 2019-07-05 2019-07-05 The control method and Related product of virtual role
CN201910606568.0 2019-07-05

Publications (1)

Publication Number Publication Date
WO2021003994A1 true WO2021003994A1 (en) 2021-01-14

Family

ID=68360627

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/123822 WO2021003994A1 (en) 2019-07-05 2019-12-06 Control method for virtual character, and related product

Country Status (2)

Country Link
CN (1) CN110413110A (en)
WO (1) WO2021003994A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237396A (en) * 2021-12-15 2022-03-25 北京字跳网络技术有限公司 Action adjusting method and device, electronic equipment and readable storage medium
CN116000932A (en) * 2022-12-30 2023-04-25 节卡机器人股份有限公司 Sports equipment control method, system, device, equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413110A (en) * 2019-07-05 2019-11-05 深圳市工匠社科技有限公司 The control method and Related product of virtual role
CN111897437A (en) * 2020-08-19 2020-11-06 腾讯科技(深圳)有限公司 Cross-terminal interaction method and device, electronic equipment and storage medium
CN114225420A (en) * 2021-11-19 2022-03-25 达闼科技(北京)有限公司 Action data acquisition method, system, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479689A (en) * 2017-06-20 2017-12-15 北京行云时空科技有限公司 Method of controlling operation thereof and wearable device for VR/AR
CN109191593A (en) * 2018-08-27 2019-01-11 百度在线网络技术(北京)有限公司 Motion control method, device and the equipment of virtual three-dimensional model
CN109453517A (en) * 2018-10-16 2019-03-12 Oppo广东移动通信有限公司 Virtual role control method and device, storage medium, mobile terminal
CN109676609A (en) * 2019-01-24 2019-04-26 深圳市工匠社科技有限公司 Robot control system and Related product
CN110413110A (en) * 2019-07-05 2019-11-05 深圳市工匠社科技有限公司 The control method and Related product of virtual role

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101483713B1 (en) * 2008-06-30 2015-01-16 삼성전자 주식회사 Apparatus and Method for capturing a motion of human
CN101404575B (en) * 2008-11-06 2011-09-28 阿里巴巴集团控股有限公司 Method and system for updating indorsement algorithm
CN102120325B (en) * 2010-01-08 2012-12-12 哈尔滨理工大学 Novel remote operation far-end robot control platform and method
CN102299747A (en) * 2010-06-22 2011-12-28 上海云途信息技术有限公司 Device, system and method for performing safe data communication based on sound waves
CN103135765A (en) * 2013-02-20 2013-06-05 兰州交通大学 Human motion information capturing system based on micro-mechanical sensor
US9701018B2 (en) * 2014-04-01 2017-07-11 Bot & Dolly, Llc Software interface for authoring robotic manufacturing process
CN105915494A (en) * 2015-12-07 2016-08-31 乐视云计算有限公司 Anti-stealing-link method and system
WO2018098686A1 (en) * 2016-11-30 2018-06-07 深圳前海达闼云端智能科技有限公司 Safety verification method and device, terminal apparatus, and server
CN108776923A (en) * 2018-06-05 2018-11-09 深圳壹账通智能科技有限公司 Order method of payment, system, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479689A (en) * 2017-06-20 2017-12-15 北京行云时空科技有限公司 Method of controlling operation thereof and wearable device for VR/AR
CN109191593A (en) * 2018-08-27 2019-01-11 百度在线网络技术(北京)有限公司 Motion control method, device and the equipment of virtual three-dimensional model
CN109453517A (en) * 2018-10-16 2019-03-12 Oppo广东移动通信有限公司 Virtual role control method and device, storage medium, mobile terminal
CN109676609A (en) * 2019-01-24 2019-04-26 深圳市工匠社科技有限公司 Robot control system and Related product
CN110413110A (en) * 2019-07-05 2019-11-05 深圳市工匠社科技有限公司 The control method and Related product of virtual role

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237396A (en) * 2021-12-15 2022-03-25 北京字跳网络技术有限公司 Action adjusting method and device, electronic equipment and readable storage medium
CN114237396B (en) * 2021-12-15 2023-08-15 北京字跳网络技术有限公司 Action adjustment method, action adjustment device, electronic equipment and readable storage medium
CN116000932A (en) * 2022-12-30 2023-04-25 节卡机器人股份有限公司 Sports equipment control method, system, device, equipment and storage medium
CN116000932B (en) * 2022-12-30 2024-04-26 节卡机器人股份有限公司 Sports equipment control method, system, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110413110A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
WO2021003994A1 (en) Control method for virtual character, and related product
US11103997B2 (en) Software interface for authoring robotic manufacturing process
US10509392B2 (en) Runtime controller for robotic manufacturing system
Almetwally et al. Real-time tele-operation and tele-walking of humanoid Robot Nao using Kinect Depth Camera
JP6723738B2 (en) Information processing apparatus, information processing method, and program
CN108161882A (en) A kind of robot teaching reproducting method and device based on augmented reality
Naceri et al. Towards a virtual reality interface for remote robotic teleoperation
CN108356796A (en) A kind of teaching system being adapted to a variety of industrial robots
CN107577159A (en) Augmented reality analogue system
JP2023507241A (en) A proxy controller suit with arbitrary dual-range kinematics
CN109676609A (en) Robot control system and Related product
US20220413511A1 (en) Robot control method, a robot control system and a modular robot
CN107838921A (en) A kind of robot training system based on VR
CN207937787U (en) Augmented reality analogue system
WO2020151044A1 (en) Robot control system, and related product
CN204525481U (en) A kind of unpowered articulated arm teaching machine
Spada et al. Locomotion and telepresence in virtual and real worlds
Jacob et al. Digital twins for distributed collaborative work in shared production
CN105710856A (en) Remote motion sensing control robot
CN104760044A (en) Unpowered articulated arm type demonstrator and application thereof in industrial robot
Wang et al. Intuitive and versatile full-body teleoperation of a humanoid robot
CN111562841B (en) Off-site online method, device, equipment and storage medium of virtual reality system
Zhou et al. An IoT-enabled telerobotic-assisted healthcare system based on inertial motion capture
WO2020133628A1 (en) Humanoid robotic arm somatosensory control system and related product
Demir et al. Motion-Controlled Virtual Reality Robotic Arm with Kinect

Legal Events

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

Ref document number: 19937285

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.06.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19937285

Country of ref document: EP

Kind code of ref document: A1