CN109240302A - Method and device for using robot racing car, electronic equipment and storage medium - Google Patents

Method and device for using robot racing car, electronic equipment and storage medium Download PDF

Info

Publication number
CN109240302A
CN109240302A CN201811161916.XA CN201811161916A CN109240302A CN 109240302 A CN109240302 A CN 109240302A CN 201811161916 A CN201811161916 A CN 201811161916A CN 109240302 A CN109240302 A CN 109240302A
Authority
CN
China
Prior art keywords
target
vehicle
player
robot
travel parameter
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.)
Granted
Application number
CN201811161916.XA
Other languages
Chinese (zh)
Other versions
CN109240302B (en
Inventor
徐胜明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201811161916.XA priority Critical patent/CN109240302B/en
Publication of CN109240302A publication Critical patent/CN109240302A/en
Application granted granted Critical
Publication of CN109240302B publication Critical patent/CN109240302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
  • Toys (AREA)

Abstract

The embodiment of the invention provides a method and a device for using a robot racing car, electronic equipment and a storage medium, wherein the method for using the robot racing car comprises the following steps: acquiring target driving parameters of a target historical player vehicle started at a target position; determining a target track corresponding to a target robot vehicle according to the target driving parameters, wherein the target robot vehicle is started at the target position; and configuring the target driving parameters to the target robot vehicle so that the target robot vehicle drives along the target track according to the target driving parameters. The invention realizes the randomness and the sense of reality of simulating the competition of real players.

Description

It is a kind of to use the method, apparatus of robot racing car, electronic equipment and storage medium
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method, apparatus using robot racing car, electronics Equipment and storage medium.
Background technique
With the development of computer technology, online game is also developed rapidly, in order to meet the needs of different user, There are a plurality of types of online games, such as: fighting games, develop class game, music game, shooting game, role playing, Car race game etc..
In existing car race game, in the case where matching battle, if matching is less than true player, available machines used people's generation It runs, then needs for robot simulation's racing track track, so that target robot vehicle is travelled along the racing track track, existing is machine The racing track track of human simulation is racing track middle line.The method of specifically used robot racing car are as follows: during making map, Racing track center line markings are come out, so that target robot vehicle is travelled along the racing track middle line.
Inventors have found that target robot vehicle can only be along in racing track in the existing method using robot racing car Line traveling lacks the sense of reality of battle without the randomness of true player match.
Summary of the invention
Being designed to provide for the embodiment of the present invention a kind of using the method, apparatus of robot racing car, electronic equipment and is deposited Storage media, to realize the randomness and the sense of reality of simulating true player's match.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention discloses a kind of methods using robot racing car, which comprises
Obtain the target travel parameter of the target histories player's vehicle started in target position;
According to the target travel parameter, the corresponding target trajectory of target robot vehicle, the target robot are determined Vehicle is the robotic vehicle started in the target position;
By the target travel parameter configuration give the target robot vehicle so that the target robot vehicle according to The target travel parameter is travelled along the target trajectory.
Optionally, in the acquisition before the target travel parameter for target histories player's vehicle that target position starts, The method also includes:
Obtain the corresponding target racing track of current car race game;
The starting position that the target robot vehicle is determined in the target racing track, using the starting position as institute State target position.
Optionally, in the acquisition before the target travel parameter for target histories player's vehicle that target position starts, The method also includes:
In each historical player vehicle of target position starting, it is corresponding with the target robot vehicle class to choose grade Historical player vehicle, as the target histories player vehicle.
Optionally, in the acquisition before the target travel parameter for target histories player's vehicle that target position starts, The method also includes:
In each historical player vehicle of target position starting, it is corresponding with current car race game player levels to choose grade Historical player vehicle, as the target histories player vehicle.
Optionally, described to determine the corresponding target trajectory of target robot vehicle according to the target travel parameter, packet It includes:
According to the target travel parameter, in predetermined racing track track, it is corresponding to choose the target travel parameter Racing track track, obtain the corresponding target trajectory of the target robot vehicle, wherein the history driving parameters include: vehicle Position, direction and speed.
Optionally, described to determine the corresponding target trajectory of target robot vehicle according to the target travel parameter, packet It includes:
According to the target travel parameter, the racing track rail of the vehicle travelled according to the target histories driving parameters is calculated Mark, as the corresponding target trajectory of the target robot vehicle, wherein the history driving parameters include: vehicle position, Direction and speed.
Second aspect, the embodiment of the invention discloses a kind of device using robot racing car, described device includes:
Target travel parameter acquisition module, for obtaining the target line in target histories player's vehicle of target position starting Sail parameter;
Target trajectory determining module, for determining the corresponding mesh of target robot vehicle according to the target travel parameter Track is marked, the target robot vehicle is the robotic vehicle started in the target position;
Target travel parameter configuration module, for giving the target travel parameter configuration to the target robot vehicle, So that the target robot vehicle is travelled according to the target travel parameter along the target trajectory.
Optionally, described device further include:
Target racing track obtains module, for obtaining the corresponding target racing track of current car race game;
Target position determining module, for determining the start bit of the target robot vehicle in the target racing track It sets, using the starting position as the target position.
Optionally, described device further include:
First object historical player vehicle determining module, for selecting in each historical player vehicle that target position starts Grade historical player vehicle corresponding with the target robot vehicle class is taken, as the target histories player vehicle.
Optionally, described device further include:
Second target histories player's vehicle determining module, for selecting in each historical player vehicle that target position starts Grade historical player vehicle corresponding with current car race game player levels is taken, as the target histories player vehicle.
Optionally, the target trajectory determining module is specifically used for according to the target travel parameter, predetermined In racing track track, the corresponding racing track track of the target travel parameter is chosen, obtains the corresponding mesh of the target robot vehicle Mark track, wherein the history driving parameters include: position, direction and the speed of vehicle.
Optionally, the target trajectory determining module is specifically used for calculating according to the target travel parameter according to described The racing track track of the vehicle of target histories driving parameters traveling, as the corresponding target trajectory of the target robot vehicle, In, the history driving parameters include: position, direction and the speed of vehicle.
Another aspect, the embodiment of the invention discloses a kind of electronic equipment, including processor, communication interface, memory and Communication bus, wherein the processor, the communication interface, the memory are completed each other by the communication bus Communication;
The memory, for storing computer program;
The processor, when for executing the program stored on the memory, realization is above-mentioned to use robot racing car Method in any method and step.
Another aspect, the embodiment of the invention discloses a kind of computer readable storage medium, the computer-readable storage Dielectric memory contains computer program, when the computer program is executed by processor, realizes above-mentioned using robot racing car Any method and step in method.
A kind of the method, apparatus of robot racing car, electronic equipment and storage medium are used provided in an embodiment of the present invention In, the target travel parameter of the target histories player's vehicle started in target position is obtained, by the target travel parameter, is determined The corresponding target trajectory of target robot vehicle realizes and simulates true racing track track for robotic vehicle.By target line Parameter configuration is sailed to the target robot vehicle, so that the target robot vehicle is according to the target travel parameter along target trajectory Traveling, so that target robot vehicle is more close to the racing car operational process of true player, to realize through robot mould Intend the sense of reality of true multi-player race-car.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of method flow diagram using robot racing car of the embodiment of the present invention;
Fig. 2 is the method flow that target position is determined in a kind of method using robot racing car of the embodiment of the present invention Figure;
Fig. 3 is a kind of apparatus structure schematic diagram using robot racing car of the embodiment of the present invention;
Fig. 4 is a kind of electronic equipment structural schematic diagram of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In a first aspect, the embodiment of the invention discloses a kind of methods using robot racing car, as shown in Figure 1.Fig. 1 is this A kind of method flow diagram using robot racing car of inventive embodiments, method include:
S101 obtains the target travel parameter of the target histories player's vehicle started in target position.
In the embodiment of the present invention, in order to enable operation of the traveling of robotic vehicle more close to true player's vehicle, In the historical data of client, the target travel parameter of the target histories player's vehicle started in target position is obtained, as this The driving parameters of target robot vehicle.The target position is the target robot vehicle and is total to the target robot vehicle In match map where player's vehicle of same match, the position of the target robot vehicle launch.The target travel parameter packet It includes: position, direction and the speed of target histories player's vehicle.Target robot vehicle in the embodiment of the present invention is in target The robotic vehicle of position starting.
Specifically, by the starting of racing track where the target robot vehicle in map of competing where the target robot vehicle Position is as target position.And then in history competition data, the target position starting each historical player vehicle according to Preset rules choose a historical player vehicle as target histories player's vehicle, which can be in target position starting Each historical player vehicle in, corresponding with the current car race game player levels historical player vehicle of grade is chosen, as target Historical player vehicle or the preset rules can be to choose grade and mesh in each historical player vehicle that target position starts The corresponding historical player vehicle of scalar robot vehicle class, as target histories player's vehicle.In turn by target histories player The driving parameters of vehicle are determined as target travel parameter.
Alternatively, arbitrarily being chosen in each historical player vehicle of target position starting in turn in history competition data One historical player vehicle is as target histories player's vehicle, and then the driving parameters for obtaining target histories player's vehicle are mesh Mark driving parameters.
For example, the position of the vehicle of the target histories player's vehicle per second for obtaining preset times, direction, speed.
S102 determines the corresponding target trajectory of target robot vehicle, target robot vehicle according to target travel parameter For the robotic vehicle started in target position.
In the embodiment of the present invention, in order to enable target robot vehicle is pressed closer to the driving process of true player's vehicle The target trajectory of the target robot vehicle is determined according to determining target travel parameter.
Specifically, determining that the historical player vehicle entirely compares by the history driving parameters of the historical player vehicle obtained It is better than the driving trace of journey, the target trajectory as the target robot vehicle.
Optionally, it determines the corresponding target trajectory of target robot vehicle according to target travel parameter in the S102, can wrap It includes:
According to target travel parameter, in predetermined racing track track, the corresponding racing track rail of target travel parameter is chosen Mark obtains the corresponding target trajectory of target robot vehicle, wherein history driving parameters include: the position of vehicle, direction and Speed.
In a kind of embodiment of this step, it can choose in predetermined each racing track track and join with the target travel The corresponding racing track track of number, as target trajectory.
Specifically, in each historical player vehicle travel process, according to the history driving parameters of the historical player vehicle, Corresponding racing track track is fitted, and then each racing track track is saved in the database according to corresponding racing track.In this step, pre- In each racing track track first saved, chosen in the racing track where target histories player's vehicle corresponding with the target travel parameter Racing track track, using the racing track track as the target trajectory of the target robot.
Optionally, it determines the corresponding target trajectory of target robot vehicle according to history driving parameters in the S102, can wrap It includes:
According to target travel parameter, the racing track track of the vehicle travelled according to target histories driving parameters is calculated, as mesh The corresponding target trajectory of scalar robot vehicle, wherein history driving parameters include: position, direction and the speed of vehicle.
In a kind of embodiment of this step, the corresponding racing track track of the target travel parameter can be calculated in real time, made For target trajectory.
Specifically, sequentially in time, the target travel ginseng of the target histories player's vehicle per second for obtaining preset times Number, the target travel parameter are the position of target histories player's vehicle, direction, speed.
It is attended the competition track by the target travel parameter fitting obtained in real time, using the racing track track as the target robot Target trajectory.
S103 gives target travel parameter configuration to target robot vehicle, so that target robot vehicle is according to target line Parameter is sailed to travel along target trajectory.
Sequentially in time by the target travel parameter obtained in above-mentioned S101, it is allocated to the target robot vehicle, with Travel the target robot vehicle along target trajectory according to the target travel parameter.
In a kind of method using robot racing car provided in an embodiment of the present invention, the mesh started in target position is obtained The target travel parameter of mark historical player vehicle determines the corresponding mesh of target robot vehicle by the target travel parameter Track is marked, realizes and simulates true racing track track for robotic vehicle.Give target travel parameter configuration to the target robot Vehicle, so that the target robot vehicle is travelled according to the target travel parameter along target trajectory, so that target robot vehicle More close to the racing car operational process of true player, to realize the sense of reality by the true multi-player race-car of robot simulation.
Optionally, it in a kind of embodiment in the present invention using the method for robot racing car, obtains in S101 in target position It, can be just like the method for determining target position shown in Fig. 2 before setting the target travel parameter of target histories player's vehicle of starting Flow chart, comprising:
S201 obtains the corresponding target racing track of current car race game.
The target racing track of this step is the corresponding racing track map of current car race game.This step is to obtain to correspond to current match The corresponding racing track map of the grade of vehicle game or outpost, using the racing track map as the target racing track of the embodiment of the present invention.
S202 determines the starting position of target robot vehicle in target racing track, using starting position as target position.
The starting position that the target robot vehicle is determined in the target racing track that above-mentioned S201 is determined, by the target machine The starting position of people's vehicle, as target position.
Specifically, determining the corresponding racing track of target robot vehicle in the target racing track, and then matched by the target The starting position of each racing track in road determines that the target robot vehicle corresponds to the starting position of racing track, using the starting position as Target position.
As it can be seen that through the embodiment of the present invention, it can be achieved that determining the corresponding target racing track of target robot vehicle and determination The target position of the target robot vehicle launch is somebody's turn to do convenient for screening to correspond in historical player vehicle by the target position Target histories player's vehicle of target robot vehicle.
Optionally, it in a kind of embodiment in the present invention using the method for robot racing car, obtains in S101 in target position Before setting the target travel parameter of target histories player's vehicle of starting, method further include:
In each historical player vehicle of target position starting, choose that grade is corresponding with target robot vehicle class goes through History player's vehicle, as target histories player's vehicle.
In the present embodiment, the settable rule of correspondence determines the corresponding mesh of target robot vehicle according to the rule of correspondence Mark historical player vehicle.The grade can be target robot vehicle ranking or be target robot vehicle level, the level Such as: it is high, medium and low.
When grade is target robot vehicle ranking, the rule of correspondence is target robot vehicle class and target histories player When vehicle class is identical, target histories player's vehicle can be determined as follows:
Each historical player vehicle of target position starting is chosen in historical player vehicle first, and then in each history Identical with target robot vehicle class historical player vehicle is chosen in player's vehicle, with the target robot vehicle etc. A historical player vehicle is chosen in the identical historical player vehicle of grade, as target histories player's vehicle.
For example, the grade of target robot vehicle is 10, the target robot is chosen in historical player vehicle first Each historical player vehicle of the target position starting of vehicle, and then one etc. is arbitrarily chosen in determining each historical player vehicle The historical player vehicle that grade is 10, as target histories player vehicle corresponding with the target robot vehicle class.Alternatively, mesh The grade of scalar robot vehicle is 10, and the target position for being chosen at the target robot vehicle in historical player vehicle first is opened Then dynamic each historical player vehicle chooses each historical player vehicle that grade is 10 in determining each historical player vehicle, Finally choose that the used time is most short or the most fast historical player vehicle of average speed in each historical player vehicle that determining grade is 10 , as target histories player vehicle corresponding with the target robot vehicle class.
When grade is target robot vehicle ranking, the rule of correspondence is target robot vehicle class than target histories player When the low predetermined level of vehicle class or high predetermined level, target histories player's vehicle can be determined as follows:
Each historical player vehicle of target position starting is chosen in historical player vehicle first, and then in each history The historical player vehicle that predetermined level lower than the target robot vehicle class or high predetermined level are chosen in player's vehicle, with A historical player vehicle is chosen in the historical player vehicle of the low predetermined level of target robot vehicle or high predetermined level, is made For target histories player's vehicle.
For example, the grade of target robot vehicle is 10, predetermined level 2 is chosen in historical player vehicle first Each historical player vehicle of the target position starting of the target robot vehicle, and then appoint in determining each historical player vehicle Meaning chooses the historical player vehicle that a grade is 12, as target histories player corresponding with the target robot vehicle class Vehicle.Alternatively, each history for being chosen at the target position starting of the target robot vehicle in historical player vehicle first is played Then family's vehicle chooses each historical player vehicle that grade is 12, finally determining in determining each historical player vehicle Choose that the used time is most short or the most fast historical player vehicle of average speed in each historical player vehicle that grade is 12, as with the mesh The corresponding target histories player vehicle of scalar robot vehicle class.
Alternatively, the grade of target robot vehicle is 10, predetermined level 2 is chosen in historical player vehicle first Each historical player vehicle of the target position starting of the target robot vehicle, and then appoint in determining each historical player vehicle Meaning chooses the historical player vehicle that a grade is 8, as target histories player corresponding with the target robot vehicle class Vehicle.Alternatively, each history for being chosen at the target position starting of the target robot vehicle in historical player vehicle first is played Then family's vehicle chooses each historical player vehicle that grade is 8, finally determining etc. in determining each historical player vehicle The used time is most short or the most fast historical player vehicle of average speed to choose in 8 each historical player vehicle for grade, as with the target The corresponding target histories player vehicle of robotic vehicle grade.
When the level that the grade is target robot vehicle, such as: high, medium and low, the rule of correspondence is target robot vehicle When grade is identical as target histories player's vehicle class, target histories player's vehicle can be determined as follows:
Each historical player vehicle of target position starting is chosen in historical player vehicle first, and then in each history Identical with target robot vehicle class historical player vehicle is chosen in player's vehicle, with the target robot vehicle etc. A historical player vehicle is chosen in the identical historical player vehicle of grade, as target histories player's vehicle.
For example, the grade of target robot vehicle is height, the target robot is chosen in historical player vehicle first Each historical player vehicle of the target position starting of vehicle, and then one etc. is arbitrarily chosen in determining each historical player vehicle Grade is high historical player vehicle, as target histories player vehicle corresponding with the target robot vehicle class.Alternatively, mesh The grade of scalar robot vehicle is height, and the target position for being chosen at the target robot vehicle in historical player vehicle first is opened Dynamic each historical player vehicle, it is high each historical player vehicle that grade is then chosen in determining each historical player vehicle, It is finally to choose that the used time is most short or the most fast historical player vehicle of average speed in high each historical player vehicle in determining grade , as target histories player vehicle corresponding with the target robot vehicle class.
When the level that the grade is target robot vehicle, such as: high, medium and low, the rule of correspondence is target histories player vehicle It is identical as target robot vehicle class, and target histories player vehicle is low more pre- than the target robot vehicle overall ranking If can determine as follows target histories player's vehicle when ranking or high default ranking:
Each historical player vehicle of target position starting is chosen in historical player vehicle first, and then in each history Identical with the target robot vehicle class each historical player vehicle is chosen in player's vehicle, is finally respectively gone through grade is identical The historical player vehicle of default ranking lower than the target robot vehicle overall ranking or high default ranking is chosen in history player's vehicle , as target histories player's vehicle.
For example, the grade of target robot vehicle is height, presetting ranking is 2, is chosen in historical player vehicle first Each historical player vehicle of the target position starting of the target robot vehicle, and then selected in determining each historical player vehicle Taking grade is high historical player vehicle, is to choose overall ranking than the mesh in high historical player vehicle in determining grade Any historical player vehicle of scalar robot vehicle overall ranking high 2, as mesh corresponding with the target robot vehicle class Mark historical player vehicle.Alternatively, the target position starting of the target robot vehicle is chosen in historical player vehicle first Each historical player vehicle, and then in determining each historical player vehicle choose grade be high historical player vehicle, true Fixed grade is to choose overall ranking any lower by 2 than the target robot vehicle overall ranking in high historical player vehicle Historical player vehicle, as target histories player vehicle corresponding with the target robot vehicle class.
As it can be seen that through the embodiment of the present invention, can determine the target robot vehicle according to the grade of target robot vehicle Corresponding target histories player vehicle ensures the target robot vehicle by the driving parameters of target histories player's vehicle True player's vehicle travel process can be simulated.
Optionally, it in a kind of embodiment in the present invention using the method for robot racing car, obtains in S101 in target position Before setting the target travel parameter of target histories player's vehicle of starting, method further include:
In each historical player vehicle of target position starting, it is corresponding with current car race game player levels to choose grade Historical player vehicle, as target histories player's vehicle.
In the present embodiment, the settable rule of correspondence determines the corresponding mesh of target robot vehicle according to the rule of correspondence Mark historical player vehicle.The grade can for current car race game player ranking or be current car race game player level, should It is horizontal for example: it is high, medium and low.
When grade is current car race game player ranking, the rule of correspondence is target histories player vehicle class and current racing car When the average rank of game player's grade is identical, target histories player's vehicle can be determined as follows:
The grade of each player of current car race game is obtained first, and solves average rank, is selected in historical player vehicle Each historical player vehicle in target position starting is taken, and then selection is identical as the average rank in each historical player vehicle Historical player vehicle, in historical player vehicle identical with the average rank choose a historical player vehicle, as mesh Mark historical player vehicle.
For example, the grade of each player of current car race game is 7,20,33, average rank 30, first in historical player vehicle It is chosen at each historical player vehicle of the target position starting of the target robot vehicle in, and then is played in determining each history The historical player vehicle that a grade is 30 is arbitrarily chosen in family's vehicle, as mesh corresponding with the target robot vehicle class Mark historical player vehicle.Alternatively, the grade of each player of current car race game is 7,20,33, average rank 30, first in history Each historical player vehicle of the target position starting of the target robot vehicle is chosen in player's vehicle, then determining each Each historical player vehicle that grade is 30, each historical player vehicle for being finally 30 in determining grade are chosen in historical player vehicle Choose that the used time is most short or the most fast historical player vehicle of average speed in, as corresponding with the target robot vehicle class Target histories player's vehicle.
When grade is current car race game player ranking, the rule of correspondence is target histories player vehicle class ratio and current match When the low predetermined level of average rank of vehicle game player's grade or high predetermined level, it can determine that target histories are played as follows Family's vehicle:
The grade of each player of current car race game is obtained first, and solves average rank and setting predetermined level, It is chosen at each historical player vehicle of target position starting in historical player vehicle, and then is chosen in each historical player vehicle The historical player vehicle of predetermined level lower than the average rank or high predetermined level, in predetermined level lower than the average rank or high A historical player vehicle is chosen in the historical player vehicle of predetermined level, as target histories player's vehicle.
For example, the grade of each player of current car race game is 7,20,33, and average rank 30, predetermined level 2, first Each historical player vehicle of the target position starting of the target robot vehicle is chosen in historical player vehicle, and then true Arbitrarily chosen in fixed each historical player vehicle a grade be 28 historical player vehicle, as with the target robot vehicle The corresponding target histories player vehicle of grade.Alternatively, the grade of each player of current car race game is 7,20,33, average rank is 30, predetermined level 2 is chosen at respectively going through for the target position starting of the target robot vehicle in historical player vehicle first Then history player's vehicle chooses each historical player vehicle that grade is 28, finally true in determining each historical player vehicle Choose that the used time is most short or the most fast historical player vehicle of average speed in each historical player vehicle that fixed grade is 28, as with The corresponding target histories player vehicle of the target robot vehicle class.
Alternatively, the grade of each player of current car race game is 7,20,33, and average rank 30, predetermined level 2, first Each historical player vehicle of the target position starting of the target robot vehicle is chosen in historical player vehicle, and then true Arbitrarily chosen in fixed each historical player vehicle a grade be 32 historical player vehicle, as with the target robot vehicle The corresponding target histories player vehicle of grade.Alternatively, the grade of each player of current car race game is 7,20,33, average rank is 30, predetermined level 2 is chosen at respectively going through for the target position starting of the target robot vehicle in historical player vehicle first Then history player's vehicle chooses each historical player vehicle that grade is 32, finally true in determining each historical player vehicle The historical player vehicle that the used time is most short or average speed is most fast is chosen in each historical player vehicle that fixed grade is 32, as Target histories player vehicle corresponding with the target robot vehicle class.
When grade be current car race game player level, the level for example: it is high, medium and low.The rule of correspondence is target histories When player's vehicle class is highest level in current car race game player levels, target histories player can be determined as follows Vehicle:
The grade for obtaining each player of current car race game first is chosen at target position starting in historical player vehicle Each historical player vehicle, and then in each historical player vehicle choose and current each player of car race game highest level phase Same historical player vehicle chooses a historical player vehicle, as mesh in historical player vehicle identical with highest level Mark historical player vehicle.
For example, the grade of current each player of car race game be it is high, middle and high, be chosen at this in historical player vehicle first Each historical player vehicle of the target position starting of target robot vehicle, and then in determining each historical player vehicle optionally One grade is high historical player vehicle, as target histories player vehicle corresponding with the target robot vehicle class. Alternatively, the grade of current each player of car race game be it is high, middle and high, the target machine is chosen in historical player vehicle first Each historical player vehicle of the target position starting of people's vehicle, it is height that grade is then chosen in determining each historical player vehicle Each historical player vehicle, calculate the racing car that grade is high each historical player vehicle and be averaged used time or average speed, finally exist Determining grade is to choose and the average time or the immediate historical player vehicle of average speed in high each historical player vehicle , as target histories player vehicle corresponding with the target robot vehicle class.
As it can be seen that through the embodiment of the present invention, can determine the target robot according to the grade of each player of current car race game The corresponding target histories player vehicle of vehicle, is ensured and the target machine by the driving parameters of target histories player's vehicle People's vehicle can match with going game player's driving process, improve the authenticity and irritation of game.
Second aspect, the embodiment of the invention discloses a kind of devices using robot racing car, as shown in Figure 3.Fig. 3 is this A kind of apparatus structure schematic diagram using robot racing car of inventive embodiments, device include:
Target travel parameter acquisition module 301, for obtaining the mesh in target histories player's vehicle of target position starting Mark driving parameters;
Target trajectory determining module 302, for determining the corresponding target of target robot vehicle according to target travel parameter Track, target robot vehicle are the robotic vehicle started in target position;
Target travel parameter configuration module 303, for giving target travel parameter configuration to target robot vehicle, so that mesh Scalar robot vehicle is travelled according to target travel parameter along target trajectory.
In a kind of device using robot racing car provided in an embodiment of the present invention, the mesh started in target position is obtained The target travel parameter of mark historical player vehicle determines the corresponding mesh of target robot vehicle by the target travel parameter Track is marked, realizes and simulates true racing track track for robotic vehicle.Give target travel parameter configuration to the target robot Vehicle, so that the target robot vehicle is travelled according to the target travel parameter along target trajectory, so that target robot vehicle More close to the racing car operational process of true player, to realize the sense of reality by the true multi-player race-car of robot simulation.
Optionally, in a kind of embodiment in the present invention using the device of robot racing car, device further include:
Target racing track obtains module, for obtaining the corresponding target racing track of current car race game;
Target position determining module will start for determining the starting position of target robot vehicle in target racing track Position is as target position.
Optionally, in a kind of embodiment in the present invention using the device of robot racing car, device further include:
First object historical player vehicle determining module, for selecting in each historical player vehicle that target position starts Grade historical player vehicle corresponding with target robot vehicle class is taken, as target histories player's vehicle.
Optionally, in a kind of embodiment in the present invention using the device of robot racing car, device further include:
Second target histories player's vehicle determining module, for selecting in each historical player vehicle that target position starts Grade historical player vehicle corresponding with current car race game player levels is taken, as target histories player's vehicle.
Optionally, in a kind of embodiment in the present invention using the device of robot racing car, target trajectory determining module 303, it is specifically used for according to target travel parameter, in predetermined racing track track, chooses the corresponding match of target travel parameter Road track obtains the corresponding target trajectory of target robot vehicle, wherein history driving parameters include: the position of vehicle, direction And speed.
Optionally, in a kind of embodiment in the present invention using the device of robot racing car, target trajectory determining module 303, it is specifically used for calculating the racing track track of the vehicle travelled according to target histories driving parameters according to target travel parameter, makees For the corresponding target trajectory of target robot vehicle, wherein history driving parameters include: position, direction and the speed of vehicle.
Another aspect, the embodiment of the invention discloses a kind of electronic equipment, as shown in Figure 4.Fig. 4 is the embodiment of the present invention A kind of electronic equipment structural schematic diagram, including processor 401, communication interface 402, memory 403 and communication bus 404, wherein Processor 401, communication interface 402, memory 403 complete mutual communication by communication bus 404;
Memory 403, for storing computer program;
Processor 401 when for executing the program stored on memory, realizes following methods step:
Obtain the target travel parameter of the target histories player's vehicle started in target position;
According to target travel parameter, determine the corresponding target trajectory of target robot vehicle, target robot vehicle be The robotic vehicle of target position starting;
Target travel parameter configuration is given to target robot vehicle, so that target robot vehicle is according to target travel parameter It is travelled along target trajectory.
The communication bus 404 that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus 404 can be divided into address bus, data/address bus, control bus etc..For Convenient for indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface 402 is for the communication between above-mentioned electronic equipment and other equipment.
Memory 403 may include random access memory (Random Access Memory, RAM), also may include Nonvolatile memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory 403 can also be that at least one is located remotely from the storage device of aforementioned processor 401.
Above-mentioned processor 401 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components.
In a kind of electronic equipment provided in an embodiment of the present invention, the target histories player's vehicle started in target position is obtained Target travel parameter determine the corresponding target trajectory of target robot vehicle by the target travel parameter, realize True racing track track is simulated for robotic vehicle.Target travel parameter configuration is given to the target robot vehicle, so that the mesh Scalar robot vehicle is travelled according to the target travel parameter along target trajectory, so that target robot vehicle is more played close to true The racing car operational process of family, to realize the sense of reality by the true multi-player race-car of robot simulation.
Another aspect, the embodiment of the invention discloses a kind of computer readable storage medium, computer readable storage mediums It is inside stored with computer program, when computer program is executed by processor, realizes in the above-mentioned method using robot racing car and appoints One method and step.
In a kind of computer readable storage medium provided in an embodiment of the present invention, the target started in target position is obtained The target travel parameter of historical player vehicle determines the corresponding target of target robot vehicle by the target travel parameter Track realizes and simulates true racing track track for robotic vehicle.Give target travel parameter configuration to the target robot vehicle , so that the target robot vehicle is travelled according to the target travel parameter along target trajectory, so that target robot vehicle is more The racing car operational process for sticking on nearly true player, to realize the sense of reality by the true multi-player race-car of robot simulation.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, method and step any in the above-mentioned method using robot racing car is realized.
In a kind of computer program product comprising instruction provided in an embodiment of the present invention, obtains and start in target position The target travel parameter of target histories player's vehicle determine that the target robot vehicle is corresponding by the target travel parameter Target trajectory, realize and simulate true racing track track for robotic vehicle.Give target travel parameter configuration to the target machine Device people's vehicle, so that the target robot vehicle is travelled according to the target travel parameter along target trajectory, so that target robot Vehicle is more close to the racing car operational process of true player, to realize through the true of the true multi-player race-car of robot simulation Sense.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.Computer program product Including one or more computer instructions.When loading on computers and executing computer program instructions, all or part of real estate Raw process or function according to the embodiment of the present invention.Computer can be general purpose computer, special purpose computer, computer network, Or other programmable devices.Computer instruction may be stored in a computer readable storage medium, or from a computer Readable storage medium storing program for executing to another computer readable storage medium transmit, for example, computer instruction can from a web-site, Computer, server or data center by wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as Infrared, wireless, microwave etc.) mode transmitted to another web-site, computer, server or data center.Computer Readable storage medium storing program for executing can be any usable medium or include one or more usable medium collection that computer can access At the data storage devices such as server, data center.Usable medium can be magnetic medium, (for example, floppy disk, hard disk, magnetic Band), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The above is merely preferred embodiments of the present invention, it is not intended to limit the scope of the present invention.It is all in this hair Any modification, equivalent replacement, improvement and so within bright spirit and principle, are included within the scope of protection of the present invention.

