Vehicle control method, vehicle control device, computer equipment and storage medium

文档序号:40851 发布日期:2021-09-28 浏览:35次 中文

阅读说明:本技术 车辆控制方法、装置、计算机设备及存储介质 (Vehicle control method, vehicle control device, computer equipment and storage medium ) 是由 刘玉龙 于 2020-03-27 设计创作,主要内容包括:本发明公开了一种车辆控制方法、装置、计算机设备及存储介质,通过获取车辆传感器采集到的道路要素信息,并且结合道路要素信息和预置的道路地图,构建实时游戏地图;再根据所述实时游戏地图启动车载游戏。使得构建的车载游戏可以结合真实的环境场景,在游戏中还原真实的环境,使得用户在进行车载游戏时能够获取更加真实的视觉感受。(The invention discloses a vehicle control method, a vehicle control device, computer equipment and a storage medium.A real-time game map is constructed by acquiring road element information acquired by a vehicle sensor and combining the road element information with a preset road map; and starting the vehicle-mounted game according to the real-time game map. The constructed vehicle-mounted game can be combined with a real environment scene, a real environment is restored in the game, and a user can obtain a more real visual feeling when the vehicle-mounted game is played.)

1. A vehicle control method characterized by comprising:

acquiring road element information, wherein the road element information is acquired by a sensor of a vehicle;

constructing a real-time game map by combining the road element information and a preset road map;

and starting the vehicle-mounted game according to the real-time game map.

2. The vehicle control method according to claim 1, characterized in that after the start of the in-vehicle game, the vehicle control method further comprises:

displaying a game picture of the vehicle-mounted game in a display interface of display equipment of a vehicle, wherein the game picture comprises a first control object;

receiving a control instruction sent by a target mobile terminal, wherein the target mobile terminal is a mobile terminal which establishes connection with a vehicle, and the control instruction is generated by the target mobile terminal in response to the operation behavior of a user on the target mobile terminal;

and controlling a first control object in a display interface to execute a corresponding action according to the control instruction.

3. The vehicle control method according to claim 2, wherein the acquiring road element information includes: and acquiring road element information acquired by the current vehicle in real time.

4. The vehicle control method according to claim 1, wherein the acquiring road element information includes:

receiving a map selection instruction indicating a map route of the in-vehicle game;

determining an information identifier to be loaded of the real-time game map according to the map selection instruction;

and acquiring road element information from a cloud server according to the information identifier to be loaded, wherein the road element information is acquired by a sensor of a target vehicle, and the target vehicle is a vehicle acquiring the road element information corresponding to the information identifier to be loaded.

5. The vehicle control method according to claim 3, characterized in that a second control object indicating a virtual object of the current vehicle in the in-vehicle game is further included in the game screen;

after the starting of the in-vehicle game, the vehicle control method further includes:

acquiring actual driving data of the current vehicle in real time, wherein the actual driving data comprises state data and control data;

displaying the state data in a display interface of the vehicle-mounted game;

and controlling a second control object in the game picture to execute corresponding action according to the control data.

6. The vehicle control method according to claim 2 or 5, characterized by further comprising:

acquiring state information of the first control object in the vehicle-mounted game in real time;

and judging the state information according to a preset judgment strategy, and if the state information conforms to the abnormal state corresponding to the judgment strategy, adjusting the operation score of the first control object, wherein the operation score indicates the quality of the operation of the first control object by a user.

7. The vehicle control method according to claim 1, characterized in that the road element information includes attribute information and behavior information;

the real-time game map is constructed by combining the road element information and a preset road map, and the method comprises the following steps:

acquiring a corresponding model to be loaded from a preset attribute model library according to the attribute information;

and loading the model to be loaded into the preset road map, and endowing the model to be loaded with corresponding behavior attributes according to the behavior information to obtain a real-time game map.

8. The vehicle control method according to claim 2, characterized in that after the start of the in-vehicle game, the vehicle control method further comprises:

if the vehicle-mounted game comprises a second control object, controlling the vehicle-mounted game to enter a first game mode, wherein the second control object indicates a virtual object of the current vehicle in the vehicle-mounted game, and the first game mode is a simulation mode of real vehicle driving;

and if the vehicle-mounted game does not comprise a second control object, controlling the vehicle-mounted game to enter a second game mode, wherein the second game mode is a vehicle-mounted entertainment mode.

9. The vehicle control method according to claim 1, characterized in that after the start of the in-vehicle game, the vehicle control method further comprises:

re-acquiring the road element information after reaching a preset updating condition, wherein the updating condition comprises a preset time interval and/or a preset game distance;

and adjusting the real-time game map according to the acquired road element information.

10. A vehicle control apparatus characterized by comprising:

the road element information acquisition module is used for acquiring road element information, and the road element information is acquired by a sensor of a vehicle;

the real-time game map building module is used for building a real-time game map by combining the road element information and a preset road map;

and the vehicle-mounted game starting module is used for starting a vehicle-mounted game according to the real-time game map.

11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the vehicle control method according to any one of claims 1 to 9 when executing the computer program.

12. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements a vehicle control method according to any one of claims 1 to 9.

Technical Field

The present invention relates to the field of vehicle technologies, and in particular, to a vehicle control method and apparatus, a computer device, and a storage medium.

