CN109240302B - 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
CN109240302B
CN109240302B CN201811161916.XA CN201811161916A CN109240302B CN 109240302 B CN109240302 B CN 109240302B CN 201811161916 A CN201811161916 A CN 201811161916A CN 109240302 B CN109240302 B CN 109240302B
Authority
CN
China
Prior art keywords
target
vehicle
historical player
historical
track
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.)
Active
Application number
CN201811161916.XA
Other languages
Chinese (zh)
Other versions
CN109240302A (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

Images

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)
  • Toys (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (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

Method and device for using robot racing car, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for using a robot racing car, an electronic device, and a storage medium.
Background
With the development of computer technology, online games have been developed rapidly, and in order to meet the demands of different users, various types of online games have appeared, such as: fighting games, formative games, music games, shooting games, role-playing, racing games, etc.
In the existing racing game, under the condition of matching and fighting, if the real player can not be matched, the robot can run instead, the track of the track needs to be simulated for the robot, so that the target robot vehicle runs along the track of the track, and the track of the track simulated for the robot is the central line of the track. The method for using the robot racing car specifically comprises the following steps: in the course of making the game map, the course centerline is marked so that the target robotic vehicle travels along the course centerline.
The inventors have found that in existing methods of using robotic racing, the target robotic vehicle can only travel along the center line of the track, without the randomness of the real player race and the lack of realism of the battle.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method, an apparatus, an electronic device and a storage medium for using a robot racing car, so as to achieve randomness and sense of reality for simulating a real player race. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention discloses a method for using a robot racing car, where the method includes:
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.
Optionally, before the obtaining target driving parameters of the target historical player vehicle launched at the target location, the method further comprises:
obtaining a target track corresponding to a current racing game;
determining a starting position of the target robotic vehicle in the target course, the starting position being the target position.
Optionally, before the obtaining target driving parameters of the target historical player vehicle launched at the target location, the method further comprises:
and selecting the historical player vehicle with the grade corresponding to the grade of the target robot vehicle from the historical player vehicles started at the target position as the target historical player vehicle.
Optionally, before the obtaining target driving parameters of the target historical player vehicle launched at the target location, the method further comprises:
and selecting the historical player vehicle with the grade corresponding to the grade of the current racing game player from the historical player vehicles started at the target position as the target historical player vehicle.
Optionally, the determining a target trajectory corresponding to the target robot vehicle according to the target driving parameter includes:
according to the target driving parameters, selecting a track corresponding to the target driving parameters from the predetermined track tracks to obtain a target track corresponding to the target robot vehicle, wherein the historical driving parameters comprise: the position, orientation, and speed of the vehicle.
Optionally, the determining a target trajectory corresponding to the target robot vehicle according to the target driving parameter includes:
according to the target driving parameters, calculating the track of the vehicle driven according to the target historical driving parameters as the target track corresponding to the target robot vehicle, wherein the historical driving parameters comprise: the position, orientation, and speed of the vehicle.
In a second aspect, an embodiment of the present invention discloses an apparatus for using a robot racing car, the apparatus including:
a target driving parameter acquiring module for acquiring target driving parameters of a target historical player vehicle started at a target position;
the target track determining module is used for 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 the target driving parameter configuration module is used for configuring the target driving parameters to the target robot vehicle so as to enable the target robot vehicle to drive along the target track according to the target driving parameters.
Optionally, the apparatus further comprises:
the target track obtaining module is used for obtaining a target track corresponding to the current racing game;
a target position determining module for determining a starting position of the target robotic vehicle in the target course, the starting position being the target position.
Optionally, the apparatus further comprises:
a first target historical player vehicle determination module to select, from among historical player vehicles launched at a target location, a historical player vehicle having a rank corresponding to the rank of the target robotic vehicle as the target historical player vehicle.
Optionally, the apparatus further comprises:
and the second target historical player vehicle determining module is used for selecting the historical player vehicle with the grade corresponding to the grade of the current racing game player from all the historical player vehicles started at the target position as the target historical player vehicle.
Optionally, the target track determining module is specifically configured to select, according to the target driving parameter, a track corresponding to the target driving parameter from predetermined track tracks, so as to obtain a target track corresponding to the target robot vehicle, where the historical driving parameters include: the position, orientation, and speed of the vehicle.
Optionally, the target track determining module is specifically configured to calculate, according to the target driving parameter, a track of a vehicle that is driven according to the target historical driving parameter, as a target track corresponding to the target robotic vehicle, where the historical driving parameter includes: the position, orientation, and speed of the vehicle.
In another aspect, an embodiment of the present invention discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of any one of the above-described methods for using a robot racing car when executing the program stored in the memory.
In yet another aspect, an embodiment of the present invention discloses a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any of the above-mentioned methods for using a robot racing car.
In the method, the device, the electronic equipment and the storage medium for using the robot racing car, provided by the embodiment of the invention, the target driving parameters of the target historical player car started at the target position are obtained, and the target track corresponding to the target robot car is determined according to the target driving parameters, so that the real track is simulated for the robot car. The target running parameters are configured for the target robot vehicle, so that the target robot vehicle runs along the target track according to the target running parameters, the target robot vehicle is closer to the running process of the racing car of the real player, and the reality sense of simulating the racing car of the real player through the robot is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for using a robotic racing car in accordance with an embodiment of the present invention;
FIG. 2 is a flow chart of a method for determining a target position in a method for using a robotic car race according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus for racing with a robot according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
In a first aspect, an embodiment of the present invention discloses a method for using a robot racing car, as shown in fig. 1. Fig. 1 is a flowchart of a method for using a robot racing car according to an embodiment of the present invention, the method including:
s101, target running parameters of a target history player vehicle started at a target position are acquired.
In the embodiment of the present invention, in order to make the running of the robot vehicle closer to the running of the real player vehicle, the target running parameters of the target historical player vehicle started at the target position are acquired in the historical data of the client as the running parameters of the target robot vehicle. The target location is a location in a race map where the target robotic vehicle and a player vehicle in a race with the target robotic vehicle are located, the target robotic vehicle being activated. The target running parameter includes: the target is historical of the position, orientation, and speed of the player's vehicle. The target robotic vehicle in embodiments of the present invention is a robotic vehicle that is launched at a target location.
Specifically, the starting position of the track on which the target robot vehicle is located in the race map on which the target robot vehicle is located is set as the target position. And further selecting one historical player vehicle from the historical player vehicles started at the target position as a target historical player vehicle according to a preset rule in the historical racing data, wherein the preset rule can be that the historical player vehicle with the grade corresponding to the grade of the current racing game player is selected from the historical player vehicles started at the target position as the target historical player vehicle, or the preset rule can be that the historical player vehicle with the grade corresponding to the grade of the target robot vehicle is selected from the historical player vehicles started at the target position as the target historical player vehicle. And determining the running parameters of the target historical player vehicle as target running parameters.
Or, in the historical competition data, one historical player vehicle is selected from the historical player vehicles started at the target position as the target historical player vehicle, and the running parameter of the target historical player vehicle is acquired as the target running parameter.
For example, the position, orientation, speed of the target historical player vehicle is obtained a preset number of times per second.
And S102, determining a target track corresponding to a target robot vehicle according to the target driving parameters, wherein the target robot vehicle is started at a target position.
In an embodiment of the present invention, a target trajectory of a target robotic vehicle is determined according to determined target driving parameters in order to bring the target robotic vehicle closer to the driving process of a real player's vehicle.
Specifically, the driving track of the whole competition process of the historical player vehicle is determined as the target track of the target robot vehicle through the acquired historical driving parameters of the historical player vehicle.
Optionally, the determining the target trajectory corresponding to the target robotic vehicle according to the target driving parameters in S102 may include:
according to the target driving parameters, selecting the track corresponding to the target driving parameters from the predetermined track to obtain the target track corresponding to the target robot vehicle, wherein the historical driving parameters comprise: the position, orientation, and speed of the vehicle.
In one embodiment of this step, a track trajectory corresponding to the target driving parameter may be selected from the predetermined track trajectories as a target trajectory.
Specifically, during the running process of each historical player vehicle, a corresponding track is fitted according to the historical running parameters of the historical player vehicle, and then each track is stored in a database according to the corresponding track. In this step, among the previously stored track trajectories, a track trajectory corresponding to the target travel parameter is selected from tracks on which the target historical player vehicle is located, and the track trajectory is used as the target trajectory of the target robot.
Alternatively, the determining the target trajectory corresponding to the target robotic vehicle according to the historical driving parameters in S102 may include:
according to the target driving parameters, calculating the track of the vehicle driven according to the target historical driving parameters as the target track corresponding to the target robot vehicle, wherein the historical driving parameters comprise: the position, orientation, and speed of the vehicle.
In one embodiment of this step, the track trajectory corresponding to the target driving parameter may be calculated in real time as the target trajectory.
Specifically, the target driving parameters of the target historical player vehicle are acquired every second for preset times according to the time sequence, and the target driving parameters are the position, the direction and the speed of the target historical player vehicle.
And fitting a track of the track through the target driving parameters acquired in real time, and taking the track of the track as the target track of the target robot.
And S103, 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.
And allocating the target driving parameters acquired in the step S101 to the target robotic vehicle in a time sequence, so that the target robotic vehicle drives along the target track according to the target driving parameters.
In the method for using the robot racing car provided by the embodiment of the invention, the target running parameters of the target historical player car started at the target position are obtained, and the target track corresponding to the target robot car is determined according to the target running parameters, so that the real track is simulated for the robot car. The target running parameters are configured for the target robot vehicle, so that the target robot vehicle runs along the target track according to the target running parameters, the target robot vehicle is closer to the running process of the racing car of the real player, and the reality sense of simulating the racing car of the real player through the robot is realized.
Alternatively, in one embodiment of the method of using robotic racing of the present invention, before obtaining target driving parameters of a target historical player vehicle launched at a target location at S101, a flow chart of a method of determining a target location may be as shown in fig. 2, including:
s201, obtaining a target track corresponding to the current racing game.
The target track of the step is a track map corresponding to the current racing game. In this step, a track map corresponding to the level or level of the current racing game is obtained, and the track map is used as the target track in the embodiment of the present invention.
S202, the starting position of the target robotic vehicle is determined in the target course, and the starting position is set as the target position.
The starting position of the target robotic vehicle is determined in the target course determined in S201, and the starting position of the target robotic vehicle is set as the target position.
Specifically, the track corresponding to the target robot vehicle is determined in the target track, and then the starting position of the track corresponding to the target robot vehicle is determined by the starting position of each track in the target track, and the starting position is used as the target position.
Therefore, the target track corresponding to the target robot vehicle and the target position for starting the target robot vehicle can be determined, and the target historical player vehicle corresponding to the target robot vehicle can be screened from the historical player vehicles conveniently through the target position.
Optionally, in an embodiment of the method of the invention using robotic racing, before acquiring target driving parameters of a target historical player vehicle launched at a target location S101, the method further comprises:
and selecting the historical player vehicle with the grade corresponding to the grade of the target robot vehicle from the historical player vehicles started at the target position as the target historical player vehicle.
In this embodiment, a rule of correspondence may be set according to which a target historical player vehicle corresponding to the target robotic vehicle is determined. The ranking may be a target robotic vehicle ranking or a level of the target robotic vehicle, such as: high, medium, low.
When the rank is the target robotic vehicle rank and the correspondence rule is that the target robotic vehicle rank is the same as the target historical player vehicle rank, the target historical player vehicle can be determined as follows:
the method includes the steps of selecting historical player vehicles starting at the target position from historical player vehicles, selecting a historical player vehicle having the same level as the target robotic vehicle from the historical player vehicles, and selecting a historical player vehicle from the historical player vehicles having the same level as the target robotic vehicle as a target historical player vehicle.
For example, the target robotic vehicle is ranked 10, and the historical player vehicles that started at the target position of the target robotic vehicle are selected from among the historical player vehicles, and one historical player vehicle ranked 10 is selected from among the determined historical player vehicles as the target historical player vehicle ranked according to the target robotic vehicle. Or, the target robotic vehicle is ranked 10, and the historical player vehicles that are launched at the target position of the target robotic vehicle are selected from the historical player vehicles first, then the historical player vehicles ranked 10 are selected from the determined historical player vehicles, and finally the historical player vehicle that has the shortest or fastest average speed when taken is selected from the determined historical player vehicles ranked 10 as the target historical player vehicle corresponding to the target robotic vehicle rank.
When the rank is the target robotic vehicle rank and the correspondence rule is that the target robotic vehicle rank is lower than or higher than the target historical player vehicle rank by a preset rank, the target historical player vehicle may be determined as follows:
the method includes the steps of firstly, selecting historical player vehicles started at a target position from historical player vehicles, further selecting historical player vehicles with a grade lower than or higher than that of a target robot vehicle from the historical player vehicles, and selecting one historical player vehicle from the historical player vehicles with the grade lower than or higher than that of the target robot vehicle as a target historical player vehicle.
For example, the target robotic vehicle is ranked 10 and the preset rank is 2, and the historical player vehicles that are started at the target position of the target robotic vehicle are selected from the historical player vehicles, and one historical player vehicle with the rank 12 is selected from the determined historical player vehicles as the target historical player vehicle corresponding to the rank of the target robotic vehicle. Or, first, selecting each historical player vehicle starting at the target position of the target robot vehicle from the historical player vehicles, then selecting each historical player vehicle with the grade of 12 from the determined historical player vehicles, and finally selecting the historical player vehicle with the shortest or fastest average speed when being used from the determined historical player vehicles with the grade of 12 as the target historical player vehicle corresponding to the grade of the target robot vehicle.
Alternatively, the target robotic vehicle may be ranked 10 and the preset ranking 2, and the historical player vehicles that are launched at the target position of the target robotic vehicle may be selected from among the historical player vehicles, and one historical player vehicle ranked 8 may be selected from among the determined historical player vehicles as the target historical player vehicle ranked corresponding to the target robotic vehicle. Or, first, selecting each historical player vehicle starting at the target position of the target robot vehicle from the historical player vehicles, then selecting each historical player vehicle with the grade of 8 from the determined historical player vehicles, and finally selecting the historical player vehicle with the shortest or fastest average speed when being used from the determined historical player vehicles with the grade of 8 as the target historical player vehicle corresponding to the grade of the target robot vehicle.
When the grade is the level of the target robotic vehicle, for example: high, medium, low, with the rule of correspondence being that the target robotic vehicle class is the same as the target historical player vehicle class, the target historical player vehicle can be determined as follows:
the method includes the steps of selecting historical player vehicles starting at the target position from historical player vehicles, selecting a historical player vehicle having the same level as the target robotic vehicle from the historical player vehicles, and selecting a historical player vehicle from the historical player vehicles having the same level as the target robotic vehicle as a target historical player vehicle.
For example, when the level of the target robotic vehicle is high, the historical player vehicles that are started at the target position of the target robotic vehicle are selected from among the historical player vehicles, and one historical player vehicle having a high level is selected from among the determined historical player vehicles as the target historical player vehicle corresponding to the level of the target robotic vehicle. Or, the target robotic vehicle is ranked high, first selecting from the historical player vehicles each historical player vehicle that started at the target position of the target robotic vehicle, then selecting from the determined historical player vehicles each historical player vehicle ranked high, and finally selecting from the determined historical player vehicles ranked high the historical player vehicle that taken the shortest or fastest average speed as the target historical player vehicle corresponding to the target robotic vehicle rank.
When the grade is the level of the target robotic vehicle, for example: high, medium, low, the rule of correspondence is that the target historical player vehicle is the same with target robot vehicle grade, and this target historical player vehicle than this target robot vehicle comprehensive ranking low preset name time or high preset name time when, can follow the following mode and confirm target historical player vehicle:
the method comprises the steps of firstly selecting each historical player vehicle started at the target position from historical player vehicles, further selecting each historical player vehicle with the same grade as that of the target robot vehicle from the historical player vehicles, and finally selecting the historical player vehicle with the lower or higher comprehensive ranking than that of the target robot vehicle from the historical player vehicles with the same grade as that of the target robot vehicle as the target historical player vehicle.
For example, the target robotic vehicle is ranked high and the predetermined rank is 2, and the historical player vehicles that are started at the target position of the target robotic vehicle are selected from the historical player vehicles, and the historical player vehicles ranked high are selected from the determined historical player vehicles, and any historical player vehicle that is ranked 2 higher than the target robotic vehicle is selected from the determined historical player vehicles ranked high as the target historical player vehicle corresponding to the rank of the target robotic vehicle. Alternatively, the historical player vehicles that are started at the target position of the target robotic vehicle are selected from among the historical player vehicles, the historical player vehicle having a higher rank is selected from among the determined historical player vehicles, and any historical player vehicle having a lower overall rank than the target robotic vehicle by 2 is selected from among the determined historical player vehicles having a higher rank as the target historical player vehicle corresponding to the target robotic vehicle rank.
Therefore, according to the embodiment of the invention, the target historical player vehicle corresponding to the target robot vehicle can be determined according to the grade of the target robot vehicle, and the running process of the real player vehicle can be simulated by the target robot vehicle through the running parameters of the target historical player vehicle.
Optionally, in an embodiment of the method of the invention using robotic racing, before acquiring target driving parameters of a target historical player vehicle launched at a target location S101, the method further comprises:
and selecting the historical player vehicles with the levels corresponding to the levels of the current racing game players from the historical player vehicles started at the target position as the target historical player vehicles.
In this embodiment, a rule of correspondence may be set according to which a target historical player vehicle corresponding to the target robotic vehicle is determined. The ranking may be the current racing game player ranking or a level of the current racing game player, such as: high, medium, low.
When the rank is the current racing game player rank and the correspondence rule is that the target historical player vehicle rank is the same as the average rank of the current racing game player rank, the target historical player vehicle may be determined as follows:
the method comprises the steps of firstly obtaining the grade of each player of the current racing game, solving the average grade, selecting each historical player vehicle started at the target position from historical player vehicles, further selecting the historical player vehicle with the same average grade from the historical player vehicles, and selecting one historical player vehicle from the historical player vehicles with the same average grade as the target historical player vehicle.
For example, when the levels of the players of the current racing game are 7, 20, and 33 and the average level is 30, the historical player vehicles that are started at the target position of the target robot vehicle are selected from the historical player vehicles, and one historical player vehicle having the level of 30 is selected from the determined historical player vehicles as the target historical player vehicle corresponding to the level of the target robot vehicle. Or, the levels of the players of the current racing game are 7, 20 and 33, the average level is 30, the historical player vehicles starting at the target position of the target robot vehicle are selected from the historical player vehicles, then the historical player vehicles with the level of 30 are selected from the determined historical player vehicles, and finally the historical player vehicle with the shortest time or the fastest average speed is selected from the determined historical player vehicles with the level of 30 to serve as the target historical player vehicle corresponding to the level of the target robot vehicle.
When the rank is the rank of the current racing game player and the corresponding rule is that the rank of the target historical player vehicle is lower than the average rank of the ranks of the current racing game player by a preset rank or higher than the average rank, the target historical player vehicle can be determined as follows:
the method comprises the steps of firstly obtaining the grade of each player of a current racing game, solving an average grade and setting a preset grade, selecting each historical player vehicle started at a target position from historical player vehicles, further selecting the historical player vehicle lower than the average grade by the preset grade or higher than the average grade from the historical player vehicles, and selecting one historical player vehicle from the historical player vehicles lower than the average grade by the preset grade or higher than the average grade as a target historical player vehicle.
For example, when the levels of the players of the current racing game are 7, 20, and 33, the average level is 30, and the preset level is 2, the historical player vehicles that are started at the target position of the target robotic vehicle are selected from the historical player vehicles, and one historical player vehicle with the level of 28 is selected from the determined historical player vehicles as the target historical player vehicle corresponding to the level of the target robotic vehicle. Or, the grades of the players of the current racing game are 7, 20 and 33, the average grade is 30, and the preset grade is 2, the historical player vehicles started at the target position of the target robot vehicle are selected from the historical player vehicles, the historical player vehicles with the grade of 28 are selected from the determined historical player vehicles, and the historical player vehicle with the shortest taking time or the fastest average speed is selected from the determined historical player vehicles with the grade of 28 to serve as the target historical player vehicle corresponding to the grade of the target robot vehicle.
Or, the levels of the players of the current racing game are 7, 20 and 33, the average level is 30, and the preset level is 2, and the historical player vehicles started at the target position of the target robot vehicle are selected from the historical player vehicles firstly, and then one historical player vehicle with the level of 32 is selected from the determined historical player vehicles as the target historical player vehicle corresponding to the level of the target robot vehicle. Or, the levels of the players of the current racing game are 7, 20 and 33, the average level is 30, and the preset level is 2, the historical player vehicles started at the target position of the target robot vehicle are selected from the historical player vehicles, the historical player vehicles with the level of 32 are selected from the determined historical player vehicles, and the historical player vehicle with the shortest taking time or the fastest average speed is selected from the determined historical player vehicles with the level of 32 to serve as the target historical player vehicle corresponding to the level of the target robot vehicle.
When the level is the level of the current racing game player, the level is, for example: high, medium, low. When the rule of correspondence is that the target historical player vehicle grade is the highest grade in the current racing game player grade, the target historical player vehicle can be determined as follows:
the method comprises the steps of firstly obtaining the grades of all players of the current racing game, selecting all historical player vehicles started at the target position from historical player vehicles, further selecting the historical player vehicle with the highest grade identical to that of all the players of the current racing game from all the historical player vehicles, and selecting one historical player vehicle from the historical player vehicles with the highest grade identical to that of all the players of the current racing game as a target historical player vehicle.
For example, when the levels of the players of the current racing game are high, medium, and high, the historical player vehicles that are started at the target position of the target robotic vehicle are selected from the historical player vehicles, and one historical player vehicle having a high level is selected from the determined historical player vehicles as the target historical player vehicle corresponding to the level of the target robotic vehicle. Or, the levels of the players of the current racing game are high, medium and high, the historical player vehicles which are started at the target position of the target robot vehicle are selected from the historical player vehicles, then the historical player vehicles with the high levels are selected from the determined historical player vehicles, the average racing time or the average speed of the historical player vehicles with the high levels is calculated, and finally the historical player vehicle which is closest to the average time or the average speed is selected from the historical player vehicles with the high levels to be used as the target historical player vehicle corresponding to the level of the target robot vehicle.
Therefore, through the embodiment of the invention, the target historical player vehicle corresponding to the target robot vehicle can be determined according to the grade of each player of the current racing game, the running parameters of the target historical player vehicle ensure that the target robot vehicle can be matched with the running process of the current game player, and the reality and the irritation of the game are improved.
In a second aspect, an embodiment of the present invention discloses an apparatus for using a robot racing car, as shown in fig. 3. Fig. 3 is a schematic structural diagram of an apparatus for using a robot racing car according to an embodiment of the present invention, the apparatus including:
a target driving parameter acquiring module 301, configured to acquire a target driving parameter of a target historical player vehicle started at a target location;
a target trajectory determination module 302, configured to determine a target trajectory corresponding to a target robotic vehicle according to a target driving parameter, where the target robotic vehicle is a robotic vehicle started at a target position;
and a target driving parameter configuration module 303, configured to configure the target driving parameters to the target robotic vehicle, so that the target robotic vehicle drives along the target trajectory according to the target driving parameters.
In the device for using the robot racing car, provided by the embodiment of the invention, the target running parameters of the target historical player vehicle started at the target position are obtained, and the target track corresponding to the target robot vehicle is determined according to the target running parameters, so that the real track is simulated for the robot vehicle. The target running parameters are configured for the target robot vehicle, so that the target robot vehicle runs along the target track according to the target running parameters, the target robot vehicle is closer to the running process of the racing car of the real player, and the reality sense of simulating the racing car of the real player through the robot is realized.
Optionally, in an embodiment of the apparatus for using a robot race car according to the present invention, the apparatus further comprises:
the target track obtaining module is used for obtaining a target track corresponding to the current racing game;
and the target position determining module is used for determining the starting position of the target robot vehicle in the target track and taking the starting position as the target position.
Optionally, in an embodiment of the apparatus for using a robot race car according to the present invention, the apparatus further comprises:
a first target historical player vehicle determination module to select, from among historical player vehicles launched at the target location, a historical player vehicle having a rank corresponding to the rank of the target robotic vehicle as the target historical player vehicle.
Optionally, in an embodiment of the apparatus for using a robot race car according to the present invention, the apparatus further comprises:
and the second target historical player vehicle determining module is used for selecting the historical player vehicle with the grade corresponding to the grade of the current racing game player from all the historical player vehicles started at the target position as the target historical player vehicle.
Optionally, in an embodiment of the apparatus for racing a robot according to the present invention, the target track determining module 303 is specifically configured to select, according to the target driving parameter, a track corresponding to the target driving parameter from the predetermined track tracks, to obtain a target track corresponding to the target robot vehicle, where the historical driving parameters include: the position, orientation, and speed of the vehicle.
Optionally, in an embodiment of the apparatus for racing robots of the present invention, the target track determining module 303 is specifically configured to calculate, according to the target driving parameters, a track of the vehicle driven according to the target historical driving parameters as a target track corresponding to the target robotic vehicle, where the historical driving parameters include: the position, orientation, and speed of the vehicle.
In another aspect, an embodiment of the present invention discloses an electronic device, as shown in fig. 4. Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, which includes a processor 401, a communication interface 402, a memory 403, and a communication bus 404, where the processor 401, the communication interface 402, and the memory 403 complete communication with each other through the communication bus 404;
a memory 403 for storing a computer program;
the processor 401, when executing the program stored in the memory, is configured to implement the following method 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 a robot vehicle started at a 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 communication bus 404 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 404 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 402 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory 403 may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory 403 may also be at least one storage device located remotely from the processor 401.
The Processor 401 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the electronic device provided by the embodiment of the invention, the target driving parameters of the target historical player vehicle started at the target position are acquired, and the target track corresponding to the target robot vehicle is determined according to the target driving parameters, so that the real track is simulated for the robot vehicle. The target running parameters are configured for the target robot vehicle, so that the target robot vehicle runs along the target track according to the target running parameters, the target robot vehicle is closer to the running process of the racing car of the real player, and the reality sense of simulating the racing car of the real player through the robot is realized.
In yet another aspect, an embodiment of the present invention discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the method steps of any one of the above-mentioned methods for using a robot racing car are implemented.
In a computer-readable storage medium provided by an embodiment of the present invention, target driving parameters of a target historical player vehicle started at a target position are obtained, and a target trajectory corresponding to the target robotic vehicle is determined according to the target driving parameters, so that a real track trajectory is simulated for the robotic vehicle. The target running parameters are configured for the target robot vehicle, so that the target robot vehicle runs along the target track according to the target running parameters, the target robot vehicle is closer to the running process of the racing car of the real player, and the reality sense of simulating the racing car of the real player through the robot is realized.
In a further embodiment provided by the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, carry out the method steps of any of the above methods of using a robotic car race.
In the computer program product containing instructions provided by the embodiment of the invention, the target running parameters of the target historical player vehicle started at the target position are acquired, and the target track corresponding to the target robot vehicle is determined according to the target running parameters, so that the real track is simulated for the robot vehicle. The target running parameters are configured for the target robot vehicle, so that the target robot vehicle runs along the target track according to the target running parameters, the target robot vehicle is closer to the running process of the racing car of the real player, and the reality sense of simulating the racing car of the real player through the robot is realized.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method of using a robotic racing car, the method comprising:
obtaining a target track corresponding to a current racing game;
determining a starting position of a target robot vehicle in the target track, and taking the starting position as a target position;
obtaining target driving parameters of a target historical player vehicle started at the target position;
determining a target track corresponding to the target robot vehicle according to the target driving parameters, wherein the target robot vehicle is a robot vehicle started at the target position, and the target driving parameters comprise: the position, heading, and speed of the vehicle;
configuring the target driving parameters to the target robotic vehicle to cause the target robotic vehicle to drive along the target trajectory in accordance with the target driving parameters;
wherein, according to the target driving parameter, determining the target track corresponding to the target robot vehicle comprises:
according to the target driving parameters, selecting a track corresponding to the target driving parameters from the predetermined track tracks to obtain a target track corresponding to the target robot vehicle;
or
And calculating the track of the vehicle running according to the target historical running parameters according to the target running parameters, and taking the track as the target track corresponding to the target robot vehicle.
2. The method of using robotic racing of claim 1, wherein prior to said obtaining target driving parameters for a target historical player vehicle launched at a target location, the method further comprises:
and selecting the historical player vehicle with the grade corresponding to the grade of the target robot vehicle from the historical player vehicles started at the target position as the target historical player vehicle.
3. The method of using robotic racing of claim 1, wherein prior to said obtaining target driving parameters for a target historical player vehicle launched at a target location, the method further comprises:
and selecting the historical player vehicle with the grade corresponding to the grade of the current racing game player from the historical player vehicles started at the target position as the target historical player vehicle.
4. An apparatus for using a robotic car race, the apparatus comprising:
the target track obtaining module is used for obtaining a target track corresponding to the current racing game;
a target position determination module for determining a starting position of a target robotic vehicle in the target course, the starting position being a target position;
a target driving parameter obtaining module for obtaining target driving parameters of a target historical player vehicle started at the target position;
a target track determining module, configured to determine a target track corresponding to the target robotic vehicle according to the target driving parameter, where the target robotic vehicle is a robotic vehicle started at the target position, and the target driving parameter includes: the position, heading, and speed of the vehicle;
a target driving parameter configuration module, configured to configure the target driving parameters to the target robotic vehicle, so that the target robotic vehicle drives along the target trajectory according to the target driving parameters;
the target track determination module is specifically configured to:
according to the target driving parameters, selecting a track corresponding to the target driving parameters from the predetermined track tracks to obtain a target track corresponding to the target robot vehicle;
or
And calculating the track of the vehicle running according to the target historical running parameters according to the target running parameters, and taking the track as the target track corresponding to the target robot vehicle.
5. The apparatus for using robot racing car according to claim 4, further comprising:
a first target historical player vehicle determination module to select, from among historical player vehicles launched at a target location, a historical player vehicle having a rank corresponding to the rank of the target robotic vehicle as the target historical player vehicle.
6. The apparatus for using robot racing car according to claim 4, further comprising:
and the second target historical player vehicle determining module is used for selecting the historical player vehicle with the grade corresponding to the grade of the current racing game player from all the historical player vehicles started at the target position as the target historical player vehicle.
7. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-3.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
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 CN109240302A (en) 2019-01-18
CN109240302B true 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)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221600A (en) * 2007-01-09 2008-07-16 株式会社万代南梦宫游戏 Game device, game process control method, and information storage medium
CN108159705A (en) * 2017-12-06 2018-06-15 腾讯科技(深圳)有限公司 Matching process, device, storage medium and the electronic device of object
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

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW394702B (en) * 1996-10-09 2000-06-21 Sega Enterprises Kk Player, solution and play implementation and play system
JP3302993B2 (en) * 2000-02-07 2002-07-15 株式会社プレイモア Game update system and game console
US7402106B2 (en) * 2004-03-24 2008-07-22 Bay Tek Games, Inc. Computer controlled car racing game
CN101065786A (en) * 2004-10-04 2007-10-31 Igt公司 Class ii/class iii hybrid gaming machine, system and methods
US20110177862A1 (en) * 2010-01-15 2011-07-21 Lee Amaitis Electrical computers and digital processing systems involving interprogram or interprocess communication regarding amusement devices and games
US9248378B2 (en) * 2012-08-16 2016-02-02 Ford Global Technologies, Llc Method and apparatus for remote racing
WO2014205412A1 (en) * 2013-06-21 2014-12-24 Intuity Medical, Inc. Analyte monitoring system with audible feedback
CN206228920U (en) * 2016-11-24 2017-06-09 广州市龙程电子有限公司 A kind of unlimited driving platforms of 9DVR
CN107391590B (en) * 2017-06-27 2020-12-18 北京金山安全软件有限公司 Theme list updating method and device, electronic equipment and storage medium
JP6637102B2 (en) * 2018-04-13 2020-01-29 株式会社タイトー Game system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101221600A (en) * 2007-01-09 2008-07-16 株式会社万代南梦宫游戏 Game device, game process control method, and information storage medium
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
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

Also Published As

Publication number Publication date
CN109240302A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
US11504633B2 (en) Machine-learned trust scoring for player matchmaking
US11130049B2 (en) Entertainment system for performing human intelligence tasks
US9993734B2 (en) Player model
US11468738B2 (en) System and method for playing online game
US8944903B2 (en) Game providing device and system for providing a game including a moving object along a path
CN106815514A (en) A kind of man-machine recognition methods and device
KR102244777B1 (en) Method and system for promoting player character of sports game using dualized space
CN109240302B (en) Method and device for using robot racing car, electronic equipment and storage medium
CN111659125A (en) Game-based friend recommendation method and device and computer-readable storage medium
CN109525585B (en) Method for pushing information, method and device for controlling presentation of content
IL275933B2 (en) System and method for playing online game
KR102578016B1 (en) Method and system for providing content based on user response and non-transitory computer readable recording medium
CN113253976B (en) Game record analysis-based research and development module construction method and system
CN115845394A (en) Model training method, game-to-game player matching method, medium, and device
KR101996034B1 (en) Method and server for suggesting friend in game program
US20150141151A1 (en) System for game creation and execution
KR20190120481A (en) Method and system for joining battle worked in process
KR102019428B1 (en) Method and apparatus for organizing a game party
CN114365157A (en) State simulator for reinforcement learning model
CN116139500A (en) Game resource giving method and related device based on voice outbound
CN116236793A (en) Method, device, electronic equipment, medium and product for recommending friends
CN106492462A (en) A kind of racer toy vehicles management method and local management server
CN105117911A (en) Information verification method and device

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