As a place where people gather,drug rehabilitation center needs more convenient and efficient supervision methods,so as to improve the supervision efficiency of supervisor.At the same time,fire safety knowledge and fire fighting skills are an important content that every citizen of today’s society must have.Therefore,in addition to regular supervision operations,drug rehabilitation centers also need to supervise fire safety issues.With the development of virtual reality technology,it has the characteristics of strong immersion,not limited by the actual site,and repetitiveness,which has been widely welcomed by people,and then applied to all walks of life.he use of virtual reality technology to supervise drug rehabilitation centers and fire drills has the advantages of low cost,repeatability and safety compared with traditional methods.Therefore,this article has developed a drug rehabilitation center supervision and management system based on virtual reality,which is used for supervisor to supervise drug rehabilitation centers and to improve their fire safety awareness and fire-fighting skills.This article first conducts requirements analysis,outline design,and detailed design of the drug rehabilitation center supervision and management system based on virtual reality.In the demand analysis,the requirements of the drug rehabilitation center supervision system are analyzed,the system overview and key technologies are introduced,and the functional and non-functional requirements of the drug rehabilitation center supervision system are further described;in the outline design,the main hardware equipment composition and the logical design of the drug rehabilitation center supervision system are described;in the detailed design part,the main function design of the system is described.Then this article implements the system based on the above analysis and design.Among them,this system uses C#and Unity3D to realize the dynamic loading function of virtual scenes,and designs a system interface that conforms to the user’s habits in each scene;socket and Json are also used to realize real-time communication between the guidance control terminal and the cloud server,vive terminal,and cave terminal to realize synchronization between the two ends;and virtual fire fighting is realized by the simulation water gun,HTC VIVE,stereo glasses,cave and guidance console.With the drill function,trainees can experience the process of fire drills in an immersive manner.Guidance and control personnel can simultaneously watch the training process and intervene in it to improve the trainee’s fire fighting ability and response ability to emergencies.The system proposed integrates cloud server technology,simulated water gun interaction technology,and guidance and control technology.The functions implemented include;roaming module,management module,viewing module,and training module.Among them,the roaming module is to assist the management module and the viewing module,so that the supervisor can use the mouse and keyboard to roam freely in the virtual scene,and then perform management and viewing operations.The management module and viewing module is connected to the drug rehabilitation center through the cloud server.The supervisor can view the current status of the drug rehabilitation center in this system,or use the system to manage the drug rehabilitation center in real time.The training module is coordinated with the button of the simulated water gun through HTC VIVE or kincet,so that the trainee can move freely in the virtual scene.During the training process,the trainee can use the simulation water guns to carry out related fire fighting operations.At the same time,supervisors can control the virtual fire drill through the guidance control console,or watch the training process on the holographic display. |