CN106880945A - Interior based on virtual reality glasses is ridden body-building system - Google Patents
Interior based on virtual reality glasses is ridden body-building system Download PDFInfo
- Publication number
- CN106880945A CN106880945A CN201710060201.4A CN201710060201A CN106880945A CN 106880945 A CN106880945 A CN 106880945A CN 201710060201 A CN201710060201 A CN 201710060201A CN 106880945 A CN106880945 A CN 106880945A
- Authority
- CN
- China
- Prior art keywords
- user
- virtual reality
- hall sensor
- reality glasses
- scene
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 239000011521 glass Substances 0.000 title claims abstract description 26
- 230000033001 locomotion Effects 0.000 claims abstract description 56
- 230000005540 biological transmission Effects 0.000 claims abstract description 20
- 230000001351 cycling effect Effects 0.000 claims abstract description 17
- 238000010276 construction Methods 0.000 claims abstract description 7
- 238000000034 method Methods 0.000 claims abstract description 5
- 230000001360 synchronised effect Effects 0.000 claims abstract description 5
- 229910000831 Steel Inorganic materials 0.000 claims description 9
- 239000010959 steel Substances 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 6
- 210000003128 head Anatomy 0.000 claims description 4
- 230000008676 import Effects 0.000 claims description 3
- 238000012938 design process Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 claims description 2
- 230000003238 somatosensory effect Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000006837 decompression Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000005094 computer simulation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
- A63F13/816—Athletics, e.g. track-and-field sports
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/21—Input arrangements for video game devices characterised by their sensors, purposes or types
- A63F13/211—Input arrangements for video game devices characterised by their sensors, purposes or types using inertial sensors, e.g. accelerometers or gyroscopes
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/21—Input arrangements for video game devices characterised by their sensors, purposes or types
- A63F13/212—Input arrangements for video game devices characterised by their sensors, purposes or types using sensors worn by the player, e.g. for measuring heart beat or leg activity
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/23—Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
- A63F13/235—Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console using a wireless connection, e.g. infrared or piconet
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/25—Output arrangements for video game devices
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/66—Methods for processing data by generating or executing the game program for rendering three dimensional images
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biophysics (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Heart & Thoracic Surgery (AREA)
- Computer Networks & Wireless Communication (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明涉及一种基于虚拟现实眼镜的室内骑行健身系统,包括运动数据采集单元、软件处理单元、无线传输单元和立体显示单元,运动数据采集单元包括霍尔传感器、Arduino控制器和无线发送模块,霍尔传感器用于采集人体运动数据,Arduino控制器不断从霍尔传感器的输出端获取人体运动数据,无线发送模块用于将数据发送给无线传输单元;软件处理单元包括Unity模块,该模块用于虚拟现实场景的搭建,同时根据采集单元的数据进行虚拟场景的逻辑设计;立体显示单元包括虚拟现实眼镜,用于立体显示同步的虚拟场景,且通过自带的陀螺仪检测用户头部的转动。本发明与传统室内健身方式相比,能促进用户锻炼,缓解用户心理压力,增加健身乐趣。
The invention relates to an indoor cycling fitness system based on virtual reality glasses, comprising a motion data acquisition unit, a software processing unit, a wireless transmission unit and a three-dimensional display unit, and the motion data acquisition unit includes a Hall sensor, an Arduino controller and a wireless transmission module , the Hall sensor is used to collect human body movement data, the Arduino controller continuously obtains human body movement data from the output end of the Hall sensor, and the wireless sending module is used to send the data to the wireless transmission unit; the software processing unit includes a Unity module, which uses In the construction of virtual reality scenes, the logical design of virtual scenes is carried out according to the data of the acquisition unit; the stereoscopic display unit includes virtual reality glasses, which are used to stereoscopically display synchronous virtual scenes, and detect the rotation of the user's head through the built-in gyroscope . Compared with the traditional indoor body-building method, the present invention can promote user's exercise, alleviate user's psychological pressure, and increase body-building fun.
Description
技术领域technical field
本发明涉及虚拟现实技术领域,具体涉及一种基于虚拟现实眼镜的室内骑行健身系统。The invention relates to the technical field of virtual reality, in particular to an indoor cycling fitness system based on virtual reality glasses.
背景技术Background technique
随着生活节奏的逐渐加快,人们的在业余生活方面也有了更多的需求。同时,随着相关技术的提高和软硬件设备成本的降低,各式各样的娱乐设备越来越多地进入人们的视野。体感游戏作为一种新颖的娱乐方式,越来越多的被各个年龄段的人所接纳。With the gradual acceleration of the pace of life, people have more demands in their spare time. At the same time, with the improvement of related technologies and the reduction of the cost of hardware and software equipment, more and more various entertainment devices have entered people's field of vision. As a novel form of entertainment, somatosensory games are increasingly accepted by people of all ages.
虚拟现实技术(Virtual Reality)作为近年来出现的高新技术之一,该技术主要通过电脑模拟技术,产生一个三维空间的虚拟世界,提供使用者关于视觉、听觉、触觉等感官的模拟,带给使用者身临其境的体验。Virtual reality technology (Virtual Reality) is one of the high-tech emerging in recent years. This technology mainly generates a three-dimensional virtual world through computer simulation technology, providing users with simulations of vision, hearing, touch and other senses, bringing users immersive experience.
体感游戏作为是电子游戏的类型之一,与传统的电子游戏有较大区别。体感游戏一般并不使用鼠标,键盘等传统的输入外设,取代的是利用功能繁多的输入设备来捕获用户的肢体动作。通过将用户的肢体动作作为游戏的输入信号,从而来达到利用肢体控制游戏的目的。相对普通游戏而言,体感游戏能带给用户更好的代入感。此外,输入方式的改变也使得游戏本身更增添了独特的乐趣。As one of the types of electronic games, somatosensory games are quite different from traditional electronic games. Somatosensory games generally do not use traditional input peripherals such as mice and keyboards, but instead use input devices with various functions to capture the user's body movements. By using the user's body movements as the input signal of the game, the purpose of using the body to control the game is achieved. Compared with ordinary games, somatosensory games can bring users a better sense of substitution. In addition, the change of the input method also makes the game itself more unique fun.
相比普通的电子游戏而言,体感游戏在一般要求使用者使用全身或身体的一部分来操纵游戏,这一特点使得体感游戏与个人健身塑形有密不可分的联系。作为一个辅助用户运动,促进用户锻炼的新型方式,体感游戏将运动健身融合在有趣的游戏内容中。在帮助用户健身的同时,也有助于用户缓解心里压力。因此设计一种娱乐与健身紧密联系的健身系统,对于绿色生活,健康生活,促进锻炼,减压方面具有重大意义。Compared with ordinary electronic games, somatosensory games generally require users to use the whole body or a part of the body to manipulate the game. This feature makes somatosensory games inseparable from personal fitness shaping. As a new way to assist users to exercise and promote users to exercise, somatosensory games integrate exercise and fitness into interesting game content. While helping users to exercise, it also helps users relieve their psychological pressure. Therefore, designing a fitness system that is closely related to entertainment and fitness is of great significance for green life, healthy life, promotion of exercise and decompression.
发明内容Contents of the invention
本发明的目的是提供一种基于虚拟现实眼镜的室内骑行健身系统,促进用户锻炼的新型方式,将运动健身融合在有趣的游戏内容中。The purpose of the present invention is to provide an indoor cycling fitness system based on virtual reality glasses, a new way to promote user exercise, and integrate exercise and fitness into interesting game content.
实现本发明目的的技术方案为:一种基于虚拟现实眼镜的室内骑行健身系统,包括运动数据采集单元、软件处理单元、无线传输单元和立体显示单元,其中The technical solution to realize the object of the present invention is: an indoor cycling fitness system based on virtual reality glasses, including a motion data acquisition unit, a software processing unit, a wireless transmission unit and a stereoscopic display unit, wherein
所述运动数据采集单元包括霍尔传感器、Arduino控制器和无线发送模块,所述霍尔传感器用于采集人体运动数据,所述Arduino控制器不断从霍尔传感器的输出端获取人体运动数据,所述无线发送模块用于将数据发送给无线传输单元;The motion data acquisition unit includes a Hall sensor, an Arduino controller and a wireless transmission module, the Hall sensor is used to collect human body motion data, and the Arduino controller constantly obtains human body motion data from the output end of the Hall sensor, so The wireless sending module is used to send data to the wireless transmission unit;
所述无线传输单元用于将接收到的数据传输给软件处理单元;The wireless transmission unit is used to transmit the received data to the software processing unit;
所述软件处理单元包括Unity模块,该模块用于虚拟现实场景的搭建,同时根据采集单元的数据进行虚拟场景的逻辑设计;Described software processing unit comprises Unity module, and this module is used for the construction of virtual reality scene, carries out the logical design of virtual scene according to the data of acquisition unit simultaneously;
所述立体显示单元包括虚拟现实眼镜,用于立体显示同步的虚拟场景,且通过自带的陀螺仪检测用户头部的转动。The stereoscopic display unit includes virtual reality glasses for stereoscopically displaying a synchronized virtual scene, and detects the rotation of the user's head through a built-in gyroscope.
与现有技术相比,本发明的显著优点为:Compared with prior art, remarkable advantage of the present invention is:
(1)本发明的室内骑行健身系统,通过Arduino控制器与霍尔传感结合采集有关运动的数据,Unity软件平台搭建虚拟三维场景,再结合采集的运动数据,控制虚拟现实场景的变化,最终通过虚拟现实眼镜Oculus Rift来同步显示;(2)本发明提出了一种辅助用户运动,促进用户锻炼的新型方式,将运动健身融合在有趣的游戏内容中,改变了传统的室内健身感受,对于促进锻炼、绿色生活以及减压方面具有重要意义;(3)本发明可打包集成于室内骑行健身器材上,具有很高的经济效益前景。(1) Indoor riding fitness system of the present invention, through Arduino controller and Hall sensor, combine and gather the relevant motion data, Unity software platform builds up virtual three-dimensional scene, then combines the motion data that collects, controls the change of virtual reality scene, Finally, it will be displayed synchronously through the virtual reality glasses Oculus Rift; (2) The present invention proposes a new way to assist users in exercising and promote their exercise, and integrates exercise and fitness into interesting game content, changing the traditional indoor fitness experience. It is of great significance for promoting exercise, green life and decompression; (3) the present invention can be packaged and integrated on indoor cycling fitness equipment, and has a very high prospect of economic benefits.
附图说明Description of drawings
图1为本发明基于虚拟现实眼镜的室内骑行健身系统的原理框图。Fig. 1 is a functional block diagram of the indoor cycling fitness system based on virtual reality glasses of the present invention.
图2为运动数据采集单元的结构示意图。FIG. 2 is a schematic structural diagram of a motion data acquisition unit.
图3为Unity虚拟场景的逻辑架构设计原理框图。Figure 3 is a schematic block diagram of the logical architecture design of the Unity virtual scene.
具体实施方式detailed description
结合图1,一种基于虚拟现实眼镜的室内骑行健身系统,包括运动数据采集单元、软件处理单元、无线传输单元和立体显示单元,其中In conjunction with Figure 1, an indoor cycling fitness system based on virtual reality glasses, including a motion data acquisition unit, a software processing unit, a wireless transmission unit and a stereoscopic display unit, wherein
所述运动数据采集单元包括霍尔传感器、Arduino控制器和无线发送模块,所述霍尔传感器用于采集人体运动数据,所述Arduino控制器不断从霍尔传感器的输出端获取人体运动数据,所述无线发送模块用于将数据发送给无线传输单元;The motion data acquisition unit includes a Hall sensor, an Arduino controller and a wireless transmission module, the Hall sensor is used to collect human body motion data, and the Arduino controller constantly obtains human body motion data from the output end of the Hall sensor, so The wireless sending module is used to send data to the wireless transmission unit;
所述无线传输单元用于将接收到的数据传输给软件处理单元;The wireless transmission unit is used to transmit the received data to the software processing unit;
所述软件处理单元包括Unity模块,该模块用于虚拟现实场景的搭建,同时根据采集单元的数据进行虚拟场景的逻辑设计;Described software processing unit comprises Unity module, and this module is used for the construction of virtual reality scene, carries out the logical design of virtual scene according to the data of acquisition unit simultaneously;
所述立体显示单元包括虚拟现实眼镜,用于立体显示同步的虚拟场景,且通过自带的陀螺仪检测用户头部的转动。The stereoscopic display unit includes virtual reality glasses for stereoscopically displaying a synchronized virtual scene, and detects the rotation of the user's head through a built-in gyroscope.
进一步的,所述霍尔传感器与磁钢配套使用,用于检测用户运动速度;霍尔传感器安装在用户鞋子的后跟处,磁钢放置在霍尔传感器的正下方所在的有效检测位置;Further, the Hall sensor is used in conjunction with the magnetic steel to detect the user's movement speed; the Hall sensor is installed at the heel of the user's shoes, and the magnetic steel is placed at the effective detection position directly below the Hall sensor;
当霍尔传感器与磁钢相对时,产生脉冲输出给Arduino控制器,通过脉冲数测出用户的运动速度。When the Hall sensor is opposite to the magnetic steel, it will generate a pulse output to the Arduino controller, and measure the user's movement speed through the number of pulses.
进一步的,所述人体运动数据是指用户的运动速度,自行车转速根据脉冲计数进行测量,霍尔传感器输出的脉冲信号频率与自行车转速成正比,脉冲信号与自行车转速有以下关系:Further, the human body movement data refers to the user's movement speed, the bicycle speed is measured according to the pulse count, the pulse signal frequency output by the Hall sensor is proportional to the bicycle speed, and the pulse signal has the following relationship with the bicycle speed:
式中,n为自行车转速,P为自行车车轮转动一圈的脉冲数,T为输出方波信号的周期;In the formula, n is the speed of the bicycle, P is the number of pulses of the bicycle wheel, and T is the period of the output square wave signal;
根据式(1)计算出自行车的车速,测取左右脚运动的速度,然后取平均值,再把此数据通过无线模块传送给软件处理单元。Calculate the speed of the bicycle according to formula (1), measure the speed of the left and right feet, and then take the average value, and then send this data to the software processing unit through the wireless module.
进一步的,所述软件处理单元利用Unity的三维引擎和物理引擎进行道路的碰撞检测,与用户的输入共同控制游戏角色运用,且用第一人称人物进行控制。Further, the software processing unit uses Unity's three-dimensional engine and physics engine to detect road collisions, controls the use of game characters together with user input, and uses first-person characters for control.
进一步的,所述虚拟现实场景的搭建过程具体为:拟定三维场景的大概草图,包括整体环境、天气和视野;利用插件TerrainComposer创建地形,并完善场景;将文件拖入Unity3d对应项目的子目录中,完成模型的导入。Further, the construction process of the virtual reality scene is specifically: draw up a general sketch of the three-dimensional scene, including the overall environment, weather and field of view; use the plug-in TerrainComposer to create terrain, and improve the scene; drag the file into the subdirectory of the corresponding project of Unity3d , to complete the import of the model.
进一步的,所述Unity虚拟场景的逻辑架构设计过程为:Further, the logical architecture design process of the Unity virtual scene is:
用户需要先选择一个终点,终点代表目标位置;The user needs to select an end point first, and the end point represents the target position;
用户从特定的目标起点出发,在到达目标位置之前,平台持续检测用户的动作,如果检测到用户的移动,那么在虚拟场景中,游戏角色也会按照用户的移动方向移动,否则,游戏角色保持不动;The user starts from a specific target starting point. Before reaching the target position, the platform continuously detects the user's movement. If the user's movement is detected, then in the virtual scene, the game character will also move in the direction of the user's movement. Otherwise, the game character will remain Do not move;
当场景中游戏角色到达终点时,游戏结束,并给出运动时间和用户运动速度的统计量。When the game character in the scene reaches the end point, the game ends, and the statistics of the movement time and the user's movement speed are given.
进一步的,所述立体显示单元使用视频线复制显示电脑的输出,且能够左右眼分屏查看。Further, the stereoscopic display unit uses a video cable to duplicate and display the output of the computer, and can be viewed in split screens by left and right eyes.
进一步的,所述虚拟现实眼镜采用Oculus Rift。Further, the virtual reality glasses adopt Oculus Rift.
下面结合附图和实施例对本发明作进一步详细的说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.
实施例Example
如图1所示,本发明涉及的一种基于虚拟现实眼镜的室内骑行健身系统,包括运动数据采集单元、无线传输单元、软件处理单元和立体显示单元,其中As shown in Figure 1, the present invention relates to a kind of indoor cycling fitness system based on virtual reality glasses, including motion data acquisition unit, wireless transmission unit, software processing unit and stereoscopic display unit, wherein
所述运动数据采集单元包括霍尔传感器、Arduino控制器以及无线模块,所述Arduino控制器不断从霍尔传感器的输出端获取人体运动数据,然后再将数据经过处理后通过无线发送模块发送给无线传输单元;The motion data acquisition unit includes a Hall sensor, an Arduino controller and a wireless module, and the Arduino controller continuously obtains human body motion data from the output end of the Hall sensor, and then sends the data to the wireless device through a wireless transmission module after processing. transmission unit;
所述无线传输单元用于将接收到的数据传输给软件处理单元;The wireless transmission unit is used to transmit the received data to the software processing unit;
所述软件处理单元包括Unity模块,该软件平台用于虚拟现实场景的搭建,同时根据采集单元的数据实现游戏逻辑场景的设计;Described software processing unit comprises Unity module, and this software platform is used for the construction of virtual reality scene, realizes the design of game logic scene according to the data of acquisition unit simultaneously;
所述立体显示单元包括虚拟现实眼镜Oculus Rift,用于立体显示同步的虚拟场景,且通过Oculus Rift自带的陀螺仪可以检测用户头部的转动。The stereoscopic display unit includes virtual reality glasses Oculus Rift, which is used for stereoscopically displaying a synchronized virtual scene, and the rotation of the user's head can be detected by the gyroscope attached to the Oculus Rift.
运动数据采集单元如图2所示,所述霍尔传感器需要与磁钢配套使用,用于检测用户运动速度,霍尔传感器安装在用户鞋子的后跟处,磁钢放置在霍尔传感器的正下方所在的有效检测位置,且当霍尔传感器与磁钢相对时,会有脉冲输出给Arduino控制器,因此通过脉冲数可以测出用户的运动速度,通过数据可以判断用户是否开始运动以及可以计算运动速度。例如在利用Arduino实现的运动检测设备里,1和0被用来传递当前用户的双脚的踏步信息,1表示脚在骑行踏板的最低点,0表示脚踏板离开最低点。1和0交替的出现代表用户的跑步动作,而持续的1表示用户的静止。The motion data acquisition unit is shown in Figure 2. The Hall sensor needs to be used in conjunction with the magnetic steel to detect the user's movement speed. The Hall sensor is installed at the heel of the user's shoes, and the magnetic steel is placed directly below the Hall sensor. The effective detection position, and when the Hall sensor is opposite to the magnetic steel, there will be a pulse output to the Arduino controller, so the user's movement speed can be measured through the pulse number, and the data can be used to judge whether the user starts to move and can calculate the movement speed. For example, in the motion detection device implemented by Arduino, 1 and 0 are used to transmit the stepping information of the current user's feet, 1 means that the foot is at the lowest point of the riding pedal, and 0 means that the pedal is off the lowest point. Alternating 1s and 0s represent the user's running motion, while continuous 1s represent the user's stillness.
自行车转速主要根据脉冲计数来进行测量,霍尔元件输出的脉冲信号频率与转速成正比,脉冲信号与转速有以下关系:The speed of the bicycle is mainly measured according to the pulse count. The frequency of the pulse signal output by the Hall element is proportional to the speed. The relationship between the pulse signal and the speed is as follows:
式中:n为自行车转速,P为自行车车轮转动一圈的脉冲数,T为输出方波信号的周期,根据式(1)即可计算出自行车的车速,本发明测取左右脚运动的速度,然后取平均值,再把此数据通过发送给软件处理单元。In the formula: n is the bicycle speed, P is the number of pulses that the bicycle wheel rotates a circle, and T is the period of the output square wave signal. According to the formula (1), the speed of the bicycle can be calculated. The present invention measures the speed of the left and right foot movements , and then take the average value, and then send this data to the software processing unit.
所述软件处理单元利用Unity的三维引擎和物理引擎实现道路的碰撞检测包括上坡和下坡,在其限制下与用户的输入一起共同控制游戏角色运用,且用第一人称人物实现控制。第一人称人物控制即游戏展示的视角正是在模拟用户真实双眼看到的视角,和第三人称不同,第一人称下用户不可能看到自己控制的角色的后背,因为场景中相机的位置始终绑定在游戏角色眼镜的位置。The software processing unit uses Unity's three-dimensional engine and physics engine to realize road collision detection including uphill and downhill, and controls the use of game characters together with the user's input under its restrictions, and uses the first-person character to realize the control. The first-person character control means that the perspective displayed by the game is simulating the perspective seen by the user's real eyes. Unlike the third-person view, the user cannot see the back of the character he is controlling in the first-person view, because the position of the camera in the scene is always tied. Set the position of the game character's glasses.
所述三维场景的搭建步骤为:The building steps of the 3D scene are:
首先,在制作三维场景之前,先拟定三维场景的大概草图,包括整体环境,天气,视野,本平台采取天气晴朗视野相对辽阔的户外绿色山坡作为场景;First of all, before making a 3D scene, first draw up a rough sketch of the 3D scene, including the overall environment, weather, and field of vision. This platform uses an outdoor green hillside with a relatively wide field of view in clear weather as the scene;
然后是创建地形。在Unity提供的Asset Store中购买并下载地形生成插件TerrainComposer,利用该插件用于创建地形。在有了地形之后,进一步加入一些模型完善整个场景,例如可以在场景中路边加入民房,或着加入路人;模型通过使用三维建模软件生成。Then there is the terrain creation. Purchase and download the terrain generation plug-in TerrainComposer in the Asset Store provided by Unity, and use this plug-in to create terrain. After the terrain is obtained, further add some models to improve the whole scene, for example, you can add residential houses or passers-by on the roadside in the scene; the model is generated by using 3D modeling software.
最后,在生成了模型文件之后,将文件拖入Unity3d对应项目的子目录中即可完成模型的导入。Finally, after the model file is generated, drag the file into the subdirectory of the corresponding Unity3d project to complete the import of the model.
所述Unity虚拟场景的逻辑架构设计如图3所述:首先,用户需要先选择一个终点,终点代表目标位置;然后,用户从特定的目标起点出发,在到达目标位置之前,平台持续检测用户的动作,如果检测到用户的移动,那么在虚拟场景中,游戏角色也会按照用户的移动方向移动,否则,游戏角色保持不动;当场景中游戏角色到达终点时,游戏结束,并给出运动时间和用户运动速度统计量。The logical architecture design of the Unity virtual scene is as shown in Figure 3: first, the user needs to select an end point, which represents the target position; then, the user starts from a specific target starting point, and before reaching the target position, the platform continuously detects the user's Action, if the user's movement is detected, then in the virtual scene, the game character will also move in the direction of the user's movement, otherwise, the game character will remain motionless; when the game character in the scene reaches the end point, the game ends and the movement is given Time and user motion velocity statistics.
所述立体显示单元使用HDMI线等视频线来直接复制显示电脑的输出,且能够左右眼分屏查看。The stereoscopic display unit uses video lines such as HDMI lines to directly copy and display the output of the computer, and can be viewed in split screens by left and right eyes.
本实施例的室内骑行健身系统的具体实施方式为:运动数据采集单元把采集的用户运动信息通过无线传输单元发送给软件处理单元,利用Unity模块根据运动信息控制三维虚实场景的变化,再通过Oculus Rift立体显示眼镜进行同步显示。The specific implementation of the indoor cycling fitness system of this embodiment is: the motion data acquisition unit sends the collected user motion information to the software processing unit through the wireless transmission unit, utilizes the Unity module to control the change of the three-dimensional virtual and real scene according to the motion information, and then passes Oculus Rift stereoscopic display glasses for simultaneous display.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710060201.4A CN106880945A (en) | 2017-01-24 | 2017-01-24 | Interior based on virtual reality glasses is ridden body-building system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710060201.4A CN106880945A (en) | 2017-01-24 | 2017-01-24 | Interior based on virtual reality glasses is ridden body-building system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106880945A true CN106880945A (en) | 2017-06-23 |
Family
ID=59176440
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710060201.4A Pending CN106880945A (en) | 2017-01-24 | 2017-01-24 | Interior based on virtual reality glasses is ridden body-building system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106880945A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109568946A (en) * | 2017-09-29 | 2019-04-05 | 传翼数位影像股份有限公司 | Virtual reality pirate ship amusement system and method |
WO2019135705A1 (en) * | 2018-01-03 | 2019-07-11 | Kaha Pte. Ltd. | A method for tracking the physical activities of a user in real world to interact with a virtual environment |
CN111450480A (en) * | 2020-03-09 | 2020-07-28 | 中国人民解放军海军军医大学 | A VR-based treadmill exercise platform |
CN112516581A (en) * | 2020-12-21 | 2021-03-19 | 南京伟思医疗科技股份有限公司 | Game type active and passive rehabilitation training device based on single-shaft motor stress |
CN114296541A (en) * | 2021-04-26 | 2022-04-08 | 苏州酷约网络科技有限公司 | Motion interaction system based on cloud rendering and application thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070229397A1 (en) * | 2004-03-03 | 2007-10-04 | Volo, Llc | Virtual reality system |
CN205598522U (en) * | 2016-04-21 | 2016-09-28 | 广州策源电子科技有限公司 | Device is experienced to bicycle based on VR virtual reality |
US20160300390A1 (en) * | 2015-04-10 | 2016-10-13 | Virzoom, Inc. | Virtual Reality Exercise Game |
-
2017
- 2017-01-24 CN CN201710060201.4A patent/CN106880945A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070229397A1 (en) * | 2004-03-03 | 2007-10-04 | Volo, Llc | Virtual reality system |
US20160300390A1 (en) * | 2015-04-10 | 2016-10-13 | Virzoom, Inc. | Virtual Reality Exercise Game |
CN205598522U (en) * | 2016-04-21 | 2016-09-28 | 广州策源电子科技有限公司 | Device is experienced to bicycle based on VR virtual reality |
Non-Patent Citations (1)
Title |
---|
郭宇承等: "《虚拟现实与交互设计》", 31 May 2015, 武汉大学出版社 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109568946A (en) * | 2017-09-29 | 2019-04-05 | 传翼数位影像股份有限公司 | Virtual reality pirate ship amusement system and method |
WO2019135705A1 (en) * | 2018-01-03 | 2019-07-11 | Kaha Pte. Ltd. | A method for tracking the physical activities of a user in real world to interact with a virtual environment |
US11420109B2 (en) | 2018-01-03 | 2022-08-23 | Kaha Pte. Ltd. | Method for tracking the physical activities of a user in real world to interact with a virtual environment |
CN111450480A (en) * | 2020-03-09 | 2020-07-28 | 中国人民解放军海军军医大学 | A VR-based treadmill exercise platform |
CN111450480B (en) * | 2020-03-09 | 2022-01-11 | 中国人民解放军海军军医大学 | Treadmill motion platform based on VR |
CN112516581A (en) * | 2020-12-21 | 2021-03-19 | 南京伟思医疗科技股份有限公司 | Game type active and passive rehabilitation training device based on single-shaft motor stress |
CN112516581B (en) * | 2020-12-21 | 2023-03-10 | 南京伟思医疗科技股份有限公司 | Game type active and passive rehabilitation training device based on single-shaft motor stress |
CN114296541A (en) * | 2021-04-26 | 2022-04-08 | 苏州酷约网络科技有限公司 | Motion interaction system based on cloud rendering and application thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112755458B (en) | System and method for linking virtual reality with indoor sports equipment | |
CN105122005B (en) | Motion monitoring system with media content automatic pause | |
US10445932B2 (en) | Running exercise equipment with associated virtual reality interaction method and non-volatile storage media | |
CN106880945A (en) | Interior based on virtual reality glasses is ridden body-building system | |
CN108939418A (en) | A kind of VR body-building interactive system based on unity 3D | |
CN105797349B (en) | Outdoor scene running device, method and system | |
CN104181875B (en) | Excise and fitness system based on mode of Internet of Things | |
CN111617464B (en) | Treadmill body-building method with action recognition function | |
CN106310643A (en) | True environment-based live-action 3D motion system | |
CN101785927A (en) | Interactive body building system | |
CN104771892A (en) | Synchronous display method and system based on virtual reality | |
CN107823846A (en) | A kind of shared virtual reality for building body system and method with physical examinations | |
CN109925714A (en) | A kind of Virtual Intelligent based on Unity3D engine is ridden system | |
CN201085891Y (en) | Simulation control device of running device | |
CN107670261A (en) | A kind of internet motion assistant system based on motion capture technology | |
CN105832502A (en) | Intelligent visual function training method and instrument | |
CN107551554A (en) | Indoor sport scene simulation system and method are realized based on virtual reality | |
JP2022092045A (en) | Facility for exercise | |
CN104258555B (en) | Adopt two body-building interactive systems of fisting the goal of RGBD visual sensing | |
CN107485841A (en) | Intelligent running body-building platform based on real-time street view | |
TWI683687B (en) | System of exercise healthy machine with virtual reality transmitting by cloud server | |
WO2018057044A1 (en) | Dual motion sensor bands for real time gesture tracking and interactive gaming | |
CN103143142B (en) | Integrated entertainment, exercise and fitness treadmill and manual manipulator thereof | |
KR102527513B1 (en) | Wheelchair boarding device capable of rotating, forward and backward, and virtual reality application, and virtual reality application method using the same | |
CN203169906U (en) | Five-sense athletic rehabilitation training station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170623 |