Background

With the development of vehicle technology and related scientific technology, people rely more and more on vehicles in daily life. Vehicles become essential transportation means in daily life, people spend more and more time on the vehicles, and how to provide each passenger in the vehicles with enough entertainment content in more or less driving processes is a problem that automobile manufacturers must solve. With the development of intelligent driving technology, especially with the popularization of automatic driving at L3 level and above, the functions that can be implemented in vehicles are becoming more and more diversified, for example, the vehicle entertainment function is implemented by components in the vehicle. In particular, a user may interact with the vehicle via a vehicle steering wheel, vehicle pedals, or other vehicle components to implement functions related to non-vehicle driving. Such as in-vehicle gaming functions. However, the current form of the vehicle-mounted game is only to transfer the game to the vehicle, and only the place for playing the game is changed. In addition, the user plays games in a running vehicle, and the visual experience of the user is poor in the game process.

Disclosure of Invention

The embodiment of the invention provides a vehicle control method and device, computer equipment and a storage medium, and aims to solve the problem that the game visual experience is poor when a user plays a vehicle-mounted game in a vehicle.

In a first aspect of an embodiment of the present invention, a vehicle control method is provided, including:

acquiring road element information, wherein the road element information is acquired by a sensor of a vehicle;

constructing a real-time game map by combining the road element information and a preset road map;

and starting the vehicle-mounted game according to the real-time game map.

In a second aspect of the embodiments of the present invention, a vehicle control apparatus is provided, including:

the road element information acquisition module is used for acquiring road element information, and the road element information is acquired by a sensor of a vehicle;

the real-time game map building module is used for building a real-time game map by combining the road element information and a preset road map;

and the vehicle-mounted game starting module is used for starting a vehicle-mounted game according to the real-time game map.

In a third aspect of the embodiments of the present invention, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the vehicle control method when executing the computer program.

In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the vehicle control method described above.

In the vehicle control method, the vehicle control device, the computer equipment and the storage medium, the real-time game map is constructed by acquiring the road element information acquired by the vehicle sensor and combining the road element information with the preset road map; and starting the vehicle-mounted game according to the real-time game map. The constructed vehicle-mounted game can be combined with a real environment scene, a real environment is restored in the game, and a user can obtain a more real visual feeling when the vehicle-mounted game is played.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.

FIG. 1 is a flow chart of a vehicle control method in accordance with one embodiment of the present invention;

FIG. 2 is a schematic diagram of sensors in a vehicle according to an embodiment of the present invention;

FIG. 3 is another flow chart of a vehicle control method in accordance with an embodiment of the present invention;

FIG. 4 is another flow chart of a vehicle control method in accordance with an embodiment of the present invention;

FIG. 5 is another flow chart of a vehicle control method in accordance with an embodiment of the present invention;

FIG. 6 is another flow chart of a vehicle control method in accordance with an embodiment of the present invention;

FIG. 7 is another flow chart of a vehicle control method in accordance with an embodiment of the present invention;

FIG. 8 is another flow chart of a vehicle control method in accordance with an embodiment of the present invention;

FIG. 9 is a schematic diagram of a vehicle control apparatus in accordance with an embodiment of the present invention;

FIG. 10 is a schematic diagram of a computer device according to an embodiment of the invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The vehicle control method provided by the embodiment of the invention can be applied to a processing system of a vehicle, wherein the processing system in the vehicle can be communicated with devices and/or mechanisms in the vehicle or other communication devices through a network or a bus. Preferably, the vehicle control method is applied in a processing system of an automobile.

In one embodiment, an additional game control system may be provided in the vehicle that solely performs in-vehicle game related control. In this embodiment, the game control System may interact with a processing System of the vehicle, an Advanced Driving Assistance System (ADAS) of the vehicle, devices in the vehicle, and third party devices, either indirectly or indirectly, to implement the vehicle control method. Illustratively, the ADAS system of the vehicle receives data collected by a sensor in the vehicle and then directly sends the collected data to the game control system, or the ADAS system of the vehicle first sends the collected data to the processing system of the vehicle, and the game control system of the vehicle then performs data interaction with the processing system of the vehicle to obtain the data collected by the sensor. Further, the game control system of the vehicle performs data interaction with the cloud server to acquire data acquired by other vehicles. The game control system of the vehicle further interacts with a display device in the vehicle to display a game picture. The user can perform data interaction with the game control system of the vehicle through the input module of the vehicle or the mobile terminal.

In an embodiment, as shown in fig. 1, a vehicle interaction method is provided, which is described by taking a processing system of the method applied in a vehicle as an example, and includes:

s101: road element information is acquired, and the road element information is acquired by a sensor of a vehicle.

The road element information is information related to elements that may affect the driving of the vehicle and are located on the actual road. For example, elements located on a road that may affect vehicle driving may include pedestrians, animals, various vehicles (both automotive and non-automotive), lane lines, traffic signs, trees, billboards, and other objects or signs located on the road, among others. Further, the road element information may include attribute information and behavior information. The attribute information may be used to indicate at least one of a name, a category, a position, and the like of the corresponding element, and the behavior information may be used to indicate a motion state of the corresponding element, for example, whether the element is stationary or moving, and further, the motion state of the element may include information of a motion direction, a motion speed, and the like.