Claims (10)

1. a kind of method using robot racing car, which is characterized in that the described method includes:
Obtain the target travel parameter of the target histories player's vehicle started in target position;
According to the target travel parameter, the corresponding target trajectory of target robot vehicle, the target robot vehicle are determined For the robotic vehicle started in the target position;
The target travel parameter configuration is given to the target robot vehicle, so that the target robot vehicle is according to described Target travel parameter is travelled along the target trajectory.
2. the method according to claim 1 using robot racing car, which is characterized in that in the acquisition in target position Before the target travel parameter of target histories player's vehicle of starting, the method also includes:
Obtain the corresponding target racing track of current car race game;
The starting position that the target robot vehicle is determined in the target racing track, using the starting position as the mesh Cursor position.
3. the method according to claim 1 using robot racing car, which is characterized in that in the acquisition in target position Before the target travel parameter of target histories player's vehicle of starting, the method also includes:
In each historical player vehicle of target position starting, choose that grade is corresponding with the target robot vehicle class goes through History player's vehicle, as the target histories player vehicle.
4. the method according to claim 1 using robot racing car, which is characterized in that in the acquisition in target position Before the target travel parameter of target histories player's vehicle of starting, the method also includes:
In each historical player vehicle of target position starting, grade history corresponding with current car race game player levels is chosen Player's vehicle, as the target histories player vehicle.
5. the method according to claim 1 using robot racing car, which is characterized in that described according to the target travel Parameter determines the corresponding target trajectory of target robot vehicle, comprising:
According to the target travel parameter, in predetermined racing track track, the corresponding match of the target travel parameter is chosen Road track obtains the corresponding target trajectory of the target robot vehicle, wherein the history driving parameters include: vehicle Position, direction and speed.
6. the method according to claim 1 using robot racing car, which is characterized in that described according to the target travel Parameter determines the corresponding target trajectory of target robot vehicle, comprising:
According to the target travel parameter, the racing track track of the vehicle travelled according to the target histories driving parameters is calculated, is made For the corresponding target trajectory of the target robot vehicle, wherein the history driving parameters include: the position of vehicle, direction And speed.
7. a kind of device using robot racing car, which is characterized in that described device includes:
Target travel parameter acquisition module, for obtaining the target travel ginseng in target histories player's vehicle of target position starting Number;
Target trajectory determining module, for determining the corresponding target track of target robot vehicle according to the target travel parameter Mark, the target robot vehicle are the robotic vehicle started in the target position;
Target travel parameter configuration module, for giving the target travel parameter configuration to the target robot vehicle, so that The target robot vehicle is travelled according to the target travel parameter along the target trajectory.
8. the device according to claim 7 using robot racing car, which is characterized in that described device further include:
Target racing track obtains module, for obtaining the corresponding target racing track of current car race game;
Target position determining module will for determining the starting position of the target robot vehicle in the target racing track The starting position is as the target position.
9. the device according to claim 7 using robot racing car, which is characterized in that described device further include:
First object historical player vehicle determining module, in each historical player vehicle that target position starts, choose etc. Grade historical player vehicle corresponding with the target robot vehicle class, as the target histories player vehicle.
10. the device according to claim 7 using robot racing car, which is characterized in that described device further include:
Second target histories player's vehicle determining module, in each historical player vehicle that target position starts, choose etc. Grade historical player vehicle corresponding with current car race game player levels, as the target histories player vehicle.
CN201811161916.XA 2018-09-30 2018-09-30 Method and device for using robot racing car, electronic equipment and storage medium Active CN109240302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811161916.XA CN109240302B (en) 2018-09-30 2018-09-30 Method and device for using robot racing car, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811161916.XA CN109240302B (en) 2018-09-30 2018-09-30 Method and device for using robot racing car, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109240302A true CN109240302A (en) 2019-01-18
CN109240302B CN109240302B (en) 2022-04-22

