One or more embodiments setting forth the ideas described throughout this disclosure pertain to the field of motion capture sensors and displaying motion data in a virtual reality environment. More particularly, but not by way of limitation, one or more aspects of the invention enable a system that mirrors the motion of a real object with motion of a virtual object in a virtual environment, and that applies constraints defined in the virtual environment to the motion of the virtual object.
Motion capture sensors and systems for analyzing motion data are known in the art, but these systems typically provide delayed analysis or playback after events occur. For example, there are systems that analyze the swing of a golf club using motion sensors attached to the club; these systems wait until a swing signature is detected, and then analyze the sensor data to reconstruct and diagnose the swing. Existing motion analysis systems do not provide real-time mirroring of the motion of an object such as a golf club with a display of a virtual club in a virtual environment. Such a mirroring system may provide valuable feedback to a user, who can observe the motion of the object from various angles while it is occurring. Observations of the motion in real-time may also be valuable for coaching and teaching. Real-time mirroring of the motion of an object may also provide the ability to use the object to control a virtual reality game; for example, a user may swing a real golf club to play a virtual round of golf on a virtual golf course. While there are virtual reality systems that provide gaming experiences, these systems typically require specialized game controllers. There are no known systems that use real sporting equipment as game controllers for virtual games for the associated sports, by attaching motion sensors to these real objects.
Real-time, continuous mirroring of the motion of an object in a virtual environment presents additional challenges since sensor data inaccuracies can accumulate over time. These challenges are less acute for systems that perform after the fact analysis of events, but they are critical for long-term motion mirroring. There are no known systems that address these accumulating errors by using combinations of redundant sensor data and constraints on the motion of virtual objects in a virtual environment.
For at least the limitations described above there is a need for a motion mirroring system that incorporates virtual environment constraints.
Embodiments of the invention enable a motion mirroring system that generates and animates a virtual object in response to motion of a physical object equipped with motion sensors. The virtual object motion may take into account constraints defined for the virtual environment, such as for example regions the virtual object should remain in or remain near. The mirroring of physical object motion on a virtual environment display may be used for example for coaching or training, for playing virtual reality games, or for continuous feedback to a user.
One or more embodiments of the system may include a motion capture element (or several such elements) that may be coupled to a moveable, physical object. The motion capture element may include one or more sensors, a microprocessor to collect and transmit sensor data, and a communication interface for transmission of the data. The communication interface may be wireless, wired, or a combination thereof. Sensors may for example capture data related to any or all of the moveable object's position, orientation, linear velocity, linear acceleration, angular velocity, or angular acceleration. Sensors may capture additional or alternate data such as for example pressure, temperature, stress, strain, or shock.
The system may also include a computer that receives sensor data over another communication interface. The computer may be any device or combination of devices that can receive and process data, including for example, without limitation, a desktop computer, a laptop computer, a notebook computer, a tablet computer, a server, a mobile phone, a smart phone, a smart watch, smart glasses, a virtual reality headset, a microprocessor, or a network of any of these devices. In one or more embodiments the computer and the microprocessor of the motion capture element may coincide. The computer may access a memory (which may be local or remote, or a combination thereof) that contains a virtual environment state. The virtual environment state may define a virtual environment that includes a virtual object that represents the physical moveable object. The memory may also include one or more constraints on the position, orientation, or other characteristics of the virtual object in the virtual environment. For example, without limitation, constraints may specify regions of the virtual environment space that the virtual object must remain in or near, or regions that it may not be in.
The computer may receive sensor data from the motion capture element, and may then calculate from the data the position and orientation of the moveable object in the real environment. Because these calculations may result in errors, including potentially accumulating errors over time, the computer may apply one or more corrections to the position and orientation, for example using redundancies in the sensor data. The computer may then transform the position and orientation of the moveable object into a position and orientation of the virtual object in the virtual environment. Rules and algorithms for this transformation may depend on the nature and purpose of the virtual environment; for example, in a virtual game, the transformations may place the virtual object in an appropriate location based on the state of the game. The computer may check whether the transformed position and orientation of the virtual object satisfy the constraints associated with the virtual environment. If they do not, the computer may apply corrections or additional transformations to enforce the constraints. The computer may then generate one or more images of the virtual environment and the virtual object, and transmit these images to a display for viewing. The calculations, corrections, transformation, and image generation may occur in real time or almost real time, so that motions of the physical object result in immediate or almost immediate corresponding motions of the virtual object on the display. For example, delays between motion of the physical object and corresponding mirrored motion of the virtual object on a display may be on the order of less than a half a second, or in some cases on the order of tens of milliseconds or less.
A moveable object tracked by a motion capture element may for example be a piece of equipment, an article of clothing, or a body part of a person. In one or more embodiments a piece of equipment may be a piece of sporting equipment used in a sports activity, such as for example, without limitation, equipment used in golf, tennis, badminton, racquetball, table tennis, squash, baseball, softball, cricket, hockey, field hockey, croquet, football, rugby, Australian rules football, soccer, volleyball, water polo, polo, basketball, lacrosse, billiards, horseshoes, shuffleboard, handball, bocce, bowling, dodgeball, kick ball, track and field events, curling, martial arts, boxing, archery, pistol shooting, rifle shooting, ice skating, gymnastics, surfing, skateboarding, snowboarding, skiing, windsurfing, roller blading, bicycling, or racing. The virtual environment in one or more embodiments may be a virtual game for an associated sports activity, with the virtual object representing a piece of equipment for that virtual game. For example, in a golf application, the moveable object may be a golf club, and the virtual environment may represent a virtual golf course in which the user plays a virtual round of golf; as the user moves the physical golf club, corresponding mirrored motions may be displayed by the system for the virtual golf club in the virtual golf course.
In one or more embodiments, sensors in a motion capture element may include one or more of accelerometers, rate gyroscopes, or magnetometers. These sensors may have any number of axes; for example, without limitation, 3-axis sensors may be used for applications that track motion in all directions. These sensors are illustrative; one or more embodiments may use any type or types of sensors to track any aspect of an object's position, orientation, motion, or other characteristics.
In one or more embodiments, the sensor data may include redundant information that may be used to improve or correct calculations of the moveable object's position or orientation. For example, one or more embodiments may obtain redundant orientation information using three techniques: integration of angular velocity data from a gyroscope, measurement of the object's orientation relative to the Earth's magnetic field from a magnetometer, and measurement of the object's orientation relative to the Earth's gravitational field from an accelerometer (during periods of time when the object is substantially stationary, for example). One or more embodiments may for example use the first calculation (integration of angular velocity) to obtain an initial estimate of an object's orientation, and may then apply corrections based on differences between predicted gravity and magnetic field vectors and values measured from an accelerometer and a magnetometer, respectively.
For example, without limitation, one or more embodiments may apply corrections by calculating a magnetic rotational error between the predicted magnetic field vector based on angular velocity integration and the measured magnetic field vector, and by calculating a gravitational rotational error between the predicted gravitational field vector based on angular velocity integration and the measured gravitational field vector. One or more embodiments may then apply a fraction of either or both of the magnetic rotational error and the gravitational rotational error to the calculated orientation, to form a corrected orientation.
In one or more embodiments an image of the virtual object in the virtual environment may be formed by a virtual camera that can be positioned and oriented in the virtual environment. Users or the system may be able to modify or configure the position and orientation of this virtual camera, for example to show the motion of the object from different perspectives.
In one or more embodiments, constraints on the position, orientation, motion, or other characteristics of the virtual object in the virtual environment may for example describe or define regions of the virtual environment that the virtual object must remain in or remain near. Constraints may describe regions of the virtual environment that the virtual object must not be in or must not be near. Constraints may describe or define virtual barriers that the virtual object may not pass through. For example, without limitation, the virtual environment may define a ground surface that a virtual object must remain above and must not pass through. Constraints may for example describe or define maximum or minimum values for any function of an object's motion, position, or orientation; for example, constraints may limit the virtual object's maximum or minimum speed, acceleration, angular velocity, or angular acceleration. Constraints may describe or define limits on allowable orientations of a virtual object, for example by requiring that the virtual object must be facing in a particular direction or must not face in certain directions.
In one or more embodiments the motion mirroring system may be used for example to play a virtual game, where a user moves a physical object to control movement of a corresponding virtual piece of equipment in the virtual game. For example, the system may mirror motion of a physical golf club to move a virtual golf club that is used to play a game that simulates a round of golf on a virtual golf course. One or more embodiments that execute games may include one or more virtual game pieces in the virtual environment, such as for example a golf ball in a virtual golf game. In some games a virtual object (such as for example a virtual golf club) may be used to strike a virtual game piece (such as for example a virtual golf ball). The system may calculate the initial velocity of a virtual game piece (as well as other characteristics such as spin) by simulating the impact of the virtual object with the virtual game piece. For example, the initial velocity of a virtual golf ball may be calculated based on the velocity of a virtual golf club when it impacts the virtual golf ball. The velocity of the virtual object at impact may in turn be calculated based on the motion of the physical object corresponding to the virtual object.
In one or more embodiments the system may relocate the virtual object to a new location in response to events that occur in a virtual game or a virtual simulation. This relocation may occur automatically or in response to user input. For example, in an embodiment that mirrors the motion of a golf club to play a virtual golf game, the system may move the virtual golf club to the new location of the virtual golf ball after a shot, or to the start of a new hole once a previous hole is complete. In one or more embodiments the system may move the virtual object gradually from one position to a new position to avoid discontinuous jumps in the displayed position of the virtual object. In one or more embodiments the system may update the orientation of a virtual object to a new orientation in response to events that occur in a virtual game or a virtual simulation. For example, in a virtual golf game the system may automatically update the aim direction of a club to aim at the hole when the position of the virtual club changes to a new location where the ball lands or at the start of a new hole. As with changes in position, the system may change the orientation of the virtual object gradually to avoid discontinuous jumps in the displayed orientation of the virtual object.
The above and other aspects, features and advantages of the ideas conveyed through this disclosure will be more apparent from the following more particular description thereof, presented in conjunction with the following drawings wherein:
A motion mirroring system that incorporates virtual environment constraints will now be described. In the following exemplary description numerous specific details are set forth in order to provide a more thorough understanding of the ideas described throughout this specification. It will be apparent, however, to an artisan of ordinary skill that embodiments of ideas described herein may be practiced without incorporating all aspects of the specific details described herein. In other instances, specific aspects well known to those of ordinary skill in the art have not been described in detail so as not to obscure the disclosure. Readers should note that although examples of the innovative concepts are set forth throughout this disclosure, the claims, and the full scope of any equivalents, are what define the invention.
Motion capture element 110 measures one or more aspects of the position or orientation (or both) of object 102, or of changes thereto such as linear velocity, linear acceleration, angular velocity, or angular acceleration. Motion capture elements may use any sensing or measuring technologies to measure any physical quantity or quantities; these technologies may include but are not limited to inertial sensing technologies such as accelerometers and gyroscopes. Motion capture elements may include additional devices that may be physically separate from the motion capture element itself, such as transmitters or receivers (such as for example a GPS satellite) or cameras that observe the motion capture element. Any device or combination of devices that provides data that can be used to determine the motion of an object such as golf club 102 is in keeping with the spirit of the invention.
Motion capture element 110 collects motion data reflecting the motion 103 of the golf club, and transmits this data using communication interface 111 to a receiving computer 120 for analysis and display. In this illustrative example, communication interface 111 is a wireless transmitter. For example, transmitter 111 may send data over wireless channel 112 which may be for example, without limitation, a Bluetooth or Bluetooth Low Energy channel, an 802.11 channel, a cellular network, or any other wireless channel or network. One or more embodiments may use wired connections between motion capture element 110 and computer 120 instead of or in addition to wireless connections such as 112. One or more embodiments may use any desired media, networks, and protocols to transmit data.
Computer 120 receives sensor data from motion capture element 110 using a corresponding communication interface integrated into or accessible to the computer. Computer 120 may be any device or combination of devices that can receive and process the sensor data. For example, without limitation, computer 120 may include a desktop computer, a laptop computer, a notebook computer, a tablet computer, a server, a mobile phone, a smart phone, a smart watch, smart glasses, a virtual reality headset, a microprocessor, or a network of any of these devices. In one or more embodiments the computer may be part of or collocated with the motion capture element 110. The computer processes the sensor data received over channel 112 to analyze the motion of the object 102. The computer 120 accesses one or more memory or storage devices that contain a description 122 of a virtual environment. This memory or storage may be local, remote, or a combination thereof. The virtual environment 122 may for example include a description of terrain or surroundings such as a golf course, including a virtual golf hole 123. The virtual environment may also include a description of one or more virtual objects in the environment, such as virtual golf club 124 and virtual golf ball 125. In particular, one of these virtual objects may correspond to the real object 102 that is being moved. In the embodiment shown in
In mirroring the motion such as 103 of a real object 102 in a virtual environment, one or more embodiments may apply one or more constraints on the motion. For example, in the embodiment of
Motion capture element 110 may have an optional storage device or devices 206. For example, in one or more embodiments sensor data may be buffered or recorded before transmission to a computer. Use of storage for buffering or recording is optional; one or more embodiments may transmit sensor data directly as soon as it is received, without buffering or recording the data. In one or more embodiments the microprocessor 205 may process data from sensors such as 201, 202, 203, and 204 prior to transmitting (or storing) the data. For example, without limitation, data may be compressed, filtered, integrated, rescaled, resampled, or transformed in any desired manner by the microprocessor 205. Sensor data 210 (or a transformed version of this data) is transmitted via communications interface 111 to computer 120.
Computer 120 may include a processor (or multiple processors) 215. The processor may access sensor data 210 received on communications interface 211. It may also access memory device or devices 216, which may contain for example the description and state of a virtual environment 122, including a virtual object 124 that may represent a real object being moved. The memory device may also contain constraints 126 on the position, orientation, or motion of the virtual object, or more generally any constraints on the state of the virtual environment. The memory device or devices may be local to computer 120, remote to the computer and accessed for example via a network connection, or any combination thereof. The processor 215 may update the state of the virtual environment 122 using sensor data 210, apply constraints 126, and generate images that are transmitted to display 121. Display 121 may be local to computer 120 or remote. One or more embodiments may include multiple displays, potentially showing for example different views of virtual environment 122. In one or more embodiments display 121 may be a stereographic display or any type of 3D display technology. In one or more embodiments the display or displays 121 may be integrated into a headset or into glasses or goggles.
In one or more embodiments, an initial calculation 301 of object position and orientation 312 may be subject to various errors. For example, as is known in the art, in inertial navigation using accelerometer and gyro data, calculated position and orientation may drift over time from their true values. One or more embodiments may therefore apply a step 302 to correct position and orientation using one or more redundancies in the sensor data 210. The specific corrections depend on the type of sensor data 210 and on the specific redundancies in the data. For example, continuing the inertial navigation example, an accelerometer and a gyroscope contain redundant information about the orientation of an object, since the gyroscope angular velocity can be integrated to form orientation, and the accelerometer can also provide a tilt reading when the object is stationary. In the embodiment illustrated in
After corrections 302, step 303 may transform the position and orientation of the real object into the virtual environment. This transformation may depend for example on the state of the virtual environment. For example, in the golf example from
After transformation 303 to the virtual environment, one or more embodiments may perform step 304 to apply one or more constraints to the position, orientation, motion, or other characteristics of the virtual object. For example, constraint 332 may require that the virtual club 124 be located at or near the tee of the first hole (or more generally located at or near the ball's current position). Because of accumulated errors such as inertial drift (which may not be fully corrected by step 302), the position of the virtual club may need to be adjusted with a shift 334 to place it near the ball position 333, for example. Other constraints such as those illustrated in
where Q is the orientation matrix and ωx is the cross product matrix formed from the angular velocity ω.) Given the calculated orientation 411, predicted values can be estimated for the magnetic field vector 412 and the gravity vector 413. This prediction presumes that the orientation of the magnetic vector 412 in the fixed reference frame 311 is the same as its initial orientation 402, and that therefore the change in the magnetic vector measured in the sensor reference frame 411 is due only to the change in orientation. Similarly, the prediction presumes that that the orientation of the gravity vector 413 in the fixed reference frame 311 is the same as its initial orientation 403, and that therefore the change in the gravity vector measured in the sensor reference frame 411 is due only to the change in orientation.
Calculations 420 then use redundant sensor data to compare the predicted magnetic vector 412 and predicted gravity vector 413 to measured quantities. The measured magnetic vector 422 may for example be obtained from magnetometers 203. The measured gravity vector 423 may for example be obtained from accelerometers 201, provided that the system is stationary or substantially stationary (or not accelerating) when the measurement is made. In one or more embodiments the system may for example determine whether the system is sufficiently stationary to use the gravity vector measurement by testing the magnitude of the angular velocity; a low angular velocity may suggest that the system may be stationary. In one or more embodiments the system may for example also or alternatively determine whether the system is sufficiently stationary by testing the magnitude of the acceleration vector; an acceleration magnitude approximately equal to g (gravity acceleration) may suggest that the system may be stationary. By comparing the predicted and measured vectors, rotations 432 and 433 can be calculated that rotate the measured values into the predicted values. (For example, an axis for each of these rotations can be determined by taking the cross product of the predicted and measured vectors.) These rotations 432 and 433 represent the errors between the calculated orientation and the actual orientation.
In one or more embodiments one or both of the error rotations 432 and 433 may be applied to the current orientation with proportional scaling factors to shift the calculated orientation gradually towards the measured orientation. Applying only a portion of the error rotations to the orientation at each update cycle (or at selected update cycles) may for example provide a more robust solution when the measured gravity and magnetic vectors are also subject to possible errors. Fractions 442 and 443, respectively, are applied to rotations 432 and 433, yielding proportional error rotations 452 and 453 respectively. In this illustrative example the proportionality factors 442 and 443 are applied to the rotation angles (θm and θg), and the rotation axes (um and ug) of rotations 432 and 433 are preserved. The rotations 452 and 453 are then applied in step 460 to the orientation 411, yielding a corrected orientation 461. In one or more embodiments one or both of the corrections 452 and 453 may be applied at every sensor sample. In one or more embodiments one or both of the corrections may be applied periodically but not at every sensor sample, for example at every tenth sample. In one or more embodiments one or both of the corrections may be applied when the angular magnitude of the error rotations 432 or 433 exceed a threshold.
After possible correction using redundant sensor data, the position and orientation of a real object may be transformed to the virtual environment to form an image of a virtual object. In one or more embodiments the user or the system may be able to configure or modify the position and orientation in the virtual environment of a virtual camera that generates this image.
As discussed with respect to
Virtual environment constraints may also ensure that the position and orientation of a virtual object do not violate physical laws or the required configurations imposed by the virtual environment.
In one or more embodiments the position or orientation of a virtual object may be determined fully or partially by the state of the virtual environment at a point in time. For example, in embodiments that mirror motion to play a virtual game, the state of the game may affect the placement of the virtual object in the virtual environment.
After the virtual environment updates the position of the virtual ball 125a to its new position 812, the system may automatically update the position and orientation of the virtual golf club to reflect the new ball position. For example, the system executes update process 820 to move the virtual club position from 801 to 812, where the virtual ball landed after the shot. In addition, the system may automatically update the virtual club orientation to aim in the direction facing the hole from the new position, for example updating the aim vector of the club from 802 to 822. These updates to the position and orientation of the virtual club may occur automatically, even if the user 101 does not execute a specific motion of the real club 102 to make the changes. Subsequent motion of the club 102 may then be interpreted relative to the updated position 812 and updated orientation 822.
In one or more embodiments the system may perform a gradual, continuous update of the position and orientation of a virtual object, so that the viewer of the display does not observe a discontinuous jump. For example, in
While the ideas herein disclosed has been described by means of specific embodiments and applications thereof, numerous modifications and variations could be made thereto by those skilled in the art without departing from the scope of the invention set forth in the claims.
This application is a continuation of U.S. Utility patent application Ser. No. 17/037,496, filed on 29 Sep. 2020, which is a continuation of U.S. Utility patent application Ser. No. 15/602,853, filed on 23 May 2017, issued as U.S. Pat. No. 10,786,728, the specifications of which are hereby incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 17037496 | Sep 2020 | US |
Child | 17878835 | US | |
Parent | 15602853 | May 2017 | US |
Child | 17037496 | US |