The road element information may be collected by a sensor of the vehicle. The vehicle may be any vehicle located on a road. A vehicle traveling on a road acquires road element information around the vehicle by a sensor provided on the vehicle. Specifically, the sensor provided on the vehicle may include at least one of a camera, an ultrasonic radar, a millimeter wave radar, a laser radar, and the like. It will be appreciated that the number of each of the sensors mentioned above may be at least one. Illustratively, as shown in fig. 2, a look-around camera in front of the vehicle may detect road elements including pedestrians, animals, various vehicles, automobiles, non-automobiles, lane lines, or traffic signs, etc., within the front field of view. The look-around cameras on the sides of the vehicle can detect trees, billboards or other objects on both sides of the lane. Radars are mainly used to detect the distance of road elements and to locate the specific position of road elements. For example, the distance to an obstacle around the vehicle body may be detected by an ultrasonic radar. The millimeter-wave radar (long-distance millimeter-wave radar, medium-short-range millimeter-wave radar, etc.) can be used for detecting objects at a distance of about 50-200 meters from the vehicle, and the laser radar has high detection precision and can accurately trace surrounding environment details such as target distance, azimuth, height, speed, attitude, and even shape and other parameters. Optionally. The laser radar can be arranged at the position of an air inlet fence in front of the vehicle body, can also be arranged at the top of the vehicle, rotates along with the movement of the vehicle, and detects the environment around the vehicle body in real time. Preferably, the collection of the road element information may be achieved by an Advanced Driving Assistance System (ADAS) on the vehicle. The ADAS system is a system that senses the surrounding environment at any time during the driving of a vehicle by using various sensors (millimeter wave radar, laser radar, monocular/binocular cameras, and satellite navigation) installed on the vehicle, collects data, and performs identification, detection, and tracking of static and dynamic objects. The vehicle acquires road element information around the vehicle through the ADAS system, and the processing system of the vehicle acquires the road element information from the ADAS system. Wherein, the processing system and the ADAS system of the vehicle can be connected through a network or a bus. Preferably, the processing system of the vehicle is connected with the vehicle network communication module through the high-speed ethernet to improve the efficiency of data acquisition and embody the real-time performance of the data.

Further, the acquiring of the road element information may be acquiring road information around a current vehicle, i.e., a vehicle that executes the vehicle control method. Alternatively, the acquisition of the road element information may be acquisition of road information around an arbitrary vehicle. Specifically, after the vehicle acquires road information around the vehicle through a sensor arranged on the vehicle, the road information is uploaded or sent to a cloud server, so that the cloud server can store the road information acquired by all vehicles. Therefore, in the embodiment, the road information of the periphery of any vehicle can be acquired from the cloud server. Wherein the road information of which vehicle or which position is specifically acquired can be determined by the user through interaction with the vehicle.

S102: and combining the road element information and a preset road map to construct a real-time game map.

The preset road map is a preset road map, and the road map can be stored in a processing system of the vehicle in advance, or the processing system of the vehicle acquires the road map from a cloud server in real time. The road map may be acquired in advance, or the road map may be acquired through a third-party interface. The third-party interface can be a map data interface such as a Baidu map, a Gade map or an Tencent map.

In this step, a real-time game map is constructed by combining the road element information with a preset road map. Specifically, the road element information is added to a preset road map in a certain manner to form a real-time game map. Further, the road map added with the road element information can be rendered to form various real-time game maps with different styles. For example: cartoon style or real style, etc.

S103: and starting the vehicle-mounted game according to the real-time game map.

After obtaining the real-time game map, the processing system of the vehicle initiates an in-vehicle game in accordance with the real-time game map. Specifically, the processing system of the vehicle may load the real-time game map, creating a corresponding in-vehicle game. The in-vehicle game may be a vehicle simulated driving game or other type of racing game. The user can perform the simulated driving of the vehicle in the real-time game map.

Wherein starting the in-vehicle game may include loading the real-time game map, creating a corresponding in-vehicle game, and presenting the in-vehicle game in a display interface of a display device in the vehicle. Therefore, the vehicle-mounted game can restore a real scene, and a user can feel a scene consistent with a real environment in the game. Therefore, the user can obtain more real experience, the simulation of the real environment can guide the user to experience more vivid driving scenes in the virtual vehicle-mounted game, and the driving consciousness and the operation skill of the user can be improved in the game.

Among them, the user who performs the simulated driving of the vehicle may be classified into the driver and the passenger in the vehicle. In one embodiment, the vehicle control method further includes:

and displaying the vehicle-mounted game in a display interface of a display device of the vehicle, wherein the vehicle-mounted game comprises a control object.

Control instructions are generated in response to user operational behavior of an input module of the vehicle.

And controlling a control object in a display interface to execute a corresponding action according to the control instruction.