Family

ID=65054947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811161916.XA Active CN109240302B (en) 2018-09-30 2018-09-30 Method and device for using robot racing car, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109240302B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114534244A (en) * 2020-11-18 2022-05-27 比亚迪股份有限公司 Racing car game method and system and car

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001212366A (en) * 2000-02-07 2001-08-07 Snk Corp Game updating system, game machine, and game adapter
US6632138B1 (en) * 1996-10-09 2003-10-14 Kabushiki Kaisha Sega Enterprises Game apparatus, game processing method, game execution method, and game system
US20050215327A1 (en) * 2004-03-24 2005-09-29 Weisel Charles W Jr Computer controlled car racing game
CN101065786A (en) * 2004-10-04 2007-10-31 Igt公司 Class II/Class II hybrid gaming machine, system and method
CN101221600A (en) * 2007-01-09 2008-07-16 株式会社万代南梦宫游戏 Game device, game process control method, and information storage medium
WO2011088279A1 (en) * 2010-01-15 2011-07-21 Cfph, Llc Electrical computers and digital processing systems involving interprogram or interprocess communication regarding amusement devices and games
US20140051489A1 (en) * 2012-08-16 2014-02-20 Ford Global Technologies, Llc Method and Apparatus for Remote Racing
CN206228920U (en) * 2016-11-24 2017-06-09 广州市龙程电子有限公司 A kind of unlimited driving platforms of 9DVR
CN107391590A (en) * 2017-06-27 2017-11-24 北京金山安全软件有限公司 Theme list updating method and device, electronic equipment and storage medium
CN108159705A (en) * 2017-12-06 2018-06-15 腾讯科技(深圳)有限公司 Matching process, device, storage medium and the electronic device of object
JP2018126570A (en) * 2018-04-13 2018-08-16 株式会社タイトー Game system
CN108463273A (en) * 2015-11-04 2018-08-28 Cy游戏公司 Mobile history based on player carries out the games system etc. of the path finding of non-gaming person role
CN108465244A (en) * 2018-03-30 2018-08-31 腾讯科技(深圳)有限公司 AI method for parameter configuration, device, equipment and storage medium for racing class AI models
US20210177361A1 (en) * 2013-06-21 2021-06-17 Intuity Medical, Inc. Analyte monitoring system with audible feedback

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6632138B1 (en) * 1996-10-09 2003-10-14 Kabushiki Kaisha Sega Enterprises Game apparatus, game processing method, game execution method, and game system
JP2001212366A (en) * 2000-02-07 2001-08-07 Snk Corp Game updating system, game machine, and game adapter
US20050215327A1 (en) * 2004-03-24 2005-09-29 Weisel Charles W Jr Computer controlled car racing game
CN101065786A (en) * 2004-10-04 2007-10-31 Igt公司 Class II/Class II hybrid gaming machine, system and method
CN101221600A (en) * 2007-01-09 2008-07-16 株式会社万代南梦宫游戏 Game device, game process control method, and information storage medium
WO2011088279A1 (en) * 2010-01-15 2011-07-21 Cfph, Llc Electrical computers and digital processing systems involving interprogram or interprocess communication regarding amusement devices and games
US20140051489A1 (en) * 2012-08-16 2014-02-20 Ford Global Technologies, Llc Method and Apparatus for Remote Racing
US20210177361A1 (en) * 2013-06-21 2021-06-17 Intuity Medical, Inc. Analyte monitoring system with audible feedback
CN108463273A (en) * 2015-11-04 2018-08-28 Cy游戏公司 Mobile history based on player carries out the games system etc. of the path finding of non-gaming person role
CN206228920U (en) * 2016-11-24 2017-06-09 广州市龙程电子有限公司 A kind of unlimited driving platforms of 9DVR
CN107391590A (en) * 2017-06-27 2017-11-24 北京金山安全软件有限公司 Theme list updating method and device, electronic equipment and storage medium
CN108159705A (en) * 2017-12-06 2018-06-15 腾讯科技(深圳)有限公司 Matching process, device, storage medium and the electronic device of object
CN108465244A (en) * 2018-03-30 2018-08-31 腾讯科技(深圳)有限公司 AI method for parameter configuration, device, equipment and storage medium for racing class AI models
JP2018126570A (en) * 2018-04-13 2018-08-16 株式会社タイトー Game system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LUIGI CARDAMONE,等: "Learning to Drive in the Open Racing Car Simulator Using Online Neuroevolution", 《IEEE TRANSACTIONS ON COMPUTATIONAL INTELLIGENCE AND AI IN GAMES》 *
朱英哲,等: "手机游戏中移动操控交互方式设计简析", 《计算机与应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114534244A (en) * 2020-11-18 2022-05-27 比亚迪股份有限公司 Racing car game method and system and car

