WO2018166051A1 - Method and device for obtaining attitude data - Google Patents

Method and device for obtaining attitude data Download PDF

Info

Publication number
WO2018166051A1
WO2018166051A1 PCT/CN2017/083030 CN2017083030W WO2018166051A1 WO 2018166051 A1 WO2018166051 A1 WO 2018166051A1 CN 2017083030 W CN2017083030 W CN 2017083030W WO 2018166051 A1 WO2018166051 A1 WO 2018166051A1
Authority
WO
WIPO (PCT)
Prior art keywords
sensor
measured
coordinate system
reference coordinate
rotation angle
Prior art date
Application number
PCT/CN2017/083030
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 WO2018166051A1 publication Critical patent/WO2018166051A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00

Definitions

  • the present invention relates to the field of motion sensing technology, and in particular to a method and device for acquiring attitude data.
  • the senor is installed or worn on the object according to a specific positional relationship, which increases the difficulty of production and assembly of the sensor, reduces the degree of freedom and convenience in use, and if there is a deviation in the wearing position or production assembly. Deviation of the position of the sensor will result in errors in the measured attitude data.
  • the measured data does not meet the actual requirements. If a third-party sensing device is used, it does not have good mobility and is sensitive to environmental influences and is susceptible to interference. As a result, the posture data is incorrect, so that the measured data does not meet the actual needs of the user.
  • an object of the embodiments of the present invention is to provide a method and apparatus for acquiring attitude data, which solves the technical problem that the accuracy of the measured attitude data is low when using the attitude data of the sensor measurement object in the prior art.
  • an embodiment of the present invention provides a method for acquiring gesture data, where the method includes the following steps:
  • the embodiment of the present invention provides the first possible implementation manner of the foregoing first aspect, wherein the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system is determined according to the following steps:
  • the horizontal angle difference is determined according to motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
  • the embodiment of the present invention provides the second possible implementation manner of the foregoing first aspect, wherein the determining the sensor model is based on the The steps of the motion track information generated when the two posture data is rotated include:
  • the motion trajectory information of the end of the cycloid is determined as the motion trajectory information generated when the sensor model is rotated.
  • the embodiment of the present invention provides a third possible implementation manner of the foregoing first aspect, wherein the motion trajectory information generated when the sensor model is rotated according to the
  • the step of determining the horizontal angular difference by the reference coordinate system includes:
  • connection information between an end point of the motion trajectory generated by the sensor model and a start point of the motion trajectory according to motion trajectory information generated when the sensor model is rotated
  • connection information Determining, according to the connection information, an angle between a line connecting the end point of the motion track and the start point and a horizontal coordinate axis of the reference coordinate system
  • the horizontal angle difference is determined according to the included angle.
  • the embodiment of the present invention provides the fourth possible implementation manner of the foregoing first aspect, wherein the first posture data includes a three-axis rotation angle;
  • the step of correcting the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured includes:
  • the embodiment of the present invention provides the fifth possible implementation manner of the foregoing first aspect, wherein the coordinate system according to the sensor is relative to the reference coordinate system
  • the step of correcting the three-axis rotation angle by the horizontal angle difference includes:
  • an embodiment of the present invention provides an attitude data acquiring apparatus, where the apparatus includes:
  • a first acquiring module configured to acquire first posture data of the object to be measured collected by a sensor carried on the object to be measured while rotating;
  • a correction module configured to modify the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured, and determine the corrected first posture data as the The first pose data of the object to be measured.
  • the embodiment of the present invention provides the first possible implementation manner of the foregoing second aspect, wherein the device further includes:
  • Creating a module configured to create an object model to be measured and a sensor model in a three-dimensional space
  • a second acquiring module configured to acquire second posture data of the object to be measured collected by the sensor to perform a downward rotation
  • a first determining module configured to determine motion trajectory information generated when the sensor model is rotated based on the second posture data
  • the second determining module is configured to determine the horizontal angle difference according to the motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
  • the embodiment of the present invention provides the second possible implementation manner of the foregoing first aspect, wherein the first posture data includes a three-axis rotation angle;
  • the correction module includes:
  • a correction unit configured to correct the three-axis rotation angle according to a horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system to obtain a three-axis rotation angle of the object to be measured.
  • the embodiment of the present invention provides a third possible implementation manner of the foregoing second aspect, wherein the modifying unit includes:
  • a calculation subunit configured to calculate a sum of a horizontal rotation angle of the three-axis rotation angle and a horizontal angle difference of a coordinate system of the sensor with respect to the reference coordinate system;
  • the determining subunit is configured to determine the sum value, the pitch angle and the roll angle in the three-axis rotation angle as the three-axis rotation angle of the object to be measured.
  • the sensor may be disposed at an arbitrary position on the object to be measured, and the attitude data of the measured object collected by the sensor is corrected to obtain the posture of the measured object to be measured.
  • the data meets the actual needs.
  • FIG. 1 is a flowchart of a method for acquiring object posture data according to an embodiment of the present invention
  • FIG. 2 is a flowchart of determining a horizontal angle difference between a coordinate system of a sensor and a reference coordinate system in an object posture data acquiring method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram showing an initial state of an object model and a sensor model to be measured established in a three-dimensional space in an embodiment of the present invention
  • FIG. 4 is a schematic diagram showing a state of a model to be measured and a sensor model established in a three-dimensional space in the embodiment of the present invention, after the sensor model is rotated;
  • FIG. 5 is a schematic structural diagram of an attitude acquiring apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram showing a second structure of an attitude acquiring apparatus according to an embodiment of the present invention.
  • Icons 1 - object model to be measured; 2 - sensor model; 3 - cycloid in the initial state; 3" - cycloid in the post-rotation state; - line between the end point of the motion trajectory and the starting point.
  • an embodiment of the present invention provides a method and an apparatus for acquiring posture data, which are described below by way of embodiments.
  • the embodiment of the present invention provides a method for acquiring posture data.
  • the sensor can be set at an arbitrary position of the object to be measured, and the posture data of the measured object collected by the sensor is performed. Correction, so that the accuracy of the attitude data of the measured object meets the actual needs.
  • a method for acquiring posture data includes steps S110-S120, which are specifically as follows.
  • the object to be measured may be any part of the human body, for example, a head, an arm or a leg, etc., and may also be a mobile phone or other object.
  • the above-mentioned sensor is carried on the object to be measured, and the sensor is mounted on the object to be measured or the sensor is worn on the object to be measured.
  • the specific carrying mode can be measured according to the actual application scenario. For example, if the object to be measured is a human body, The sensor needs to be worn on the human body. If the object to be measured is an object, the sensor can be mounted on the object to integrally form the sensor and the object.
  • S120 Correct the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured, and determine the corrected first posture data as the first posture data of the object to be measured.
  • the coordinate system of the above sensor refers to the sensor's own coordinate system.
  • the coordinate origin of the sensor's own coordinate system can be any position on the sensor.
  • the X axis of the sensor's own coordinate system can be directly in front of the sensor, on the horizontal plane where the sensor is located and vertical.
  • the axis of the X-axis is taken as the Y-axis of the sensor's own coordinate system, and the vertical direction perpendicular to the horizontal plane of the sensor is taken as the Z-axis of the sensor's own coordinate system.
  • the X-axis, the Y-axis, and the Z-axis of the reference coordinate system may be established according to a specific object to be measured.
  • the object to be measured is a human head
  • the sensor is worn at any position on the human head, and is established.
  • the reference coordinate system corresponding to the human head the arbitrary position of the human head can be taken as the origin of the reference coordinate system, and the front of the human head is taken as the X-axis of the reference coordinate system, and the plane of the X-axis is perpendicular to the human body.
  • the direction directly in front of the head is the Y-axis, and the direction perpendicular to the top of the head is the Z-axis.
  • the sensor is mounted on the object, and when the reference coordinate system corresponding to the object is established, any position on the object may be used as the origin of the reference coordinate system.
  • the direction in which the width of the object lies is taken as the X-axis of the reference coordinate system, and the direction in which the length of the object is located is taken as the Y-axis of the reference coordinate system, and the direction in which the height of the object is located is taken as the Z-axis of the reference coordinate system.
  • the reference coordinate system corresponding to the object to be measured is described by taking the human head and the cuboid object as an example.
  • the reference coordinate system corresponding to the object to be measured can be established according to the actual application, which is not limited by the embodiment of the present invention.
  • the horizontal angle difference between the coordinate system of the sensor and the reference coordinate system may be determined according to the following steps:
  • the second attitude data includes a three-axis rotation angle when the object to be measured is rotated downward, and specifically includes: a horizontal rotation angle, a pitch angle, and a roll angle.
  • the object model to be measured is created according to the object to be measured. For example, if the object to be measured is a human head, the object model to be measured created in the three-dimensional space is a human head model, that is, in a three-dimensional space.
  • the created object model to be measured is consistent with the shape of the object to be measured.
  • the above sensor model is also created based on the sensor.
  • the relative position between the object model to be measured and the sensor model created in the three-dimensional space is arbitrary.
  • the object to be measured and the sensor model are determined according to the object model to be measured and the sensor model created in the three-dimensional space. The positional relationship between the sensors.
  • the horizontal plane in the three-dimensional space is equivalent to the ground level, that is, the positional relationship between the object model to be measured and the horizontal plane and the object to be measured
  • the positional relationship with the horizontal plane is the same. Therefore, the planes of the X-axis and the Y-axis of the reference coordinate system corresponding to the object model to be measured are parallel to the horizontal plane of the three-dimensional space, and the X-axis, the Y-axis, and the Z-axis correspond to the object to be measured.
  • the X coordinate, the Y axis, and the reference coordinate system The Z axis is consistent.
  • the object to be measured is a cube-shaped object, and after the object is horizontally placed on the three-dimensional space, only the back surface of the object can be seen.
  • the positional relationship between the sensor and the object to be measured is determined, which is specifically achieved by the following process:
  • the object to be measured is kept in the horizontal direction at the initial position, the downward rotation is performed, and the angle of the downward rotation is non-zero.
  • the sensor carried on the object to be measured collects the second posture data when the object to be measured is rotated downward, and the posture data acquiring device in the embodiment of the present invention acquires the second posture acquired by the sensor.
  • the data is then controlled to control the sensor model in the three-dimensional space according to the second attitude data, and when the sensor model is rotated in the three-dimensional space, the motion model information of the sensor model based on the downward rotation is determined.
  • the object to be measured when the object to be measured is rotating downward, if the object to be measured is perpendicular to the horizontal plane of the object to be measured, the object to be measured is rotated downward along an axis perpendicular to the horizontal plane; If there is a certain degree of inclination to the left or the right, the downward rotation is performed along the axis that coincides with the inclination of the object to be measured, and in the embodiment of the present invention, the object to be measured can allow the object to be measured while doing the downward rotation. There is a certain inclination, but the angle of inclination needs to be less than 90°.
  • the above-described motion trajectory information refers to coordinate values of respective positions in the three-dimensional space with respect to the reference coordinate system when the sensor model is rotated based on the second attitude data.
  • the motion track information generated when the sensor model is rotated based on the second posture data is determined by the following process:
  • the motion trajectory information of the end of the cycloid with the rotation center point of the sensor model as a function of the sensor model is determined; the motion trajectory information of the end of the cycloid is determined as the motion trajectory information generated when the sensor model is rotated.
  • the rotation center point of the sensor model may be any point at a certain height of the three-dimensional space from the horizontal plane. Preferably, it may be any point located at a certain distance above the sensor model.
  • a vertical line is made vertically downward, the length of the vertical line is arbitrary, and the relationship between the vertical line and the sensor model is bound, that is, the plumb line
  • the rotation of the sensor model is rotated, and the vertical line is a cycloid in the initial state.
  • the embodiment of the present invention does not limit the specific length of the cycloid.
  • the pendulum rotates with the rotation of the sensor model, and when the cycloid is rotated, the end of the cycloid leaves a motion trajectory in three-dimensional space, and the motion trajectory is When the cycloid is rotated, the end of the cycloid consists of a series of points.
  • the motion trajectory information of the end of the cycloid as the sensor model is rotated may be determined first, because the rotation of the sensor model and the cycloid is the same. Therefore, the motion trajectory information of the end of the cycloid is determined as the motion trajectory information generated when the sensor model is rotated.
  • the motion trajectory of any point on the pendulum line can be used to determine the motion trajectory information of the sensor model.
  • the level between the coordinate system of the sensor and the reference coordinate system corresponding to the object to be measured is determined according to the motion trajectory information generated by the rotation of the sensor model and the reference coordinate system.
  • the difference in angle includes:
  • connection information Determining the connection information between the end point of the motion trajectory generated by the sensor model and the start point of the motion trajectory according to the motion trajectory information generated when the sensor model is rotated; determining the end point of the motion trajectory generated by the sensor model according to the connection information The angle between the line connecting the starting point and the horizontal coordinate axis of the reference coordinate system; according to the above angle, the horizontal angle difference between the coordinate system of the sensor and the reference coordinate system is determined.
  • the state diagram of the cycloid is rotated with the sensor model by a certain angle, wherein 1 is the object model to be measured, 2 is the sensor model, and 3′′ is the cycloid in the state after the rotation, that is, the sensor model rotates.
  • 3 is the cycloid in the initial state, that is, the cycloid before the rotation of the sensor model
  • 4 is the line connecting the end point of the motion trajectory and the starting point, that is, the end of the cycloid after the rotation of the sensor model
  • the connection between the end and the end of the cycloid before the rotation in the embodiment of the present invention, determining the coordinate system of the sensor and the reference coordinate system according to the angle between the horizontal coordinate axes of the connection and the reference coordinate system The horizontal angle difference between the two.
  • the above-described wiring information includes a slope that may include a line between the end point of the motion trajectory and the start point of the motion trajectory, and an intercept on the horizontal axis on the reference coordinate system.
  • the horizontal coordinate axis of the above reference coordinate system refers to two coordinate axes parallel to the horizontal plane of the three-dimensional space.
  • the object to be measured is the head of the human body
  • the front side of the human head is taken as the X axis of the reference coordinate system
  • the direction on the plane of the X axis and perpendicular to the front of the human head is the Y axis, and finally needs to be determined.
  • the horizontal angle difference is the angle between the line connecting the end point of the motion trajectory of the sensor model and the starting point and the X axis.
  • the angle is determined as a horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system; if the angle between the above-mentioned line and the Y-axis is determined as described above, according to the angle between the X-axis and the Y-axis and the above determination The angle between the and the X-axis determines the horizontal angular difference between the sensor's coordinate system and the reference coordinate system.
  • the horizontal angle difference between the coordinate system of the sensor and the reference coordinate system that needs to be determined is the angle between the straight line and the front of the object to be measured, and the front side of the object to be measured may be based on actual conditions.
  • the scene is determined.
  • the first attitude data described above includes a three-axis rotation angle.
  • the above three-axis rotation angle includes a horizontal rotation angle, a pitch angle, and a roll angle.
  • the first posture data is corrected according to the horizontal angle difference, which specifically includes:
  • the three-axis rotation angle is corrected to obtain a three-axis rotation angle of the object to be measured.
  • the first attitude data further includes a triaxial acceleration.
  • the triaxial acceleration acquired by the sensor is not corrected, that is, the triaxial acceleration acquired by the sensor is the triaxial acceleration of the object to be measured.
  • the sensor can be set at any position on the object to be measured, and the posture data of the measured object collected by the sensor is corrected, so that the acquired attitude data of the measured object meets the actual demand. .
  • an embodiment of the present invention further provides a gesture data acquisition apparatus, which is configured to perform a gesture data acquisition method provided by an embodiment of the present invention, the apparatus includes a first acquisition module 510 and a correction module 520;
  • the first acquiring module 510 is configured to acquire first posture data when the object to be measured collected by the sensor carried on the object to be measured is rotated;
  • the correction module 520 is configured to correct the first posture data according to the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system of the object to be measured, and determine the corrected first posture data as the first object to be measured. Gesture data.
  • the object to be measured may be any part of the human body, for example, a head, an arm or a leg, etc., and may also be a mobile phone or other object.
  • the above-mentioned sensor is carried on the object to be measured, and the sensor is mounted on the object to be measured or the sensor is worn on the object to be measured.
  • the specific carrying mode can be measured according to the actual application scenario. For example, if the object to be measured is a human body, The sensor needs to be worn on the human body. If the object to be measured is an object, the sensor can be mounted on the object to make the sensor and the object. One piece.
  • the gesture data acquiring apparatus further includes a creating module 530, a second obtaining module 540, a first determining module 550, and a second determining module 560.
  • a module may be created.
  • the second obtaining module 540, the first determining module 550, and the second determining module 560 determine a horizontal angle difference between the coordinate system of the sensor and the reference coordinate system, as follows:
  • the creating module 530 is configured to create an object model to be measured and a sensor model in a three-dimensional space
  • the second acquiring module 540 is configured to acquire second posture data of the object to be measured collected by the sensor to perform a downward rotation
  • the first determining module 550 is configured to determine motion trajectory information generated when the sensor model is rotated based on the second posture data
  • the second determining module 560 is configured to determine the horizontal angle difference according to the motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
  • the first posture data includes a three-axis rotation angle
  • the correction module 520 corrects the first posture data according to the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system of the object to be measured, and determines the corrected first posture data as the first posture of the object to be measured.
  • the data is implemented by the correction unit, including:
  • the correction unit is configured to correct the three-axis rotation angle according to the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system to obtain a three-axis rotation angle of the object to be measured.
  • the correction unit performs the correction of the three-axis rotation angle by calculating the sub-unit and the determining sub-unit, and specifically includes:
  • the calculating subunit configured to calculate a horizontal rotation angle of the three-axis rotation angle and a sum of horizontal angle differences of the coordinate system of the sensor with respect to the reference coordinate system; the determining subunit configured to convert the sum value and the three-axis rotation angle
  • the pitch angle and roll angle in the middle are determined as the three-axis rotation angle of the object to be measured degree.
  • the posture data acquiring device provided by the embodiment of the present invention can set the sensor at any position on the object to be measured, and correct the posture data of the measured object collected by the sensor, so that the acquired posture data of the measured object meets the actual demand. .
  • the posture data acquiring device provided by the embodiment of the present invention may be specific hardware on the device or software or firmware installed on the device.
  • the implementation principle and the technical effects of the device provided by the embodiments of the present invention are the same as those of the foregoing method embodiments.
  • the device embodiment is not mentioned, reference may be made to the corresponding content in the foregoing method embodiments.
  • a person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working processes of the foregoing system, the device and the unit can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
  • 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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on this understanding, the technique of the present invention
  • the portion of the technical solution that contributes in nature or to the prior art, or portions of the technical solution, may be embodied in the form of a software product stored in a storage medium, including instructions for causing a computer
  • the device (which may be a personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

A method and device for obtaining attitude data. The method comprises: obtaining first attitude data that is collected by a sensor carried on an object to be measured when the object to be measured rotates (S110); and correcting the first attitude data according to a horizontal angle difference between a coordinate system of the sensor and a reference coordinate system corresponding to the object to be measured, and determining the corrected first attitude data as the first attitude data of the object to be measured (S120). The sensor can be provided at any position of the object to be measured. The attitude data of the object to be measured collected by the sensor is corrected so that the obtained attitude data of the object to be measured meets actual requirements.

Description

一种姿态数据获取方法及装置Attitude data acquisition method and device
本申请要求于2017年03月13日提交中国专利局的申请号为CN201710145454.1、名称为“一种姿态数据获取方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. CN201710145454.1, entitled "A Method and Apparatus for Obtaining Attitude Data" submitted by the Chinese Patent Office on March 13, 2017, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明涉及运动传感技术领域,具体而言,涉及一种姿态数据获取方法及装置。The present invention relates to the field of motion sensing technology, and in particular to a method and device for acquiring attitude data.
背景技术Background technique
在运动传感技术领域,随着互动游戏、虚拟现实和头戴显示技术的发展,实时测量对象(物体或者人体)的姿态显得越来越重要,而对象的姿态数据一般通过传感器来测量。In the field of motion sensing technology, with the development of interactive games, virtual reality and head-mounted display technology, it is more and more important to measure the posture of an object (object or human body) in real time, and the attitude data of the object is generally measured by a sensor.
现有技术中,在通过传感器测量对象的姿态数据时,一般需要将传感器按照特定的位置关系安装或者佩戴于对象上,或者使用第三方传感装置在一定距离以外对对象进行定向。In the prior art, when measuring the attitude data of an object by a sensor, it is generally required to mount or wear the sensor to the object in a specific positional relationship, or to orient the object at a certain distance using a third-party sensing device.
但是,现有技术中,将传感器按照特定的位置关系安装或者佩戴于对象上,增加了传感器生产装配的难度,降低了使用时的自由度和方便性,并且如果佩戴位置存在偏差或者生产装配时传感器的位置出现偏差,会导致测量的姿态数据存在误差,测量得到的数据并不符合实际需求;若使用第三方传感装置则不具备良好的移动性,并且对环境影响较为敏感,容易受到干扰而导致姿态数据错误,从而使得测量的数据不符合用户的实际需求。However, in the prior art, the sensor is installed or worn on the object according to a specific positional relationship, which increases the difficulty of production and assembly of the sensor, reduces the degree of freedom and convenience in use, and if there is a deviation in the wearing position or production assembly. Deviation of the position of the sensor will result in errors in the measured attitude data. The measured data does not meet the actual requirements. If a third-party sensing device is used, it does not have good mobility and is sensitive to environmental influences and is susceptible to interference. As a result, the posture data is incorrect, so that the measured data does not meet the actual needs of the user.
综上,现有技术中在使用传感器测量对象的姿态数据时,测量得到的数据 可能并不符合用户的实际需求。In summary, in the prior art, when the sensor is used to measure the attitude data of the object, the measured data is obtained. May not meet the actual needs of users.
发明内容Summary of the invention
有鉴于此,本发明实施例的目的在于提供一种姿态数据获取方法及装置,以解决现有技术中在使用传感器测量对象的姿态数据时,测量的姿态数据的准确性较低的技术问题。In view of this, an object of the embodiments of the present invention is to provide a method and apparatus for acquiring attitude data, which solves the technical problem that the accuracy of the measured attitude data is low when using the attitude data of the sensor measurement object in the prior art.
第一方面,本发明实施例提供了一种姿态数据获取方法,其中,所述方法包括步骤:In a first aspect, an embodiment of the present invention provides a method for acquiring gesture data, where the method includes the following steps:
获取携带在待测量对象上的传感器采集的所述待测量对象在旋转时的第一姿态数据;Obtaining first posture data of the object to be measured collected by the sensor carried on the object to be measured while rotating;
根据所述传感器的坐标系相对所述待测量对象对应的参考坐标系的水平角度差,对所述第一姿态数据进行修正,将修正后的第一姿态数据确定为所述待测量对象的第一姿态数据。Determining the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured, and determining the corrected first posture data as the object to be measured A gesture data.
结合第一方面,本方面实施例提供了上述第一方面的第一种可能的实现方式,其中,根据以下步骤确定所述传感器的坐标系相对所述参考坐标系的水平角度差:With reference to the first aspect, the embodiment of the present invention provides the first possible implementation manner of the foregoing first aspect, wherein the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system is determined according to the following steps:
在三维空间中创建待测量对象模型和传感器模型;Creating an object model to be measured and a sensor model in a three-dimensional space;
获取所述传感器采集的所述待测量对象做下俯转动的第二姿态数据;Obtaining second posture data of the object to be measured collected by the sensor to perform a downward rotation;
确定所述传感器模型基于所述第二姿态数据转动时所产生的运动轨迹信息;Determining, by the sensor model, motion trajectory information generated when the second attitude data is rotated;
根据所述传感器模型转动时所产生的运动轨迹信息和所述参考坐标系,确定所述水平角度差。The horizontal angle difference is determined according to motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
结合第一方面的第一种可能的实现方式,本发明实施例提供了上述第一方面的第二种可能的实现方式,其中,所述确定所述传感器模型基于所述第 二姿态数据转动时所产生的运动轨迹信息的步骤包括:With reference to the first possible implementation manner of the first aspect, the embodiment of the present invention provides the second possible implementation manner of the foregoing first aspect, wherein the determining the sensor model is based on the The steps of the motion track information generated when the two posture data is rotated include:
确定以所述传感器模型的旋转中心点为起点的摆线的末端随所述传感器模型运动时的运动轨迹信息;Determining motion trajectory information of an end of a cycloid starting from a rotation center point of the sensor model as a function of the sensor model;
将所述摆线的末端的运动轨迹信息确定为所述传感器模型转动时所产生的运动轨迹信息。The motion trajectory information of the end of the cycloid is determined as the motion trajectory information generated when the sensor model is rotated.
结合第一方面的第一种可能的实现方式,本发明实施例提供了上述第一方面的第三种可能的实现方式,其中,所述根据所述传感器模型转动时所产生的运动轨迹信息和所述参考坐标系确定所述水平角度差的步骤包括:In conjunction with the first possible implementation of the first aspect, the embodiment of the present invention provides a third possible implementation manner of the foregoing first aspect, wherein the motion trajectory information generated when the sensor model is rotated according to the The step of determining the horizontal angular difference by the reference coordinate system includes:
根据所述传感器模型转动时所产生的运动轨迹信息,确定所述传感器模型所产生的运动轨迹的终点与所述运动轨迹的起点之间的连线信息;Determining connection information between an end point of the motion trajectory generated by the sensor model and a start point of the motion trajectory according to motion trajectory information generated when the sensor model is rotated;
根据所述连线信息,确定所述运动轨迹的终点与起点之间的连线与所述参考坐标系的水平坐标轴之间的夹角;Determining, according to the connection information, an angle between a line connecting the end point of the motion track and the start point and a horizontal coordinate axis of the reference coordinate system;
根据所述夹角,确定所述水平角度差。The horizontal angle difference is determined according to the included angle.
结合第一方面,本发明实施例提供了上述第一方面的第四种可能的实现方式,其中,所述第一姿态数据包括三轴旋转角度;With reference to the first aspect, the embodiment of the present invention provides the fourth possible implementation manner of the foregoing first aspect, wherein the first posture data includes a three-axis rotation angle;
所述根据所述传感器的坐标系相对待测量对象对应的参考坐标系的水平角度差对所述第一姿态数据进行修正的步骤包括:The step of correcting the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured includes:
根据所述传感器的坐标系相对所述参考坐标系的水平角度差,对所述三轴旋转角度进行修正,得到所述待测量对象的三轴旋转角度。And correcting the three-axis rotation angle according to a horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system to obtain a three-axis rotation angle of the object to be measured.
结合第一方面的第四种可能的实现方式,本发明实施例提供了上述第一方面的第五种可能的实现方式,其中,所述根据所述传感器的坐标系相对所述参考坐标系的水平角度差对所述三轴旋转角度进行修正的步骤包括:In conjunction with the fourth possible implementation of the first aspect, the embodiment of the present invention provides the fifth possible implementation manner of the foregoing first aspect, wherein the coordinate system according to the sensor is relative to the reference coordinate system The step of correcting the three-axis rotation angle by the horizontal angle difference includes:
计算所述三轴旋转角度中的水平旋转角度和所述传感器的坐标系相对所述参考坐标系的水平角度差的和值;Calculating a sum of a horizontal rotation angle in the three-axis rotation angle and a horizontal angle difference of a coordinate system of the sensor with respect to the reference coordinate system;
将所述和值、所述三轴旋转角度中的俯仰角度和滚转角度确定为所述待 测量对象的三轴旋转角度。Determining the sum value, the pitch angle and the roll angle in the three-axis rotation angle as the waiting Measures the three-axis rotation angle of the object.
第二方面,本发明实施例提供了一种姿态数据获取装置,其中,所述装置包括:In a second aspect, an embodiment of the present invention provides an attitude data acquiring apparatus, where the apparatus includes:
第一获取模块,配置成获取携带在待测量对象上的传感器采集的所述待测量对象在旋转时的第一姿态数据;a first acquiring module, configured to acquire first posture data of the object to be measured collected by a sensor carried on the object to be measured while rotating;
修正模块,配置成根据所述传感器的坐标系相对所述待测量对象对应的参考坐标系的水平角度差,对所述第一姿态数据进行修正,将修正后的第一姿态数据确定为所述待测量对象的第一姿态数据。a correction module configured to modify the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured, and determine the corrected first posture data as the The first pose data of the object to be measured.
结合第二方面,本发明实施例提供了上述第二方面的第一种可能的实现方式,其中,所述装置还包括:With reference to the second aspect, the embodiment of the present invention provides the first possible implementation manner of the foregoing second aspect, wherein the device further includes:
创建模块,配置成在三维空间中创建待测量对象模型和传感器模型;Creating a module configured to create an object model to be measured and a sensor model in a three-dimensional space;
第二获取模块,配置成获取所述传感器采集的所述待测量对象做下俯转动的第二姿态数据;a second acquiring module, configured to acquire second posture data of the object to be measured collected by the sensor to perform a downward rotation;
第一确定模块,配置成确定所述传感器模型基于所述第二姿态数据转动时所产生的运动轨迹信息;a first determining module, configured to determine motion trajectory information generated when the sensor model is rotated based on the second posture data;
第二确定模块,配置成根据所述传感器模型转动时所产生的运动轨迹信息和所述参考坐标系,确定所述水平角度差。The second determining module is configured to determine the horizontal angle difference according to the motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
结合第二方面,本发明实施例提供了上述第一方面的第二种可能的实现方式,其中,所述第一姿态数据包括三轴旋转角度;With reference to the second aspect, the embodiment of the present invention provides the second possible implementation manner of the foregoing first aspect, wherein the first posture data includes a three-axis rotation angle;
所述修正模块包括:The correction module includes:
修正单元,配置成根据所述传感器的坐标系相对所述参考坐标系的水平角度差,对所述三轴旋转角度进行修正,得到所述待测量对象的三轴旋转角度。And a correction unit configured to correct the three-axis rotation angle according to a horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system to obtain a three-axis rotation angle of the object to be measured.
结合第二方面的第二种可能的实现方式,本发明实施例提供了上述第二方面的第三种可能的实现方式,其中,所述修正单元包括: With the second possible implementation of the second aspect, the embodiment of the present invention provides a third possible implementation manner of the foregoing second aspect, wherein the modifying unit includes:
计算子单元,配置成计算所述三轴旋转角度中的水平旋转角度和所述传感器的坐标系相对所述参考坐标系的水平角度差的和值;a calculation subunit configured to calculate a sum of a horizontal rotation angle of the three-axis rotation angle and a horizontal angle difference of a coordinate system of the sensor with respect to the reference coordinate system;
确定子单元,配置成将所述和值、所述三轴旋转角度中的俯仰角度和滚转角度确定为所述待测量对象的三轴旋转角度。The determining subunit is configured to determine the sum value, the pitch angle and the roll angle in the three-axis rotation angle as the three-axis rotation angle of the object to be measured.
在本发明实施例提供的姿态数据获取方法及装置中,传感器可以设置在待测量对象上的任意位置,并且通过对传感器采集的被测量对象的姿态数据进行修正,使获取的被测量对象的姿态数据符合实际需求。In the method and device for acquiring the attitude data provided by the embodiment of the present invention, the sensor may be disposed at an arbitrary position on the object to be measured, and the attitude data of the measured object collected by the sensor is corrected to obtain the posture of the measured object to be measured. The data meets the actual needs.
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。The above described objects, features and advantages of the present invention will become more apparent from the aspects of the appended claims.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It should be understood that the following drawings show only certain embodiments of the present invention, and therefore It should be seen as a limitation on the scope, and those skilled in the art can obtain other related drawings according to these drawings without any creative work.
图1示出了本发明实施例所提供的物体姿态数据获取方法流程图;FIG. 1 is a flowchart of a method for acquiring object posture data according to an embodiment of the present invention;
图2示出了本发明实施例所提供的物体姿态数据获取方法中,确定传感器的坐标系相对参考坐标系的水平角度差的流程图;FIG. 2 is a flowchart of determining a horizontal angle difference between a coordinate system of a sensor and a reference coordinate system in an object posture data acquiring method according to an embodiment of the present invention;
图3示出了本发明实施例中在三维空间中建立的待测量对象模型和传感器模型的初始状态示意图;3 is a schematic diagram showing an initial state of an object model and a sensor model to be measured established in a three-dimensional space in an embodiment of the present invention;
图4示出了本发明实施例中在三维空间中建立的待测量对象模型和传感器模型,传感器模型转动后的状态示意图;4 is a schematic diagram showing a state of a model to be measured and a sensor model established in a three-dimensional space in the embodiment of the present invention, after the sensor model is rotated;
图5示出了本发明实施例所提供的姿态获取装置的结构示意图; FIG. 5 is a schematic structural diagram of an attitude acquiring apparatus according to an embodiment of the present invention;
图6示出了本发明实施例所提供的姿态获取装置的第二种结构示意图。FIG. 6 is a schematic diagram showing a second structure of an attitude acquiring apparatus according to an embodiment of the present invention.
图标:1-待测量对象模型;2-传感器模型;3-处于初始状态时的摆线;3″-处于转动后状态时的摆线;4-运动轨迹的终点与起点之间的连线。Icons: 1 - object model to be measured; 2 - sensor model; 3 - cycloid in the initial state; 3" - cycloid in the post-rotation state; - line between the end point of the motion trajectory and the starting point.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. The components of the embodiments of the invention, which are generally described and illustrated in the figures herein, may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the invention in the claims All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
考虑到现有技术中,在测量对象的姿态数据时,一般都是将传感器按照特定的位置关系安装或者佩戴于对象上,或者使用第三方传感装置,使得测量的对象的姿态数据的可能并不符合实际需求。基于此,本发明实施例提供了一种姿态数据获取方法及装置,下面通过实施例进行描述。Considering the prior art, when measuring the attitude data of an object, the sensor is generally mounted or worn on the object according to a specific positional relationship, or a third-party sensing device is used, so that the posture data of the measured object is possible. Does not meet actual needs. Based on this, an embodiment of the present invention provides a method and an apparatus for acquiring posture data, which are described below by way of embodiments.
本发明实施例提供了一种姿态数据获取方法,在采用该方法获取待测量对象的姿态数据时,传感器可以设置在待测量对象的任意位置,并且通过对传感器采集的被测量对象的姿态数据进行修正,使得被测量对象的姿态数据准确性符合实际需求。The embodiment of the present invention provides a method for acquiring posture data. When the posture data of the object to be measured is acquired by using the method, the sensor can be set at an arbitrary position of the object to be measured, and the posture data of the measured object collected by the sensor is performed. Correction, so that the accuracy of the attitude data of the measured object meets the actual needs.
参考图1所示,本发明实施例提供的姿态数据获取方法,包括步骤S110-S120,具体如下。Referring to FIG. 1 , a method for acquiring posture data according to an embodiment of the present invention includes steps S110-S120, which are specifically as follows.
S110,获取携带在待测量对象上的传感器采集的待测量对象在旋转时的第一姿态数据。 S110. Acquire first posture data of the object to be measured collected by the sensor carried on the object to be measured while rotating.
上述待测量对象可以是人体任意部位,比如说,头部、胳膊或者腿部等,还可以是手机或者其它物体等。The object to be measured may be any part of the human body, for example, a head, an arm or a leg, etc., and may also be a mobile phone or other object.
上述传感器携带在待测量对象上包括传感器安装在待测量对象上或者是将传感器佩戴在待测量对象上,上述具体携带方式可以根据实际应用场景进行测量,比如说,如果上述待测量对象为人体,则需要将传感器佩戴在人体上,如果上述被测量对象为物体,则可以将传感器安装在物体上,使传感器和物体一体成型。The above-mentioned sensor is carried on the object to be measured, and the sensor is mounted on the object to be measured or the sensor is worn on the object to be measured. The specific carrying mode can be measured according to the actual application scenario. For example, if the object to be measured is a human body, The sensor needs to be worn on the human body. If the object to be measured is an object, the sensor can be mounted on the object to integrally form the sensor and the object.
S120,根据传感器的坐标系相对待测量对象对应的参考坐标系的水平角度差,对上述第一姿态数据进行修正,将修正后的第一姿态数据确定为待测量对象的第一姿态数据。S120: Correct the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured, and determine the corrected first posture data as the first posture data of the object to be measured.
上述传感器的坐标系指的是传感器自身坐标系,传感器自身坐标系的坐标原点可以是传感器上任意一个位置,传感器自身坐标系的X轴可以是传感器的正前方,以传感器所在的水平面上且垂直于X轴的轴线作为传感器自身坐标系的Y轴,以垂直于传感器所在水平面的竖直方向为作为传感器自身坐标系的Z轴。The coordinate system of the above sensor refers to the sensor's own coordinate system. The coordinate origin of the sensor's own coordinate system can be any position on the sensor. The X axis of the sensor's own coordinate system can be directly in front of the sensor, on the horizontal plane where the sensor is located and vertical. The axis of the X-axis is taken as the Y-axis of the sensor's own coordinate system, and the vertical direction perpendicular to the horizontal plane of the sensor is taken as the Z-axis of the sensor's own coordinate system.
上述参考坐标系的X轴、Y轴和Z轴可以根据具体的待测量对象进行建立,比如说,当上述待测量对象为人体头部时,则将传感器佩戴在人体头部任意位置,在建立人体头部对应的参考坐标系时,可以以人体头部的任意位置为参考坐标系的原点,以人体头部的正前方作为参考坐标系的X轴,以X轴所在平面上且垂直于人体头部正前方的方向为Y轴,以相对于头顶竖直向上的方向为Z轴。The X-axis, the Y-axis, and the Z-axis of the reference coordinate system may be established according to a specific object to be measured. For example, when the object to be measured is a human head, the sensor is worn at any position on the human head, and is established. When the reference coordinate system corresponding to the human head is used, the arbitrary position of the human head can be taken as the origin of the reference coordinate system, and the front of the human head is taken as the X-axis of the reference coordinate system, and the plane of the X-axis is perpendicular to the human body. The direction directly in front of the head is the Y-axis, and the direction perpendicular to the top of the head is the Z-axis.
比如说,当上述待测量对象为长方体状的物体时,将传感器安装在物体上,在建立物体对应的参考坐标系时,可以将该物体上的任意一个位置作为参考坐标系的原点,以该物体的宽所在的方向作为参考坐标系的X轴,以该物体的长所在的方向作为参考坐标系的Y轴,以该物体的高所在的方向作为参考坐标系的Z轴。 For example, when the object to be measured is a rectangular parallelepiped object, the sensor is mounted on the object, and when the reference coordinate system corresponding to the object is established, any position on the object may be used as the origin of the reference coordinate system. The direction in which the width of the object lies is taken as the X-axis of the reference coordinate system, and the direction in which the length of the object is located is taken as the Y-axis of the reference coordinate system, and the direction in which the height of the object is located is taken as the Z-axis of the reference coordinate system.
上述只是以人体头部和长方体物体为例介绍待测量对象对应的参考坐标系,具体待测量对象对应的参考坐标系可以根据实际应用进行建立,本发明实施例并不对此进行限定。In the above, the reference coordinate system corresponding to the object to be measured is described by taking the human head and the cuboid object as an example. The reference coordinate system corresponding to the object to be measured can be established according to the actual application, which is not limited by the embodiment of the present invention.
参考图2所示,在本发明实施例中,可以根据以下步骤确定上述传感器的坐标系相对参考坐标系的水平角度差:Referring to FIG. 2, in the embodiment of the present invention, the horizontal angle difference between the coordinate system of the sensor and the reference coordinate system may be determined according to the following steps:
S210,在三维空间中创建待测量对象模型和传感器模型;S210, creating an object model to be measured and a sensor model in a three-dimensional space;
S220,获取上述传感器采集的待测量对象做下俯转动的第二姿态数据;S220, acquiring second posture data of the object to be measured collected by the sensor to perform a downward rotation;
S230,确定上述传感器模型基于第二姿态数据转动时所产生的运动轨迹信息;S230, determining motion trajectory information generated when the sensor model is rotated based on the second attitude data;
S240,根据上述传感器模型转动时所产生的运动轨迹信息和参考坐标系,确定上述水平角度差。S240. Determine the horizontal angle difference according to the motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
上述第二姿态数据包括待测量对象下俯转动时的三轴旋转角度,具体包括:水平旋转角度、俯仰角度和滚转角度。The second attitude data includes a three-axis rotation angle when the object to be measured is rotated downward, and specifically includes: a horizontal rotation angle, a pitch angle, and a roll angle.
上述待测量对象模型则是根据待测量对象而创建的,比如说,如果上述待测量对象为人体头部,则在三维空间中创建的待测量对象模型为人体头部模型,即在三维空间中创建的待测量对象模型和待测量对象的形状保持一致,同样,上述传感器模型也是根据传感器而创建的。The object model to be measured is created according to the object to be measured. For example, if the object to be measured is a human head, the object model to be measured created in the three-dimensional space is a human head model, that is, in a three-dimensional space. The created object model to be measured is consistent with the shape of the object to be measured. Similarly, the above sensor model is also created based on the sensor.
在三维空间中创建的待测量对象模型和传感器模型的之间的相对位置是任意的,本发明实施例就是根据三维空间中创建的待测量对象模型和传感器模型来确定待测量对象和其携带的传感器之间的位置关系。The relative position between the object model to be measured and the sensor model created in the three-dimensional space is arbitrary. In the embodiment of the present invention, the object to be measured and the sensor model are determined according to the object model to be measured and the sensor model created in the three-dimensional space. The positional relationship between the sensors.
如图3所示,为三维空间中创建的待测量对象模型和传感器模型的初始示意图,在三维空间中的水平面相当于大地水平面,即待测量对象模型与水平面之间的位置关系和待测量对象与大地水平面之间的位置关系一致,因此,待测量对象模型对应的参考坐标系的X轴和Y轴所在平面平行于三维空间的水平面,并且X轴、Y轴和Z轴与待测量对象对应的参考坐标系的X轴、Y轴和 Z轴一致。As shown in FIG. 3, an initial schematic diagram of the object model to be measured and the sensor model created in the three-dimensional space, the horizontal plane in the three-dimensional space is equivalent to the ground level, that is, the positional relationship between the object model to be measured and the horizontal plane and the object to be measured The positional relationship with the horizontal plane is the same. Therefore, the planes of the X-axis and the Y-axis of the reference coordinate system corresponding to the object model to be measured are parallel to the horizontal plane of the three-dimensional space, and the X-axis, the Y-axis, and the Z-axis correspond to the object to be measured. The X coordinate, the Y axis, and the reference coordinate system The Z axis is consistent.
在图3所示出的示意图中,待测量对象为正方体物体,将该物体水平放置在三维空间上后,只能看到该物体的背面。In the schematic diagram shown in FIG. 3, the object to be measured is a cube-shaped object, and after the object is horizontally placed on the three-dimensional space, only the back surface of the object can be seen.
当在三维空间中创建了待测量对象模型和传感器模型后,则开始确定传感器和待测量对象之间的位置关系,具体的,是通过如下过程实现的:After the object model and the sensor model to be measured are created in the three-dimensional space, the positional relationship between the sensor and the object to be measured is determined, which is specifically achieved by the following process:
首先,使待测量对象在初始位置保持水平方向不变,做下俯转动,并且下俯转动的角度为非零的。当待测量对象下俯转动时,携带在待测量对象上的传感器会采集待测量对象下俯转动时的第二姿态数据,本发明实施例中的姿态数据获取装置会获取传感器采集的第二姿态数据,然后控制三维空间中的传感器模型根据第二姿态数据进行下俯转动,在传感器模型在三维空间中做下俯转动时,确定出传感器模型基于下俯转动时的运动轨迹信息。First, the object to be measured is kept in the horizontal direction at the initial position, the downward rotation is performed, and the angle of the downward rotation is non-zero. When the object to be measured is rotated in the downward direction, the sensor carried on the object to be measured collects the second posture data when the object to be measured is rotated downward, and the posture data acquiring device in the embodiment of the present invention acquires the second posture acquired by the sensor. The data is then controlled to control the sensor model in the three-dimensional space according to the second attitude data, and when the sensor model is rotated in the three-dimensional space, the motion model information of the sensor model based on the downward rotation is determined.
具体的,当待测量对象在做下俯转动时,如果待测量对象是垂直于待测量对象所在的水平面的,则待测量对象沿着垂直于水平面的轴做下俯转动;如果待测量对象向左或者向右有一定程度的倾斜,则沿着与待测量对象的倾斜一致的轴做下俯转动,且在本发明实施例中,待测量对象在做下俯转动时,可以允许待测量对象有一定的倾斜,但是倾斜的角度需小于90°。Specifically, when the object to be measured is rotating downward, if the object to be measured is perpendicular to the horizontal plane of the object to be measured, the object to be measured is rotated downward along an axis perpendicular to the horizontal plane; If there is a certain degree of inclination to the left or the right, the downward rotation is performed along the axis that coincides with the inclination of the object to be measured, and in the embodiment of the present invention, the object to be measured can allow the object to be measured while doing the downward rotation. There is a certain inclination, but the angle of inclination needs to be less than 90°.
上述运动轨迹信息指的是传感器模型在基于第二姿态数据转动时在三维空间中经过的各个位置相对于参考坐标系的坐标值。The above-described motion trajectory information refers to coordinate values of respective positions in the three-dimensional space with respect to the reference coordinate system when the sensor model is rotated based on the second attitude data.
在本发明实施例中,具体是通过如下过程确定传感器模型基于第二姿态数据转动时所产生的运动轨迹信息的:In the embodiment of the present invention, the motion track information generated when the sensor model is rotated based on the second posture data is determined by the following process:
确定以传感器模型的旋转中心点为起点的摆线的末端随传感器模型运动时的运动轨迹信息;将摆线的末端的运动轨迹信息确定为传感器模型转动时所产生的运动轨迹信息。The motion trajectory information of the end of the cycloid with the rotation center point of the sensor model as a function of the sensor model is determined; the motion trajectory information of the end of the cycloid is determined as the motion trajectory information generated when the sensor model is rotated.
上述传感器模型的旋转中心点可以是三维空间距离水平面一定高度处的任意一点,优选的,可以是位于传感器模型上方一定距离的任意一点。 The rotation center point of the sensor model may be any point at a certain height of the three-dimensional space from the horizontal plane. Preferably, it may be any point located at a certain distance above the sensor model.
以传感器模型的旋转中心点为起点,竖直向下做出铅垂线,该铅垂线的长度是任意的,并且该铅垂线与传感器模型之间的关系绑定,即铅垂线随着传感器模型的转动而转动,该铅垂线就是初始状态时的摆线,本发明实施例并不对上述摆线的具体长度进行限定。Starting from the rotation center point of the sensor model, a vertical line is made vertically downward, the length of the vertical line is arbitrary, and the relationship between the vertical line and the sensor model is bound, that is, the plumb line The rotation of the sensor model is rotated, and the vertical line is a cycloid in the initial state. The embodiment of the present invention does not limit the specific length of the cycloid.
当传感器模型基于第二姿态数据进行转动时,上述摆线随着传感器模型的转动而转动,而摆线在转动时,摆线的末端在三维空间中会留下运动轨迹,该运动轨迹是由摆线在转动时,摆线的末端所经过的一系列的点组成的。When the sensor model is rotated based on the second attitude data, the pendulum rotates with the rotation of the sensor model, and when the cycloid is rotated, the end of the cycloid leaves a motion trajectory in three-dimensional space, and the motion trajectory is When the cycloid is rotated, the end of the cycloid consists of a series of points.
在本发明实施例中,为了确定出传感器模型旋转时所产生的运动轨迹信息,可以先确定出摆线末端随着传感器模型转动时的运动轨迹信息,由于传感器模型和摆线的转动是一样的,因此将摆线的末端的运动轨迹信息确定为传感器模型转动时所产生的运动轨迹信息。In the embodiment of the present invention, in order to determine the motion trajectory information generated when the sensor model is rotated, the motion trajectory information of the end of the cycloid as the sensor model is rotated may be determined first, because the rotation of the sensor model and the cycloid is the same. Therefore, the motion trajectory information of the end of the cycloid is determined as the motion trajectory information generated when the sensor model is rotated.
当然,除了使用摆线的末端的运动轨迹来确定传感器模型的运动轨迹信息之外,还可以使用摆线上任意一点的运动轨迹来确定传感器模型的运动轨迹信息。Of course, in addition to using the motion trajectory of the end of the cycloid to determine the motion trajectory information of the sensor model, the motion trajectory of any point on the pendulum line can be used to determine the motion trajectory information of the sensor model.
当确定了传感器模型转动时所产生的运动轨迹信息后,则根据传感器模型转动时所产生的运动轨迹信息和参考坐标系,确定传感器的坐标系和待测量对象对应的参考坐标系之间的水平角度差,具体包括:After determining the motion trajectory information generated when the sensor model is rotated, the level between the coordinate system of the sensor and the reference coordinate system corresponding to the object to be measured is determined according to the motion trajectory information generated by the rotation of the sensor model and the reference coordinate system. The difference in angle includes:
根据传感器模型转动时所产生的运动轨迹信息,确定传感器模型所产生的运动轨迹的终点与运动轨迹的起点之间的连线信息;根据上述连线信息,确定传感器模型所产生的运动轨迹的终点与起点之间的连线与参考坐标系的水平坐标轴之间的夹角;根据上述夹角,确定传感器的坐标系和参考坐标系之间的水平角度差。Determining the connection information between the end point of the motion trajectory generated by the sensor model and the start point of the motion trajectory according to the motion trajectory information generated when the sensor model is rotated; determining the end point of the motion trajectory generated by the sensor model according to the connection information The angle between the line connecting the starting point and the horizontal coordinate axis of the reference coordinate system; according to the above angle, the horizontal angle difference between the coordinate system of the sensor and the reference coordinate system is determined.
如图4所示,为摆线随传感器模型转动一定角度后的状态图,其中,1为待测量对象模型,2为传感器模型,3″为处于转动后状态时的摆线,即传感器模型转动后的摆线,3为处于初始状态时的摆线,即传感器模型转动之前的摆线,4为运动轨迹的终点与起点之间的连线,即传感器模型转动后的摆线的末 端和转动前的摆线的末端之间的连线,在本发明实施例中,根据上述连线和参考坐标系的水平坐标轴之间的夹角,确定传感器的坐标系和参考坐标系之间的水平角度差。As shown in Fig. 4, the state diagram of the cycloid is rotated with the sensor model by a certain angle, wherein 1 is the object model to be measured, 2 is the sensor model, and 3′′ is the cycloid in the state after the rotation, that is, the sensor model rotates. After the cycloid, 3 is the cycloid in the initial state, that is, the cycloid before the rotation of the sensor model, 4 is the line connecting the end point of the motion trajectory and the starting point, that is, the end of the cycloid after the rotation of the sensor model The connection between the end and the end of the cycloid before the rotation, in the embodiment of the present invention, determining the coordinate system of the sensor and the reference coordinate system according to the angle between the horizontal coordinate axes of the connection and the reference coordinate system The horizontal angle difference between the two.
上述连线信息包括可以包括运动轨迹的终点与运动轨迹的起点之间的连线的斜率,以及在参考坐标系上的水平轴上的截距。The above-described wiring information includes a slope that may include a line between the end point of the motion trajectory and the start point of the motion trajectory, and an intercept on the horizontal axis on the reference coordinate system.
上述参考坐标系的水平坐标轴指的是平行于三维空间的水平面上的两个坐标轴。The horizontal coordinate axis of the above reference coordinate system refers to two coordinate axes parallel to the horizontal plane of the three-dimensional space.
比如说,待测量对象为人体头部,则以人体头部的正前方作为参考坐标系的X轴,以X轴所在平面上且垂直于人体头部正前方的方向为Y轴,最终需要确定的水平角度差则是传感器模型的运动轨迹的终点与起点之间的连线与X轴之间的夹角,如果,上述确定的是上述连线与X轴之间的夹角,则直接将该夹角确定为传感器的坐标系相对于参考坐标系的水平角度差;如果上述确定的是上述连线与Y轴之间的夹角,则根据X轴和Y轴之间的角度以及上述确定的之间和X轴之间的夹角,确定出传感器的坐标系和参考坐标系之间的水平角度差。For example, if the object to be measured is the head of the human body, the front side of the human head is taken as the X axis of the reference coordinate system, and the direction on the plane of the X axis and perpendicular to the front of the human head is the Y axis, and finally needs to be determined. The horizontal angle difference is the angle between the line connecting the end point of the motion trajectory of the sensor model and the starting point and the X axis. If the above determination is the angle between the above line and the X axis, then the angle will be directly The angle is determined as a horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system; if the angle between the above-mentioned line and the Y-axis is determined as described above, according to the angle between the X-axis and the Y-axis and the above determination The angle between the and the X-axis determines the horizontal angular difference between the sensor's coordinate system and the reference coordinate system.
本发明实施例中,需要确定的传感器的坐标系和参考坐标系之间的水平角度差,就是上述直线和待测量对象的正前方之间的夹角,而待测量对象的正前方可以根据实际场景进行确定。In the embodiment of the present invention, the horizontal angle difference between the coordinate system of the sensor and the reference coordinate system that needs to be determined is the angle between the straight line and the front of the object to be measured, and the front side of the object to be measured may be based on actual conditions. The scene is determined.
上述第一姿态数据包括三轴旋转角度。The first attitude data described above includes a three-axis rotation angle.
具体的,上述三轴旋转角度包括水平旋转角度、俯仰角度和滚转角度。Specifically, the above three-axis rotation angle includes a horizontal rotation angle, a pitch angle, and a roll angle.
当确定出传感器的坐标系相对待测量对象对应的参考坐标系的水平角度差后,则根据上述水平角度差对第一姿态数据进行修正,具体包括:After determining the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system corresponding to the object to be measured, the first posture data is corrected according to the horizontal angle difference, which specifically includes:
根据传感器的坐标系相对参考坐标系的水平角度差,对三轴旋转角度进行修正,得到待测量对象的三轴旋转角度。According to the horizontal angle difference between the coordinate system of the sensor and the reference coordinate system, the three-axis rotation angle is corrected to obtain a three-axis rotation angle of the object to be measured.
具体的,上述对三轴旋转角度进行修正,是通过如下步骤实现的: Specifically, the above correction of the triaxial rotation angle is achieved by the following steps:
计算三轴旋转角度中的水平旋转角度和传感器的坐标系相对参考坐标系的水平角度差的和值;将上述和值、三轴旋转角度中的俯仰角度和滚转角度确定为待测量对象的三轴旋转角度。Calculating a horizontal rotation angle in the three-axis rotation angle and a sum of horizontal angle differences of the coordinate system of the sensor with respect to the reference coordinate system; determining the pitch angle and the roll angle in the above-mentioned sum value, the three-axis rotation angle as the object to be measured Three-axis rotation angle.
在本发明实施例中,只需要对三轴旋转角度中的水平旋转角度进行修正即可。In the embodiment of the present invention, only the horizontal rotation angle in the three-axis rotation angle needs to be corrected.
除此之外,上述第一姿态数据还包括三轴加速度,在本发明实施例中,并不对传感器采集的三轴加速度进行修正,即传感器采集的三轴加速度就是待测量对象的三轴加速度。In addition, the first attitude data further includes a triaxial acceleration. In the embodiment of the present invention, the triaxial acceleration acquired by the sensor is not corrected, that is, the triaxial acceleration acquired by the sensor is the triaxial acceleration of the object to be measured.
本发明实施例提供的姿态数据获取方法,传感器可以设置在待测量对象上的任意位置,并且通过对传感器采集的被测量对象的姿态数据进行修正,使获取的被测量对象的姿态数据符合实际需求。The method for acquiring the attitude data provided by the embodiment of the present invention, the sensor can be set at any position on the object to be measured, and the posture data of the measured object collected by the sensor is corrected, so that the acquired attitude data of the measured object meets the actual demand. .
参考图5所示,本发明实施例还提供了一种姿态数据获取装置,该装置配置成执行本发明实施例提供的姿态数据获取方法,该装置包括第一获取模块510和修正模块520;As shown in FIG. 5, an embodiment of the present invention further provides a gesture data acquisition apparatus, which is configured to perform a gesture data acquisition method provided by an embodiment of the present invention, the apparatus includes a first acquisition module 510 and a correction module 520;
上述第一获取模块510,配置成获取携带在待测量对象上的传感器采集的待测量对象在旋转时的第一姿态数据;The first acquiring module 510 is configured to acquire first posture data when the object to be measured collected by the sensor carried on the object to be measured is rotated;
上述修正模块520,配置成根据上述传感器的坐标系相对待测量对象的参考坐标系的水平角度差,对第一姿态数据进行修正,将修正后的第一姿态数据确定为待测量对象的第一姿态数据。The correction module 520 is configured to correct the first posture data according to the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system of the object to be measured, and determine the corrected first posture data as the first object to be measured. Gesture data.
上述待测量对象可以是人体任意部位,比如说,头部、胳膊或者腿部等,还可以是手机或者其它物体等。The object to be measured may be any part of the human body, for example, a head, an arm or a leg, etc., and may also be a mobile phone or other object.
上述传感器携带在待测量对象上包括传感器安装在待测量对象上或者是将传感器佩戴在待测量对象上,上述具体携带方式可以根据实际应用场景进行测量,比如说,如果上述待测量对象为人体,则需要将传感器佩戴在人体上,如果上述被测量对象为物体,则可以将传感器安装在物体上,使传感器和物体 一体成型。The above-mentioned sensor is carried on the object to be measured, and the sensor is mounted on the object to be measured or the sensor is worn on the object to be measured. The specific carrying mode can be measured according to the actual application scenario. For example, if the object to be measured is a human body, The sensor needs to be worn on the human body. If the object to be measured is an object, the sensor can be mounted on the object to make the sensor and the object. One piece.
参考图6所示,本发明实施例提供的姿态数据获取装置还包括创建模块530、第二获取模块540、第一确定模块550和第二确定模块560,在本发明实施例中可以通过创建模块530、第二获取模块540、第一确定模块550和第二确定模块560确定传感器的坐标系相对参考坐标系的水平角度差,具体如下:Referring to FIG. 6 , the gesture data acquiring apparatus provided by the embodiment of the present invention further includes a creating module 530, a second obtaining module 540, a first determining module 550, and a second determining module 560. In the embodiment of the present invention, a module may be created. 530. The second obtaining module 540, the first determining module 550, and the second determining module 560 determine a horizontal angle difference between the coordinate system of the sensor and the reference coordinate system, as follows:
上述创建模块530,配置成在三维空间中创建待测量对象模型和传感器模型;The creating module 530 is configured to create an object model to be measured and a sensor model in a three-dimensional space;
上述第二获取模块540,配置成获取传感器采集的待测量对象做下俯转动的第二姿态数据;The second acquiring module 540 is configured to acquire second posture data of the object to be measured collected by the sensor to perform a downward rotation;
上述第一确定模块550,配置成确定上述传感器模型基于第二姿态数据转动时所产生的运动轨迹信息;The first determining module 550 is configured to determine motion trajectory information generated when the sensor model is rotated based on the second posture data;
上述第二确定模块560,配置成根据上述传感器模型转动时所产生的运动轨迹信息和参考坐标系,确定上述水平角度差。The second determining module 560 is configured to determine the horizontal angle difference according to the motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
在本发明实施例中,上述第一姿态数据包括三轴旋转角度;In the embodiment of the present invention, the first posture data includes a three-axis rotation angle;
因此,上述修正模块520根据上述传感器的坐标系相对待测量对象的参考坐标系的水平角度差,对第一姿态数据进行修正,将修正后的第一姿态数据确定为待测量对象的第一姿态数据,是通过修正单元实现的,具体包括:Therefore, the correction module 520 corrects the first posture data according to the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system of the object to be measured, and determines the corrected first posture data as the first posture of the object to be measured. The data is implemented by the correction unit, including:
上述修正单元,配置成根据传感器的坐标系相对参考坐标系的水平角度差,对三轴旋转角度进行修正,得到待测量对象的三轴旋转角度。The correction unit is configured to correct the three-axis rotation angle according to the horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system to obtain a three-axis rotation angle of the object to be measured.
上述修正单元对三轴旋转角度进行修正是通过计算子单元和确定子单元实现的,具体包括:The correction unit performs the correction of the three-axis rotation angle by calculating the sub-unit and the determining sub-unit, and specifically includes:
上述计算子单元,配置成计算三轴旋转角度中的水平旋转角度和传感器的坐标系相对参考坐标系的水平角度差的和值;上述确定子单元,配置成将上述和值、三轴旋转角度中的俯仰角度和滚转角度确定为待测量对象的三轴旋转角 度。The calculating subunit configured to calculate a horizontal rotation angle of the three-axis rotation angle and a sum of horizontal angle differences of the coordinate system of the sensor with respect to the reference coordinate system; the determining subunit configured to convert the sum value and the three-axis rotation angle The pitch angle and roll angle in the middle are determined as the three-axis rotation angle of the object to be measured degree.
本发明实施例提供的姿态数据获取装置,传感器可以设置在待测量对象上的任意位置,并且通过对传感器采集的被测量对象的姿态数据进行修正,使获取的被测量对象的姿态数据符合实际需求。The posture data acquiring device provided by the embodiment of the present invention can set the sensor at any position on the object to be measured, and correct the posture data of the measured object collected by the sensor, so that the acquired posture data of the measured object meets the actual demand. .
本发明实施例所提供的姿态数据获取装置可以为设备上的特定硬件或者安装于设备上的软件或固件等。本发明实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,前述描述的系统、装置和单元的具体工作过程,均可以参考上述方法实施例中的对应过程,在此不再赘述。The posture data acquiring device provided by the embodiment of the present invention may be specific hardware on the device or software or firmware installed on the device. The implementation principle and the technical effects of the device provided by the embodiments of the present invention are the same as those of the foregoing method embodiments. For a brief description, where the device embodiment is not mentioned, reference may be made to the corresponding content in the foregoing method embodiments. A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working processes of the foregoing system, the device and the unit can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本发明所提供的实施例中,应该理解到,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some communication interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明提供的实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技 术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on this understanding, the technique of the present invention The portion of the technical solution that contributes in nature or to the prior art, or portions of the technical solution, may be embodied in the form of a software product stored in a storage medium, including instructions for causing a computer The device (which may be a personal computer, server, or network device, etc.) performs all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释,此外,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures. Therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings. Moreover, the terms "first", "second", "third", and the like are used merely to distinguish a description, and are not to be construed as indicating or implying a relative importance.
最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。 Finally, it should be noted that the above-mentioned embodiments are merely specific embodiments of the present invention, and are used to explain the technical solutions of the present invention, and are not limited thereto, and the scope of protection of the present invention is not limited thereto, although reference is made to the foregoing. The present invention has been described in detail, and those skilled in the art should understand that any one skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present invention. The changes may be easily conceived, or equivalents may be substituted for some of the technical features. The modifications, variations, and substitutions of the present invention do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims (10)

  1. 一种姿态数据获取方法,其特征在于,所述方法包括步骤:A method for acquiring attitude data, characterized in that the method comprises the steps of:
    获取携带在待测量对象上的传感器采集的所述待测量对象在旋转时的第一姿态数据;Obtaining first posture data of the object to be measured collected by the sensor carried on the object to be measured while rotating;
    根据所述传感器的坐标系相对所述待测量对象对应的参考坐标系的水平角度差,对所述第一姿态数据进行修正,将修正后的第一姿态数据确定为所述待测量对象的第一姿态数据。Determining the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured, and determining the corrected first posture data as the object to be measured A gesture data.
  2. 根据权利要求1所述的方法,其特征在于,根据以下步骤确定所述传感器的坐标系相对所述参考坐标系的水平角度差:The method of claim 1 wherein the horizontal angular difference of the coordinate system of the sensor relative to the reference coordinate system is determined according to the following steps:
    在三维空间中创建待测量对象模型和传感器模型;Creating an object model to be measured and a sensor model in a three-dimensional space;
    获取所述传感器采集的所述待测量对象做下俯转动的第二姿态数据;Obtaining second posture data of the object to be measured collected by the sensor to perform a downward rotation;
    确定所述传感器模型基于所述第二姿态数据转动时所产生的运动轨迹信息;Determining, by the sensor model, motion trajectory information generated when the second attitude data is rotated;
    根据所述传感器模型转动时所产生的运动轨迹信息和所述参考坐标系,确定所述水平角度差。The horizontal angle difference is determined according to motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
  3. 根据权利要求2所述的方法,其特征在于,所述确定所述传感器模型基于所述第二姿态数据转动时所产生的运动轨迹信息的步骤包括:The method according to claim 2, wherein the step of determining the motion trajectory information generated when the sensor model is rotated based on the second attitude data comprises:
    确定以所述传感器模型的旋转中心点为起点的摆线的末端随所述传感器模型运动时的运动轨迹信息;Determining motion trajectory information of an end of a cycloid starting from a rotation center point of the sensor model as a function of the sensor model;
    将所述摆线的末端的运动轨迹信息确定为所述传感器模型转动时所产生的运动轨迹信息。The motion trajectory information of the end of the cycloid is determined as the motion trajectory information generated when the sensor model is rotated.
  4. 根据权利要求2所述的方法,其特征在于,所述根据所述传感器模型转动时所产生的运动轨迹信息和所述参考坐标系确定所述水平角度差的步骤包括: The method according to claim 2, wherein the step of determining the horizontal angular difference according to the motion trajectory information generated when the sensor model is rotated and the reference coordinate system comprises:
    根据所述传感器模型转动时所产生的运动轨迹信息,确定所述传感器模型所产生的运动轨迹的终点与所述运动轨迹的起点之间的连线信息;Determining connection information between an end point of the motion trajectory generated by the sensor model and a start point of the motion trajectory according to motion trajectory information generated when the sensor model is rotated;
    根据所述连线信息,确定所述运动轨迹的终点与起点之间的连线与所述参考坐标系的水平坐标轴之间的夹角;Determining, according to the connection information, an angle between a line connecting the end point of the motion track and the start point and a horizontal coordinate axis of the reference coordinate system;
    根据所述夹角,确定所述水平角度差。The horizontal angle difference is determined according to the included angle.
  5. 根据权利要求1所述的方法,其特征在于,所述第一姿态数据包括三轴旋转角度;The method of claim 1 wherein said first attitude data comprises a three-axis rotation angle;
    所述根据所述传感器的坐标系相对待测量对象对应的参考坐标系的水平角度差对所述第一姿态数据进行修正的步骤,包括:The step of correcting the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured includes:
    根据所述传感器的坐标系相对所述参考坐标系的水平角度差,对所述三轴旋转角度进行修正,得到所述待测量对象的三轴旋转角度。And correcting the three-axis rotation angle according to a horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system to obtain a three-axis rotation angle of the object to be measured.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述传感器的坐标系相对所述参考坐标系的水平角度差对所述三轴旋转角度进行修正的步骤,包括:The method according to claim 5, wherein the step of correcting the three-axis rotation angle according to a horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system comprises:
    计算所述三轴旋转角度中的水平旋转角度和所述传感器的坐标系相对所述参考坐标系的水平角度差的和值;Calculating a sum of a horizontal rotation angle in the three-axis rotation angle and a horizontal angle difference of a coordinate system of the sensor with respect to the reference coordinate system;
    将所述和值、所述三轴旋转角度中的俯仰角度和滚转角度确定为所述待测量对象的三轴旋转角度。The sum value, the pitch angle and the roll angle in the three-axis rotation angle are determined as the three-axis rotation angle of the object to be measured.
  7. 一种姿态数据获取装置,其特征在于,所述装置包括:An attitude data acquiring device, characterized in that the device comprises:
    第一获取模块,配置成获取携带在待测量对象上的传感器采集的所述待测量对象在旋转时的第一姿态数据;a first acquiring module, configured to acquire first posture data of the object to be measured collected by a sensor carried on the object to be measured while rotating;
    修正模块,配置成根据所述传感器的坐标系相对所述待测量对象对应的参考坐标系的水平角度差,对所述第一姿态数据进行修正,将修正后的第一姿态数据确定为所述待测量对象的第一姿态数据。 a correction module configured to modify the first posture data according to a horizontal angle difference of a coordinate system of the sensor with respect to a reference coordinate system corresponding to the object to be measured, and determine the corrected first posture data as the The first pose data of the object to be measured.
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    创建模块,配置成在三维空间中创建待测量对象模型和传感器模型;Creating a module configured to create an object model to be measured and a sensor model in a three-dimensional space;
    第二获取模块,配置成获取所述传感器采集的所述待测量对象做下俯转动的第二姿态数据;a second acquiring module, configured to acquire second posture data of the object to be measured collected by the sensor to perform a downward rotation;
    第一确定模块,配置成确定所述传感器模型基于所述第二姿态数据转动时所产生的运动轨迹信息;a first determining module, configured to determine motion trajectory information generated when the sensor model is rotated based on the second posture data;
    第二确定模块,配置成根据所述传感器模型转动时所产生的运动轨迹信息和所述参考坐标系,确定所述水平角度差。The second determining module is configured to determine the horizontal angle difference according to the motion trajectory information generated when the sensor model is rotated and the reference coordinate system.
  9. 根据权利要求7所述的装置,其特征在于,所述第一姿态数据包括三轴旋转角度;The apparatus according to claim 7, wherein said first attitude data comprises a three-axis rotation angle;
    所述修正模块包括:The correction module includes:
    修正单元,配置成根据所述传感器的坐标系相对所述参考坐标系的水平角度差,对所述三轴旋转角度进行修正,得到所述待测量对象的三轴旋转角度。And a correction unit configured to correct the three-axis rotation angle according to a horizontal angle difference of the coordinate system of the sensor with respect to the reference coordinate system to obtain a three-axis rotation angle of the object to be measured.
  10. 根据权利要求9所述的装置,其特征在于,所述修正单元包括:The apparatus according to claim 9, wherein said correction unit comprises:
    计算子单元,配置成计算所述三轴旋转角度中的水平旋转角度和所述传感器的坐标系相对所述参考坐标系的水平角度差的和值;a calculation subunit configured to calculate a sum of a horizontal rotation angle of the three-axis rotation angle and a horizontal angle difference of a coordinate system of the sensor with respect to the reference coordinate system;
    确定子单元,配置成将所述和值、所述三轴旋转角度中的俯仰角度和滚转角度确定为所述待测量对象的三轴旋转角度。 The determining subunit is configured to determine the sum value, the pitch angle and the roll angle in the three-axis rotation angle as the three-axis rotation angle of the object to be measured.
PCT/CN2017/083030 2017-03-13 2017-05-04 Method and device for obtaining attitude data WO2018166051A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710145454.1 2017-03-13
CN201710145454.1A CN106931960B (en) 2017-03-13 2017-03-13 Attitude data acquisition method and device

Publications (1)

Publication Number Publication Date
WO2018166051A1 true WO2018166051A1 (en) 2018-09-20

Family

ID=59432665

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/083030 WO2018166051A1 (en) 2017-03-13 2017-05-04 Method and device for obtaining attitude data

Country Status (2)

Country Link
CN (1) CN106931960B (en)
WO (1) WO2018166051A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402004B (en) * 2017-07-28 2021-03-09 歌尔光学科技有限公司 Attitude information acquisition method and device of sensor
CN108245893B (en) 2018-02-09 2021-06-29 腾讯科技(深圳)有限公司 Method, device and medium for determining posture of virtual object in three-dimensional virtual environment
CN110213718A (en) * 2019-05-24 2019-09-06 北京小米移动软件有限公司 The method and device of perception terminal behavior
CN111427277A (en) * 2020-03-16 2020-07-17 明珞汽车装备(上海)有限公司 Sensor digital-analog creating method, system, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104459728A (en) * 2014-12-17 2015-03-25 广州吉欧电子科技有限公司 Magnetic declination calibration method based on GNSS positioning
JP5870656B2 (en) * 2011-11-30 2016-03-01 富士通株式会社 Trajectory calculation device and trajectory calculation method
CN105806364A (en) * 2016-03-10 2016-07-27 太原理工大学 Calibration method of probe tube of inclinometer of mining rotary drill
CN105890624A (en) * 2016-03-25 2016-08-24 联想(北京)有限公司 Calibrating method and electronic device
CN106052681A (en) * 2016-05-05 2016-10-26 中国汽车技术研究中心 A Method of Tracking the H - point Time Domain Motion Trajectory of Dummy in Collision Test
CN106382946A (en) * 2016-09-14 2017-02-08 邹红斌 Parameter calibration method and parameter calibration device
CN106461414A (en) * 2015-02-07 2017-02-22 华为技术有限公司 Attitude relationship calculation method for intelligent device, and the intelligent device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103743396A (en) * 2014-01-24 2014-04-23 上海新世纪机器人有限公司 Attitude sensor mounting offset correction method
CN204178312U (en) * 2014-11-20 2015-02-25 姚尧 The acquisition system of human body attitude data
CN105783921B (en) * 2014-12-17 2019-02-19 高德软件有限公司 A kind of method and device correcting automobile attitude data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5870656B2 (en) * 2011-11-30 2016-03-01 富士通株式会社 Trajectory calculation device and trajectory calculation method
CN104459728A (en) * 2014-12-17 2015-03-25 广州吉欧电子科技有限公司 Magnetic declination calibration method based on GNSS positioning
CN106461414A (en) * 2015-02-07 2017-02-22 华为技术有限公司 Attitude relationship calculation method for intelligent device, and the intelligent device
CN105806364A (en) * 2016-03-10 2016-07-27 太原理工大学 Calibration method of probe tube of inclinometer of mining rotary drill
CN105890624A (en) * 2016-03-25 2016-08-24 联想(北京)有限公司 Calibrating method and electronic device
CN106052681A (en) * 2016-05-05 2016-10-26 中国汽车技术研究中心 A Method of Tracking the H - point Time Domain Motion Trajectory of Dummy in Collision Test
CN106382946A (en) * 2016-09-14 2017-02-08 邹红斌 Parameter calibration method and parameter calibration device

Also Published As

Publication number Publication date
CN106931960B (en) 2020-05-05
CN106931960A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
US11016116B2 (en) Correction of accumulated errors in inertial measurement units attached to a user
JP6514089B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING SYSTEM, AND INFORMATION PROCESSING METHOD
CN106056664B (en) A kind of real-time three-dimensional scene reconstruction system and method based on inertia and deep vision
WO2018166051A1 (en) Method and device for obtaining attitude data
US10269139B2 (en) Computer program, head-mounted display device, and calibration method
US10197587B2 (en) Device and method for using time rate of change of sensor data to determine device rotation
BR112016010442B1 (en) IMAGE GENERATION DEVICE AND METHOD, AND STORAGE UNIT
JP5927776B2 (en) Portable device
US11009964B2 (en) Length calibration for computer models of users to generate inputs for computer systems
JP2004233334A (en) Method for measuring position and orientation
JPWO2017064972A1 (en) Wearable device, posture measurement method and program thereof
JP5809416B2 (en) Mobile devices and autonomous navigation calculation
CN107063237A (en) A kind of method and apparatus for measuring gestures of object angle
US11531392B2 (en) Tracking upper arm movements using sensor modules attached to the hand and forearm
CN107344019B (en) Virtual reality system
CN107534202A (en) A kind of method and apparatus for measuring antenna attitude
CN109866217B (en) Robot mileage positioning method, device, terminal equipment and computer storage medium
JP2013058156A (en) Input device, input processing program, input processing method, and input processing system
CN106931965B (en) Method and device for determining terminal posture
US11119566B2 (en) System and method for a virtual reality motion controller
CN111275769A (en) Monocular vision parameter correction method and device
JP6014711B2 (en) Mobile devices and autonomous navigation calculation
JP2008040913A (en) Information processing method, and information processor
JP2015099153A (en) Portable device and autonomous navigation calculation method
TWM598411U (en) Augmented reality device

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: 17901118

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17901118

Country of ref document: EP

Kind code of ref document: A1