The input module of the vehicle is a module which can be operated by a user in the vehicle so as to interact with the vehicle. For example, the input module may include a steering wheel in a vehicle, a vehicle pedal, a voice capture device, an image capture device, or function keys within a vehicle, among others. It is understood that the input module of the vehicle at this time does not perform the function related to the actual vehicle driving, but is mapped to perform the function related to the in-vehicle game. The user's operation behavior on the input module of the vehicle may be that the user turns the steering wheel of the vehicle, that the user steps on the pedals of the vehicle, that the user operates the function keys in the vehicle, and so on. Correspondingly, different functions corresponding to the input module of the vehicle when the vehicle-mounted game is played are configured in advance, and when a user operates the input module of the vehicle, a control instruction is generated according to the functions configured in advance so as to control a control object in the vehicle-mounted game to execute corresponding actions. The control object is a virtual object in the vehicle-mounted game, and the control object can be a virtual vehicle, a character, an animal, an aircraft or the like. The action to be executed by the control object may be set according to a specific game, and for example, if the control object is a virtual vehicle, the action to be executed by the control object may be a simulation of a real vehicle, and may include an action of an actual vehicle (for example, forward, backward, turning, flashing, whistling, etc.).

When an in-vehicle game is played through an input module of a vehicle, safety of the vehicle and a user needs to be considered. Preferably, this embodiment can be triggered only when the vehicle is in a safe state. The vehicle being in the safe state may be the vehicle being in a non-running state or the vehicle being in an autonomous driving mode.

In the embodiment, a real-time game map is constructed by acquiring road element information acquired by a vehicle sensor and combining the road element information with a preset road map; and starting the vehicle-mounted game according to the real-time game map. The constructed vehicle-mounted game can be combined with a real environment scene, a real environment is restored in the game, and a user can obtain a more real visual feeling when the vehicle-mounted game is played.

In one embodiment, as shown in fig. 3, after the starting of the in-vehicle game, the vehicle control method further includes:

s301: and displaying a game picture of the vehicle-mounted game in a display interface of a display device of the vehicle, wherein the game picture comprises a first control object.

The display device may be a display device inherent in the vehicle, or a display device accessed by a third party. The display device may be, for example, a windshield (HUD system), a projection device, a vehicle electronic rearview mirror, a dashboard, a central PAD, or a third-party accessible display device (smart terminal, tablet, or other device with display functionality). Further, a display device may be additionally provided in the vehicle. For example, a dedicated display device is provided on the back of the front seat of the vehicle so that a passenger in the rear row can interact with the vehicle via the display device. And the display interface is an interface provided in a display device in the vehicle. Alternatively, the display interface may be an interface of a PAD in a vehicle, an interface of a smart terminal accessed by a third party, an interface of an electronic rearview mirror or other additionally arranged display devices. After the vehicle-mounted game is started, a game picture of the vehicle-mounted game is displayed in a display interface of a display device of the vehicle. It will be appreciated that, before the in-vehicle game is started, the interactive process between the user and the processing system of the vehicle can also be shown through the display interface, such as the setting process of the game environment, scene or parameter.

The first control object is a virtual object in the vehicle-mounted game, and the first control object can be a virtual vehicle, a character, an animal, an aircraft or the like. After the in-vehicle game is started, the user can play the in-vehicle game by controlling the first control object.

S302: receiving a control instruction sent by a target mobile terminal, wherein the target mobile terminal is a mobile terminal which establishes connection with a vehicle, and the control instruction is generated by the target mobile terminal in response to the operation behavior of a user on the target mobile terminal.

The target mobile terminal is a mobile terminal which establishes connection with a vehicle. The mobile terminal can be a mobile phone, a tablet computer, a wireless handle, a wired handle or other portable terminals. The user can establish a connection with the vehicle through the mobile terminal and then interact with the vehicle. During the driving of the vehicle, it is inconvenient for the passengers in the vehicle to operate the input modules in the vehicle. Therefore, the mobile terminal can interact with the vehicle after establishing connection with the vehicle. For example: the passengers on the vehicle establish connection with the vehicle through the mobile terminals on the hands of the passengers, and then carry out vehicle-mounted games.

The target mobile terminal generates a corresponding control instruction by responding to the operation of the user on the target mobile terminal, and sends the control instruction to a processing system of the vehicle. A plurality of entity keys or virtual keys are arranged in the target mobile terminal, and a user can realize interaction with a vehicle by operating the entity keys or the virtual keys. Specifically, different functions corresponding to different keys of the target mobile terminal are configured in advance when the vehicle-mounted game is played, and when a user operates the target mobile terminal, a control instruction is generated according to the preconfigured functions. Or directly converting the operation behavior corresponding to the target terminal into a control command and sending the control command to a processing system of the vehicle. After receiving the control command, the processing system of the vehicle controls the first control object to perform corresponding actions according to the control command and the pre-configured function.

S303: and controlling a first control object in a display interface to execute a corresponding action according to the control instruction.

The action performed by the first control object may be set according to a specific game, and for example, if the first control object is a virtual vehicle, the action performed by the first control object may be a simulation of a real vehicle, and may include an action of an actual vehicle (for example, forward, backward, turning, flashing, whistling, etc.).

It is to be understood that a plurality of first control objects may be included in the in-vehicle game, that is, a plurality of passengers on the vehicle may collectively play the in-vehicle game. Each passenger establishes a connection with the vehicle through the mobile terminal and then plays the in-vehicle game by manipulating the respective first control object.