Also Published As

Publication number Publication date
CN109240302B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN109814955B (en) Method and device for determining formation capacity and electronic equipment
JP5814993B2 (en) Game system, server system, and program
CN108463273A (en) Mobile history based on player carries out the games system etc. of the path finding of non-gaming person role
CN107335220B (en) Negative user identification method and device and server
KR101784185B1 (en) Screen Golf System for providing Play with a Real Player, and a Method for providing a Golf Game Service with the same
US20140349723A1 (en) System for providing interactive game using a plurality of game contents, and method and program using the system
KR101022503B1 (en) Apparatus and method for production of user generated golfcourse and virtual golf simulation method using the golfcourse
US20160110963A1 (en) System and method for dynamically valuating players during a fantasy draft
US11117053B2 (en) Node based world mapping for finite, depth first search
CN108619722A (en) The route indicating means and device of race games
CN113962390B (en) Method for constructing diversified search strategy model based on deep reinforcement learning network
JP2023502072A (en) Server-based individual play time estimation for game activity
CN104750716A (en) Social network site friend recommendation method and social network site friend recommendation device
CN109240302A (en) Method and device for using robot racing car, electronic equipment and storage medium
US7980931B1 (en) Social networking methods using color pair personality profiles
US9700805B2 (en) System and method for automated fantasy drafting
KR20210032338A (en) Game service method and system for providing online board game using character
KR20160038909A (en) Game service method and system for providing online board game using character
TW202131702A (en) Method of providing one or more sets of graphics parameters, a computer executing a program implementing the method and a non-transitory computer-readable medium comprising instructions to perform the method
US9072970B2 (en) System and method for valuating a player in a fantasy draft based on user-defined league rules
US20140349722A1 (en) System for providing competition game using plurality of game contents, and method and program using the system
CN113253976B (en) Game record analysis-based research and development module construction method and system
CN109358620A (en) Method and device for using robot racing car, electronic equipment and storage medium
US8951107B2 (en) System and method for non-sequential automated fantasy drafting
JP2009268855A (en) Score inputting system

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
GR01 Patent grant
GR01 Patent grant