Further, a display device is provided on the back of the front seat in the vehicle. The display device can be arranged to facilitate interaction between a passenger in the rear row of the vehicle and the vehicle. Alternatively, the passengers in the back row can perform authentication or account login through face recognition, fingerprint recognition or other manners. In this manner, the passenger may have a separate account. Further, the passengers can download the game handle simulation program in the respective mobile terminals, further establish connection with the vehicle, and then interact with the vehicle through the respective mobile terminals to play the vehicle-mounted game.

In the present embodiment, a game screen of the in-vehicle game is presented in a display interface of a display device of a vehicle, and a user interacts with the vehicle by establishing a connection with the vehicle using a target mobile terminal to play the in-vehicle game. The vehicle-mounted game system has the advantages that users on the vehicle can interact with the vehicle without being limited by positions, so that not only a driver but also passengers on the vehicle can play the vehicle-mounted game, the application range of the vehicle control method is better guaranteed, and the utilization rate of the vehicle control method is guaranteed.

In one embodiment, the acquiring road element information includes: and acquiring road element information acquired by the current vehicle in real time.

The road element information acquired by the current vehicle in real time is the road element information in an area range which can be acquired by the current vehicle. For example, if the collection range of the sensor of the vehicle is 200 meters, the road element information collected by the current vehicle in real time is the road element information within 200 meters of the current vehicle.

The road element information acquired by the current vehicle in real time can be directly acquired from a sensor of the current vehicle, or the road element information of the vehicle is acquired through an ADAS (advanced navigation System) of the vehicle, so that the real-time performance and the efficiency of acquiring the road element information are improved, the road element information acquired by the current vehicle in real time is real feedback of the current environment of a user, the real recovery of the environment of the user in a game is better, and the game experience of the user is improved.

In one embodiment, as shown in fig. 4, the acquiring road element information includes:

s401: receiving a map selection instruction indicating a map route of the in-vehicle game.

Wherein the map selection instruction indicates a map route of the in-vehicle game. The map selection instruction is generated by triggering after the user operates the input module or the target mobile terminal. Namely, the user can select the map route needing to play the vehicle-mounted game automatically. Specifically, a map route that can be selected by a user can be displayed in advance in a display interface of a display device of the vehicle, and the user selects the map route by operating the input module or the target mobile terminal, so as to trigger generation of a map selection instruction.

In one embodiment, before receiving the map selection instruction, the vehicle control method further includes: the selectable map route is presented in a display interface of a display device of the vehicle. The processing system of the vehicle displays the selectable map route which can be selected by the user in the display interface, and the user selects and determines the route of the vehicle-mounted game through the control input module or the target mobile terminal. The alternative map route may be determined in conjunction with a preset road map and road information collected by the vehicle. For example, any vehicle may collect the surrounding road information and upload the surrounding road information to the cloud server. The cloud server may count the road map with the corresponding road information, for example, highlight, flash or other highlighting manner the position with the corresponding road information in the road map. After the cloud server acquires the road map with the highlighted display, the processing system of the vehicle displays the road map in the display interface, and the user can know the selectable route. Therefore, the selection of the user on the map route can be enriched, and the scene of the vehicle-mounted game is enriched.

S402: and determining the information identifier to be loaded of the real-time game map according to the map selection instruction.

The information identifier to be loaded is the identifier of the corresponding road information selected by the user and is used for distinguishing the road information collected by different vehicles. The information identifier to be loaded of the real-time game map can be determined through the map selection instruction. For example, after a user selects a map route from a display interface by manipulating an input module or a target mobile terminal, the identifiers of the corresponding road information on the map route are all determined as the identifiers of the information to be loaded.

S403: and acquiring road element information from a cloud server according to the information identifier to be loaded, wherein the road element information is acquired by a sensor of a target vehicle, and the target vehicle is a vehicle acquiring the road element information corresponding to the information identifier to be loaded.

And acquiring road element information from the cloud server through the information identifier to be loaded, namely acquiring corresponding road information from the cloud server according to the information identifier to be loaded so as to form the road element information. The road element information is acquired by a sensor of a target vehicle, and the target vehicle is a vehicle for acquiring the road element information corresponding to the information identifier to be loaded. Different vehicles can share the road information acquired by the vehicles through the cloud server, and therefore the map of the vehicle-mounted game is enriched better. Further, if two or more vehicles have collected road information at the same position or in the same range, the latest road information, that is, the road information closer to the current time is selected.

In the embodiment, the map routes of the vehicle-mounted game can be enriched through interaction with the cloud server, the limitation that the current vehicle can only collect road information in a limited range is broken, and the map data of the vehicle-mounted game is greatly enriched on the premise that the real-time performance of the data is not influenced.

In one embodiment, the game screen further comprises a second control object. Wherein the second control object indicates a virtual object of the current vehicle in the in-vehicle game. Further, the second control object can be virtualized according to the model of the current vehicle or an actual image, so that the current vehicle can be better restored in the vehicle-mounted game.

As shown in fig. 5, after the starting of the in-vehicle game, the vehicle control method further includes:

s501: and acquiring actual driving data of the current vehicle in real time, wherein the actual driving data comprises state data and control data.

The actual driving data is data related to driving of the current vehicle, and comprises state data and operation data. The state data is various data indicating the current vehicle working condition, such as vehicle speed information, turning angle information, gear information, brake information, accelerator information, indicator light information, door information or window information of the current vehicle. The operation data is data of the driver operating the current vehicle, such as data related to the driver controlling the vehicle speed, shifting gears, controlling wipers and the like. The operation data reflects the real-time operation process of the driver of the current vehicle to the current vehicle.

Specifically, an acquisition frequency may be set to acquire actual driving data of the current vehicle, or the actual driving data of the current vehicle may be acquired when there is a change or update in the actual driving data of the current vehicle.

S502: and displaying the state data in a display interface of the vehicle-mounted game.

Specifically, the status data may be displayed in a fixed area in the display interface. For example, the status data may be displayed in a position adjacent to the second control object in the display interface to visually indicate that the status data is related to the second control object. The status data may also be displayed in any area of the display interface, and it is understood that the selection of the display area of the status data is preferably not to affect the user to play the in-vehicle game.

S503: and controlling a second control object in the game picture to execute corresponding action according to the control data.

Specifically, the function corresponding to the current device/equipment in the current vehicle during vehicle driving can be known in advance, and the second control object in the game picture can be controlled to execute the corresponding action according to the implementation control of the current vehicle by the driver and the corresponding function known in advance. The control data may be data indicating real-time operation of the driver (for example, 15 degrees of stepping on the brake pedal), or may be data converted into corresponding control behavior after acquiring the real-time operation of the driver (for example, controlling the second control object to perform braking with a specific force).

In the present embodiment, the second control object is included in the game screen. Acquiring actual driving data of the current vehicle in real time, wherein the actual driving data comprises state data and control data; displaying the state data in a display interface of the vehicle-mounted game; and controlling a second control object in the game picture to execute corresponding action according to the control data. Since the driver may not be appropriate to play the in-vehicle game while actually driving the current vehicle. In this embodiment, the current real-time road condition is really restored in the vehicle-mounted game, so that the operation and control of the driver in actual driving and the current working condition of the vehicle can be directly mapped to the vehicle-mounted game. Therefore, when the passenger in the vehicle plays the vehicle-mounted game, the operation of the driver in the actual driving can be known in the game picture, and the actual operation of the driver can be intuitively presented to the passenger so as to provide reference or guidance for the control of the passenger in the vehicle-mounted game.

For example, a driver operating a current vehicle may be a coach performing vehicle driving skill coaching. Therefore, the coach can display the current vehicle in real time in the game picture, the road condition in the vehicle-mounted game is the real restoration of the current actual road condition, passengers in the vehicle can imitate and learn the actions of the coach in the vehicle-mounted game so as to achieve the effect of simulating and practicing driving of the vehicle, and the risk of the passengers unfamiliar with vehicle operation in the process of actually operating the vehicle is avoided because the vehicle does not need to be actually operated.

In one embodiment, as shown in fig. 6, the vehicle control method further includes:

s601: and acquiring the state information of the first control object in the vehicle-mounted game in real time.

Wherein the state information indicates a status of the first control object in the in-vehicle game. Illustratively, the position, the moving speed, the moving direction of the first control object, and the attribute information of the first control object itself are indicated. Taking a vehicle in which the first control object is virtual as an example, the state information may include the position of the first control object in the in-vehicle game, the speed and direction of movement, and the conditions of the lamps, wipers, doors, and the like of the first control object.

Specifically, an acquisition frequency may be set to acquire the state information of the first control object in the in-vehicle game, or the state information of the first control object in the in-vehicle game may be acquired when the state information of the first control object in the in-vehicle game is changed or updated.

S602: and judging the state information according to a preset judgment strategy, and if the state information conforms to the abnormal state corresponding to the judgment strategy, adjusting the operation score of the first control object, wherein the operation score indicates the quality of the operation of the first control object by a user.

The preset judgment strategy can be a real traffic rule, or an examination standard in a vehicle driving license examination, or other self-defined standards and the like. The abnormal state indicates a state that does not meet a standard or a predetermined requirement in a preset judgment policy. For example: red light running, overspeed, lane change with solid lines, etc. The operation score indicates whether the user's manipulation of the first control object is good or bad.

Specifically, each abnormal state may correspond to a specific score, and if the state information conforms to the abnormal state corresponding to the determination policy, the operation score of the first control object is deducted according to the score corresponding to the abnormal state. An initial operation score, e.g., 10, 50, or 100, etc., may be set for each user participating in the in-vehicle game. From the start to the end of the in-vehicle game, the final operation score of each manipulation object is calculated. Furthermore, different users can judge win-or-lose according to the operation value, and the interestingness of the vehicle-mounted game is improved.

In this embodiment, since the participants of the real-time game map and the in-vehicle game are changed, the real-time game map is different every time the same road is used for the in-vehicle game, the content of the in-vehicle game is enriched, and the enthusiasm of the game participants can be aroused to a great extent.

In one embodiment, the road element information includes attribute information and behavior information.

As shown in fig. 7, the constructing a real-time game map by combining the road element information and a preset road map includes:

s701: and acquiring a corresponding model to be loaded from a preset attribute model library according to the attribute information.

S702: and loading the model to be loaded into the preset road map, and endowing the model to be loaded with corresponding behavior attributes according to the behavior information to obtain a real-time game map.

An attribute model library is established in advance, and the attribute model library contains models which may be on an actual road, such as: different types of pedestrian models (young, old, adult, child, male, female, etc.), road participants (bicycles, motorcycles, battery cars, tricycles, etc.) with visible driver appearance; various different types of motor vehicles (passenger cars, commercial cars, SUVs, racing cars, special vehicles, etc.) running on a road surface, various animal models, road intrinsic elements (lane lines, traffic signs, traffic lights, etc.). The attribute information indicates elements on the road, such as the elderly, a bicycle, and the like. And acquiring a corresponding model to be loaded from a preset attribute model library according to the attribute information.

And further, loading the model to be loaded into the preset road map. Specifically, the attribute information further includes position information corresponding to the model to be loaded, and the model to be loaded is loaded to the corresponding position in the road map according to the position information.

The behavior information may be used to indicate a motion state of the corresponding element, for example, whether the element is stationary or moving, and further, the motion state of the element may include information of a motion direction, a motion speed, and the like. And according to the behavior information corresponding to the model to be loaded, giving corresponding behavior attributes to the model to be loaded. For example, if a car is parked at a location on a road, a stationary behavior attribute is assigned to the car. If a bicycle is traveling in a particular direction at a particular speed on a non-motorized lane, the bicycle is assigned a behavioral attribute that gives the bicycle the particular speed to travel in the particular direction. In this way, when the in-vehicle game is started, the bicycle moves in accordance with the given behavior attribute on the game screen.

In this embodiment, when a real-time game map is constructed, a corresponding model to be loaded is obtained from a preset attribute model library according to the attribute information. And loading the model to be loaded into the preset road map, and endowing the model to be loaded with corresponding behavior attributes according to the behavior information to obtain a real-time game map. Therefore, the game scene in the vehicle-mounted game can better restore and simulate the real environment, and the proximity degree of the game environment and the real environment is better ensured.

In one embodiment, after the starting of the in-vehicle game, the vehicle control method further includes:

and if the vehicle-mounted game comprises a second control object, controlling the vehicle-mounted game to enter a first game mode, wherein the second control object indicates a virtual object of the current vehicle in the vehicle-mounted game, and the first game mode is a simulation mode of real vehicle driving.

And if the vehicle-mounted game does not comprise a second control object, controlling the vehicle-mounted game to enter a second game mode, wherein the second game mode is a vehicle-mounted entertainment mode.

Wherein the second control object indicates a virtual object of the current vehicle in the in-vehicle game, namely a simulation of the driver's real vehicle driving process in the in-vehicle game. It is considered that, even if the full automatic driving mode is entered while the vehicle is on the road, the driver's attention should preferably always pay attention to the running condition of the vehicle, not the in-vehicle game, to ensure the safety of the running of the vehicle.

In the above-described embodiment, if the second control object is introduced in the in-vehicle game, the actual manipulation of the current vehicle by the driver is mapped in the in-vehicle game to the second control object in the in-vehicle game to provide reference and learning for other users (passengers). Therefore, if a second control object is included in the vehicle-mounted game, the vehicle-mounted game is controlled to enter a first game mode, the second control object indicates a virtual object of the current vehicle in the vehicle-mounted game, and the first game mode is a simulation mode of real vehicle driving.

If the vehicle-mounted game does not comprise the second control object, at this time, the game selection of the passenger is not limited, and the game mode mainly based on entertainment can be performed, so that the vehicle-mounted game is controlled to enter the second game mode, and the second game mode is the vehicle-mounted entertainment mode. At this moment, the game is not limited by traffic rules, passengers can also select more roles, such as roles in various electronic sports and online games, and are not limited to automobiles, any other desired role modes can be selected, the contents still occur in the current racing games on the road, the rules are similar to those of a table game, props can be used for attacking each other, obstacles are set, and the like, so that richer interactive experience of the vehicle-mounted game can be realized.

Specifically, after the in-vehicle game is started, a link created or selected by a game participant may be performed, by which it is determined whether the control object in the in-vehicle game includes the second control object, to perform subsequent determination.

In the embodiment, the vehicle-mounted game is controlled to enter different game modes by judging the game participation roles in the vehicle-mounted game, so that the game modes are controlled more intelligently and reasonably.

In one embodiment, as shown in fig. 8, after the starting of the in-vehicle game, the vehicle control method further includes:

s801: and after reaching a preset updating condition, acquiring the road element information again, wherein the updating condition comprises a preset time interval and/or a preset game distance.

S802: and adjusting the real-time game map according to the acquired road element information.

Specifically, the preset update condition indicates the timing to reacquire the road element information. The update condition includes a preset time interval and/or a preset play distance. The time interval can be set according to the requirements of actual application scenarios. The game distance is a distance indicating that the control object controlled by the user travels in the in-vehicle game. It is understood that the larger the time interval is set, the lower the processing system burden on the vehicle, but the degree of restitution of the real links by the in-vehicle game may be reduced. Similarly, the greater the game distance setting, the less the processing system burden on the vehicle, but the less the real link is restored by the in-vehicle game. Therefore, the time interval and/or the play distance can be set in accordance with the actual need.

And after reaching the preset updating condition, acquiring the road element information again. The re-acquisition process may be consistent with the manner of the initial acquisition. Alternatively, the reacquired road element information may be reacquired from the actual position, or from the vehicle from which the road information was initially acquired. After the road element information is acquired again, the real-time game map is updated. The process of this update may be the same as steps S701-S702. It will be appreciated that the update process may be a complete update of the real-time game map or only a portion of the update that has been adjusted.

After the vehicle-mounted game is started, in the process of playing the game by a user, after a model to be loaded in a map in the game is loaded into the preset road map, the model to be loaded is endowed with corresponding behavior attributes according to behavior information to move. Therefore, it is possible that, with the update of time or scene, the movement of the object in the real environment and the corresponding model in the game is deviated, thereby possibly causing a reduction in the degree of restitution of the real environment by the in-vehicle game. In this embodiment, the road element information is re-acquired through a preset update condition, and the real-time game map is adjusted according to the re-acquired road element information, so that the high restoration of the real environment in the vehicle-mounted game can be ensured.

It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

In one embodiment, there is provided a vehicle control apparatus that corresponds one-to-one to the vehicle control method in the above-described embodiment. As shown in fig. 9, the vehicle control apparatus includes a road element information acquisition module 901, a real-time game map construction module 902, and an in-vehicle game start module 903. The functional modules are explained in detail as follows:

a road element information obtaining module 901, configured to obtain road element information, where the road element information is acquired by a sensor of a vehicle;

a real-time game map construction module 902, configured to construct a real-time game map by combining the road element information and a preset road map;

and the vehicle-mounted game starting module 903 is used for starting a vehicle-mounted game according to the real-time game map.

Preferably, the vehicle control device further comprises a picture display module, a control instruction receiving module and an action control module.

And the picture display module is used for displaying a game picture of the vehicle-mounted game in a display interface of display equipment of the vehicle, wherein the game picture comprises a first control object.

The control instruction receiving module is used for receiving a control instruction sent by a target mobile terminal, wherein the target mobile terminal is a mobile terminal which is connected with a vehicle, and the control instruction is generated by the target mobile terminal in response to the operation behavior of a user on the target mobile terminal.

And the first action control module is used for controlling a first control object in the display interface to execute a corresponding action according to the control instruction.

Preferably, the road element information obtaining module 901 is further configured to obtain road element information collected by the current vehicle in real time.

Preferably, the road element information obtaining module 901 is further configured to receive a map selection instruction, where the map selection instruction indicates a map route of the in-vehicle game; determining an information identifier to be loaded of the real-time game map according to the map selection instruction; and acquiring road element information from a cloud server according to the information identifier to be loaded, wherein the road element information is acquired by a sensor of a target vehicle, and the target vehicle is a vehicle acquiring the road element information corresponding to the information identifier to be loaded.

Preferably, a second control object is further included in the game screen, and the second control object indicates a virtual object of the current vehicle in the in-vehicle game. The vehicle control device further comprises a driving data acquisition module, a state data display module and a second action control module.

And the driving data acquisition module is used for acquiring the actual driving data of the current vehicle in real time, wherein the actual driving data comprises state data and control data.

And the state data display module is used for displaying the state data in a display interface of the vehicle-mounted game.

And the second action control module is used for controlling a second control object in the game picture to execute corresponding action according to the control data.

Preferably, the vehicle control apparatus further includes a state information acquisition module and an operation score adjustment module.

And the state information acquisition module is used for acquiring the state information of the first control object in the vehicle-mounted game in real time.

And the operation score adjusting module is used for judging the state information according to a preset judgment strategy, and if the state information accords with the abnormal state corresponding to the judgment strategy, adjusting the operation score of the first control object, wherein the operation score indicates the quality of the operation of the first control object by a user.

Preferably, the road element information includes attribute information and behavior information. The real-time game map building module 902 is further configured to obtain a corresponding model to be loaded from a preset attribute model library according to the attribute information; and loading the model to be loaded into the preset road map, and endowing the model to be loaded with corresponding behavior attributes according to the behavior information to obtain a real-time game map.

Preferably, the vehicle control device is further configured to control the in-vehicle game to enter a first game mode when a second control object is included in the in-vehicle game, the second control object indicating a virtual object of the current vehicle in the in-vehicle game, and the first game mode being a simulation mode of real vehicle driving; and when the vehicle-mounted game does not comprise a second control object, controlling the vehicle-mounted game to enter a second game mode, wherein the second game mode is a vehicle-mounted entertainment mode.

Preferably, the vehicle control apparatus is further configured to reacquire the road element information after a preset update condition is reached, the update condition including a preset time interval and/or a preset play distance; and adjusting the real-time game map according to the acquired road element information.

For specific limitations of the vehicle control device, reference may be made to the above limitations of the vehicle control method, which are not described herein again. The respective modules in the vehicle control apparatus described above may be realized in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a processing system of a vehicle, the internal structure of which may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store data used in the vehicle control method in any of the embodiments described above. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement the vehicle control method in any of the above embodiments.

In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the vehicle control method of any of the above embodiments when executing the computer program.

In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the vehicle control method in any of the above embodiments.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.

The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:虚拟对象的控制方法及装置、存储介质、电子装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类