CN109147091B - Method, device and equipment for processing data of unmanned vehicle and storage medium - Google Patents

Method, device and equipment for processing data of unmanned vehicle and storage medium Download PDF

Info

Publication number
CN109147091B
CN109147091B CN201810997644.0A CN201810997644A CN109147091B CN 109147091 B CN109147091 B CN 109147091B CN 201810997644 A CN201810997644 A CN 201810997644A CN 109147091 B CN109147091 B CN 109147091B
Authority
CN
China
Prior art keywords
file
message
data
block
channel
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
CN201810997644.0A
Other languages
Chinese (zh)
Other versions
CN109147091A (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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN202210344470.4A priority Critical patent/CN114780493A/en
Priority to CN201810997644.0A priority patent/CN109147091B/en
Publication of CN109147091A publication Critical patent/CN109147091A/en
Application granted granted Critical
Publication of CN109147091B publication Critical patent/CN109147091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for processing unmanned vehicle data. The method comprises the following steps: accessing a target file associated with the data reading instruction; selecting a target message block matched with the data reading instruction from all message blocks in the target file according to the file header and the file index of the target file; and reading the message content included in the target message block. According to the embodiment of the invention, the information content in the information block of the target file is read, so that the historical operating data of the unmanned vehicle system can be effectively read, the traceability of the operating data of the unmanned vehicle system is ensured, and a basis is provided for the analysis of the later data and the improvement of the system.

Description

Method, device and equipment for processing data of unmanned vehicle and storage medium
Technical Field
The embodiment of the invention relates to the technical field of unmanned vehicles, in particular to a method, a device, equipment and a storage medium for processing unmanned vehicle data.
Background
Along with the development of science and technology, more and more intelligent equipment is in the middle of pouring into people's life to improve people's quality of life and use experience, unmanned car is also one of them.
The unmanned vehicle integrates equipment such as a radar, a camera, satellite positioning, autonomous navigation and various sensors, and in the driving process of the unmanned vehicle, a user only needs to input a destination address to an unmanned vehicle system, the unmanned vehicle can autonomously position, determine a navigation route, automatically identify information such as a traffic sign and road conditions, and is driven to safely drive to the destination address through a large amount of data information. The data input into the unmanned vehicle system is original data information transmitted by each sensor or electronic equipment, and the unmanned vehicle system outputs control data of the unmanned vehicle through calculation so as to ensure that the unmanned vehicle adjusts a driving mode according to real-time road conditions.
However, since the information in the real-world environment changes from time to time, the operational data in the corresponding unmanned vehicle system is also unique and non-reproducible. Therefore, effective reading of the historical operation data of the unmanned vehicle system is necessary for analysis of the data and improvement of the unmanned vehicle.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for processing unmanned vehicle data, which can effectively read data files in an unmanned vehicle system.
In a first aspect, an embodiment of the present invention provides a method for processing unmanned vehicle data, including:
accessing a target file associated with the data reading instruction;
selecting a target message block matched with the data reading instruction from all message blocks in the target file according to the file header and the file index of the target file;
and reading the message content included in the target message block.
In a second aspect, an embodiment of the present invention provides an apparatus for processing unmanned vehicle data, including:
the file access module is used for accessing a target file associated with the data reading instruction;
a message block determining module, configured to select a target message block matching the data reading instruction from message blocks included in the target file according to the file header and the file index of the target file;
and the message content reading module is used for reading the message content included in the target message block.
In a third aspect, an embodiment of the present invention provides a computer device, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing the unmanned vehicle data according to any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for processing unmanned vehicle data according to any embodiment of the present invention.
According to the embodiment of the invention, the target file associated with the data reading instruction is accessed, and the target message block matched with the data reading instruction is selected from the message blocks in the target file according to the file header and the file index in the target file, so that the message content in the target message block is read. According to the embodiment of the invention, the information content in the information block of the target file is read, so that the historical operating data of the unmanned vehicle system can be effectively read, the traceability of the operating data of the unmanned vehicle system is ensured, and a basis is provided for the analysis of the later data and the improvement of the system.
Drawings
Fig. 1 is a flowchart of a method for processing data of an unmanned vehicle according to an embodiment of the present invention;
fig. 2 is a diagram illustrating an example of a data format of a message block according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a data format and data reading of a file according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for processing data of an unmanned aerial vehicle according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a processing device for unmanned vehicle data according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a method for processing unmanned vehicle data according to an embodiment of the present invention, where the embodiment is applicable to a case where a history message is read from a file that is pre-recorded for unmanned vehicle system operation data, and the method may be executed by an unmanned vehicle data processing device. The method specifically comprises the following steps:
and S110, accessing a target file associated with the data reading instruction.
In the specific embodiment of the invention, a data recording device (recorder) can be integrated in the unmanned vehicle system and used for recording message data generated when the unmanned vehicle system operates, and generating and storing an independent file. Correspondingly, when a user or a worker needs to inquire the historical data recorded in advance in the unmanned vehicle system, a data reading instruction can be sent to the unmanned vehicle system or other memories in which the storage file is copied or transmitted, so that the historical data can be accessed.
Specifically, the storage file in this embodiment may include a file header, the file header may include a plurality of pieces of header data for describing file attributes, the length of the file header is fixed, the length of each piece of header data of the file header is fixed, and the length of the file header is greater than the sum of the lengths of each piece of header data. Each piece of header data in the header may be description information of a message stored in the file, for example: the recording method comprises the following steps of starting recording time, ending recording time, message block information, channel block information, file generation threshold information, block generation threshold information, version number and other attribute information. When reading the file, the summary information of the file can be obtained according to the information in the file header. Normally, file attribute information to be written in a file header is predetermined, and when a file is created by data recording, header data corresponding to the file attribute is initialized in the file header according to the predetermined specification, and the file header is refreshed according to the written data. Based on the fact that the length of the file header is larger than the sum of the lengths of all pieces of header data, a position is reserved in the file header for later-stage file expansion, for example, certain header data are added during version upgrading, but the fact that header data information in an old version can be normally used can be still guaranteed, and the expansibility and the universality of the file are improved.
In this embodiment, the data reading instruction may include at least one of information such as a start recording time, an end recording time, message block information, channel block information, or version number of a message to be read. Correspondingly, the file corresponding to the file header with the matched information can be used as the target file according to the information included in the data reading instruction and the file header information of the file, so that the target file associated with the data reading instruction can be accessed.
Illustratively, it is prescribed in advance that the recording start time of the file is written in the file header of the file. Suppose that the data reading instruction indicates to read the message in a certain specific time period, and then the file meeting the specific time period is determined as the target file according to the time information contained in the data reading instruction and the file header information of each file.
And S120, selecting a target message block matched with the data reading instruction from all message blocks included in the target file according to the file header and the file index of the target file.
In the embodiment of the present invention, the file may further include a file body and a file index. The file body records data of the unmanned vehicle system during operation. Specifically, the file body may be composed of a plurality of data blocks, the data blocks may include message blocks and channel blocks, and the number of the message blocks or the channel blocks is one or more. The message block records a plurality of monomer messages generated and transmitted during the operation of the unmanned vehicle system in a certain time period, and each monomer message is added with a corresponding time point and a corresponding channel identifier. The time point refers to the generation time or the transmission time of the corresponding message; the channel refers to a carrier for transmitting and playing messages, corresponding message content can be obtained through playing the message-corresponding channel, and the channel identifier refers to unique identification information that can point to the channel, such as a channel name. Correspondingly, the channel block records the channel used by the unmanned vehicle system at the current moment for transmitting the message and the attribute information thereof, and the channel block at least may include a channel name, a channel type and a channel explanation, and may also include corresponding time information. And then according to the time point and the channel identification added in the single message, the channel corresponding to the message and the attribute information thereof can be found from the channel module for calling when the message is played.
Specifically, the data block may include a block header, block information, and a block body. The block header may include a plurality of pieces of data information for describing attributes of messages in the block, the length of the block header of the data block in the same file is fixed, and after the data block is written in the file, the information in the data block is fixed, unchangeable, and unadditionable. In order to improve the readability of the data information in the block header under any condition, the non-serialized original data information is recorded in the block header, and the non-serialized original data information may include information such as a start recording time, an end recording time, and a block generation threshold. And secondly, the block information is the serialized representation of the data information in the block head, the storage space occupied by the original data information is reduced in a binary data form, and meanwhile, the compatibility of the data block and the unmanned vehicle system is improved, so that the data can be conveniently stored and read in the unmanned vehicle system. Finally, structured data information is recorded in the block. The message block records a structured message, the message may specifically include a plurality of individual messages, and each individual message is appended with a corresponding time point and a channel identifier; the channel used at the current time and the attribute information thereof are recorded in the block body of the channel block.
It should be noted that when there is a little damage in the block information, the block information can be recovered according to the original data in the block header to ensure the normal reading of the data block by the unmanned vehicle system.
Fig. 2 is an exemplary diagram of a data format of a message block. Original data of the message block attribute information are recorded in the block header, so that the readability of the data and the recoverability of the data in the block information are improved; serialized original data are recorded in the block information, so that the compatibility with an unmanned vehicle system is improved; a plurality of pieces of monomer information are recorded in the block.
In this embodiment, the file index records index information of each data block in the file body. Specifically, the file index may include identification information, path information, time information, and the like of each message block or channel block. In addition, because the message data volume when the unmanned vehicle system operates is large, the message occupies a large memory space, and the rest attribute information occupies a small memory space, the file index can also include all information in the file body except the message, so that the data can be recovered when part of the data in the file is damaged.
Specifically, in this embodiment, after the target file is determined according to the data reading instruction, the corresponding target file may be found according to the path information included in the file header, and the information included in the data reading instruction is matched with the file index of the target file, so as to obtain the message block matched with the data reading instruction, and the message block is found as the target message block according to the path information of each message block in the file index.
For example, the present embodiment may determine a recording time period of data to be read according to the data reading instruction, and determine a message block identifier whose recording time belongs to the recording time period according to a file header and a file index of the target file, so as to use a message block associated with the message block identifier as the target message block.
And S130, reading the message content included in the target message block.
In the specific embodiment of the invention, as the single messages recorded in the block body of the message block are all structured message contents, the compatibility with the unmanned vehicle system is better. The message content included in the target message block can be read directly.
For example, fig. 3 is a schematic diagram of a data format and data reading of a file. As can be seen from the figure, the target file can be determined according to the matching degree between the file header of the file and the data reading instruction, and the target message block can be determined according to the matching degree between the file index and the data reading instruction when the target file is read, so that the message content under the path where the target message block is located can be read according to the path information in the file index.
It is worth noting that no channel will actually play and retrieve the content in the message, given that the channel is the carrier of the message. Therefore, after the content of the target message is read, the channel name contained in the single target message can be obtained, and the target channel and the channel attribute are determined from each channel block of the target file according to the channel name; and acquiring the channel content of the target message content from each channel block included in the target file according to the file index and the channel attribute. And then, the message content is played back according to the message content read from the target message block and the channel content of the message content.
In addition, in this embodiment, since the file index may include all file information except the message itself, that is, the file index may include all information in the channel block. The channels, channel attributes and specific channel content in the channel block are thus stored in at least two copies throughout the file. And if any channel block in the target file is detected to be defective, the channel block can be recovered according to the file index of the target file, so that the normal playing of the message content is guaranteed.
According to the technical scheme of the embodiment, the target file associated with the data reading instruction is accessed, and the target message block matched with the data reading instruction is selected from the message blocks in the target file according to the file header and the file index in the target file, so that the message content in the target message block is read. According to the embodiment of the invention, the information content in the information block of the target file is read, so that the historical operating data of the unmanned vehicle system can be effectively read, the traceability of the operating data of the unmanned vehicle system is ensured, and a basis is provided for the analysis of the later data and the improvement of the system.
Example two
On the basis of the first embodiment, the present embodiment provides a preferred implementation of the method for processing the unmanned vehicle data, and the method can perform data recovery and expansion on files. Fig. 4 is a flowchart of a method for processing unmanned vehicle data according to a second embodiment of the present invention, and as shown in fig. 4, the method includes the following specific steps:
and S410, accessing a target file associated with the data reading instruction.
In the specific embodiment of the invention, the unmanned vehicle system is integrated with a data recording device, and the data recording device is used for recording message data generated when the unmanned vehicle system operates, and generating and storing an independent file. Correspondingly, when a user or a worker needs to inquire the historical data recorded in advance in the unmanned vehicle system, a data reading instruction can be sent to the unmanned vehicle system or other memories in which the storage file is copied or transmitted, so that the historical data can be accessed.
Specifically, the data reading instruction may include at least one of start recording time, end recording time, message block information, channel block information, or version number of the message to be read. Correspondingly, the file corresponding to the file header with the matched information can be used as the target file according to the information included in the data reading instruction and the file header information of the file, so that the target file associated with the data reading instruction can be accessed. The data reading instruction in this embodiment may further include a specific access path, and further, the target file is directly obtained according to the storage path stored in the file header of the file.
Optionally, the length of the file header is fixed, the length of each piece of header data of the file header is fixed, and the length of the file header is greater than the sum of the lengths of each piece of header data.
In this embodiment, each piece of header data in the file header may be a plurality of pieces of description information of the file, for example: the recording method comprises the following steps of starting recording time, ending recording time, message block information, channel block information, file generation threshold information, block generation threshold information, version number and other attribute information. When reading the file, the summary information of the file can be obtained according to the information in the file header. Based on the fact that the length of the file header is larger than the sum of the lengths of all pieces of header data, a position is reserved in the file header for later-stage file expansion, for example, certain header data are added during version upgrading, but normal use of header data information in an old version can be guaranteed, and the expansibility and the universality of the file are improved.
For example, assuming that the length of the file header is 2048K, 20 pieces of header data are stored in the file header specified in version 1, and the length of each piece of header data is 50K, so that a memory space with a length of 1048K is reserved in the file header. When the file version is upgraded, it is assumed that 1 piece of header data is added to the file header based on the blank space, and the length of the corresponding added piece of header data is also 50K. Therefore, the file header is expanded, and the use of file data before expansion is not influenced. Accordingly, the file body is lengthened and does not affect the data block written therein.
And S420, selecting a target message block matched with the data reading instruction from the message blocks included in the target file according to the file header and the file index of the target file.
In the embodiment of the present invention, after determining the target file according to the data reading instruction, the corresponding target file may be found according to the path information included in the file header, and the information included in the data reading instruction is matched with the file index of the target file, so as to obtain the message block matched with the reading requirement in the data reading instruction, and find the message block meeting the reading requirement as the target message block according to the path information of each message block in the file index. The reading requirement included in the data instruction may be to read all data blocks in the file, or to read data blocks that meet a specific requirement, such as a specified time period requirement, a version requirement, or a channel requirement.
Optionally, determining a recording time period of the data to be read according to the data reading instruction; determining a message block identifier of a recording time period according to a file header and a file index of a target file; and taking the message block identification associated message block as a target message block.
In this embodiment, if the data reading instruction indicates a recording time period of data to be read, matching time information in a file header and a file index with the recording time period, thereby determining a message block whose recording time belongs to the recording time period, determining an identifier or path information of the message block according to the file index, and using the message block associated with the message block identifier as a target message block.
And S430, reading the message content included in the target message block.
In the specific embodiment of the invention, as the single messages recorded in the block body of the message block are all structured message contents, the compatibility with the unmanned vehicle system is better. The message content included in the target message block can be read directly.
S440, acquiring the channel attribute of each target message in the target message block.
In an embodiment of the present invention, the target message is the determined message content, and the target message may be in the form of a bar or a plurality of bars. The target message is a single message in a block of the message block, which contains not only specific message content but also a time point and a channel identifier of the single message, such as a start recording time, an end recording time or a channel name of the single message. And then, the corresponding channel name can be obtained from the target message in the target message block, and the corresponding channel and the attribute information thereof are searched from each channel block of the target file according to the channel name for calling when the message content is played at the later stage.
S450, according to the file index and the channel attribute, channel content of the message content is obtained from each channel block included in the target file.
In the embodiment of the present invention, the information recorded in the file index may be matched with the determined channel attribute, so as to determine that the channel block including the channel successfully matched is the target channel block, determine the path information of the target channel according to the file index, and obtain the channel content corresponding to the message content from the target channel block according to the path information.
S460, playing back the message content according to the message content read from the target message block and the channel content of the message content.
In the embodiment of the present invention, since the determined channel content is matched with the message content, that is, the transmission of the original message is carried out through the channel in the transmission process of the message, the message content can be played back by using the channel content to obtain the truly readable original data information.
For example, it is assumed that the data reading instruction includes a specific access path, and the target file is directly obtained according to a storage path stored in a file header of the file. The data reading instruction may further include data in a time period in which the message is to be accessed, for example, data in 1 minute from 10:00 to 10:01 on 1 st/8 th day, and further lock the message block with the identifier of the target message block in which the data in 1 minute is recorded as the message block with number 3 according to the file header of the target file and the information recorded in the file index, and acquire the message content in the message block with number 3 according to the path information of the message block with number 3 recorded in the file index, and determine the identifier of the target channel of the message content as the channel block with number 7 according to the channel attribute of each target message in the message block with number 3. Thus, the path information of the channel block No. 7 is determined according to the information recorded in the file index, and the channel content of the message content is obtained from the channel block No. 7 according to the path. Finally, the message content is played back by using the channel content to obtain the truly readable original data information.
Optionally, if it is detected that any channel block in the target file is defective, the channel block is recovered according to the file index of the target file.
In this embodiment, the file index may include all file information except the message itself, that is, the file index may include all information in the channel block. The channels, channel attributes and specific channel content in the channel block are thus stored in at least two copies throughout the file. And then under the condition that the channel or the information thereof in the target file is damaged, the channel block can be recovered according to the file index of the target file, thereby ensuring the normal playing of the message content.
According to the technical scheme of the embodiment, the target file with the fixed file header length related to the data reading instruction is accessed, and the target message block matched with the data reading instruction is selected from the message blocks in the target file according to the file header and the file index in the target file, so that the message content in the target message block is read. And acquiring the channel attribute corresponding to the message content from the target message, and determining and acquiring the channel content corresponding to the message content according to the file index and the channel attribute so as to play back the message content by using the channel content. And the channel information in the file can be recovered by using the file index. According to the embodiment of the invention, the message content is acquired from the file with the fixed file header length which is greater than the sum of all header data lengths, part of data information in the file is stored in the file index, and further, the message content in the message block of the target file and the channel content corresponding to the message content are acquired, so that the effective playback of the historical operating data of the unmanned vehicle system is realized, a basis is provided for the analysis of the later data and the improvement of the system, the traceability and the readability of the operating data of the unmanned vehicle system are ensured, and the expansibility, the system compatibility and the restorability of the file are improved.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a device for processing unmanned vehicle data according to a third embodiment of the present invention, where the third embodiment is applicable to a case where a history message is read from a file that is pre-recorded for unmanned vehicle system operation data, and the device can implement a method for processing unmanned vehicle data according to any embodiment of the present invention. The device specifically includes:
a file access module 510, configured to access a target file associated with the data reading instruction;
a message block determining module 520, configured to select a target message block matching the data reading instruction from message blocks included in the target file according to the file header and the file index of the target file;
a message content reading module 530, configured to read the message content included in the target message block.
Optionally, the message block determining module 520 includes:
the reading requirement determining unit is used for determining the recording time period of the data to be read according to the data reading instruction;
an identifier determining unit, configured to determine, according to the file header and the file index of the target file, a message block identifier whose recording time belongs to the recording time period;
and the message block determining unit is used for taking the message block associated with the message block identifier as a target message block.
Further, the apparatus further comprises:
a channel attribute determining module 540, configured to obtain a channel attribute of each target message in the target message block after the message content included in the target message block is read;
a channel content obtaining module 550, configured to obtain the channel content of the message content from each channel block included in the target file according to the file index and the channel attribute.
Further, the apparatus further comprises:
a message playback module 560, configured to, after the channel content of the message content is obtained from each channel block included in the target file, play back the message content according to the message content read from the target message block and the channel content of the message content.
Further, the apparatus further comprises:
the data recovery module 570 is configured to, if it is detected that any channel block in the target file is defective, recover the channel block according to a file index of the target file.
Optionally, the length of the file header is fixed, the length of each piece of header data of the file header is fixed, and the length of the file header is greater than the sum of the lengths of each piece of header data.
According to the technical scheme of the embodiment, through the mutual cooperation of the functional modules, the functions of receiving a data reading instruction, matching file information, determining a target file, determining a target message block, reading message content, acquiring channel attributes, determining a channel block, acquiring channel content, playing the message content, recovering data and the like are realized. According to the embodiment of the invention, the message content is acquired from the file with the fixed file header length which is greater than the sum of all header data lengths, part of data information in the file is stored in the file index, and further, the message content in the message block of the target file and the channel content corresponding to the message content are acquired, so that the effective playback of the historical operating data of the unmanned vehicle system is realized, a basis is provided for the analysis of the later data and the improvement of the system, the traceability and the readability of the operating data of the unmanned vehicle system are ensured, and the expansibility, the system compatibility and the restorability of the file are improved.
Example four
Fig. 6 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention, and fig. 6 shows a block diagram of an exemplary computer device suitable for implementing the embodiment of the present invention. The computer device shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
The computer device 12 shown in FIG. 6 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 6, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors 16, a system memory 28, and a bus 18 that connects the various system components (including the system memory 28 and the processors 16).
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments described herein.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes various functional applications and data processing, such as implementing the method for processing the unmanned vehicle data provided by the embodiment of the present invention, by executing at least one program of the plurality of programs stored in the system memory 28.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, where the computer program is used for executing, by a processor, a method for processing unmanned vehicle data, where the method includes:
accessing a target file associated with the data reading instruction;
selecting a target message block matched with the data reading instruction from all message blocks in the target file according to the file header and the file index of the target file;
and reading the message content included in the target message block.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for processing unmanned vehicle data is characterized by comprising the following steps:
accessing a target file associated with the data reading instruction according to the information included in the data reading instruction and the file header information of the file;
the file stores message data generated when the unmanned vehicle system operates; the data reading instruction comprises at least one of the start recording time, the end recording time, the message block information, the channel block information or the version number information of the message to be read;
determining a recording time period of the data to be read according to the data reading instruction;
determining a message block identifier of which the recording time belongs to the recording time period according to the file header and the file index of the target file;
taking the message block associated with the message block identifier as a target message block;
reading message content included in the target message block;
acquiring the channel attribute of each target message in the target message block;
and acquiring the channel content of the message content from each channel block included in the target file according to the file index and the channel attribute.
2. The method according to claim 1, further comprising, after the obtaining of the channel content of the message content from each channel block included in the target file:
and playing back the message content according to the message content read from the target message block and the channel content of the message content.
3. The method of claim 1, further comprising:
and if any channel block in the target file is detected to be defective, restoring the channel block according to the file index of the target file.
4. The method of claim 1, wherein the length of the header is fixed, and the length of each piece of header data of the header is fixed, and the length of the header is greater than the sum of the lengths of each piece of header data.
5. An unmanned vehicle data processing device, comprising:
the file access module is used for accessing a target file associated with the data reading instruction according to the information included in the data reading instruction and the file header information of the file;
the file stores message data generated when the unmanned vehicle system operates; the data reading instruction comprises at least one of the start recording time, the end recording time, the message block information, the channel block information or the version number information of the message to be read;
the reading requirement determining unit is used for determining the recording time period of the data to be read according to the data reading instruction;
an identifier determining unit, configured to determine, according to the file header and the file index of the target file, a message block identifier whose recording time belongs to the recording time period;
a message block determining unit, configured to use the message block associated with the message block identifier as a target message block;
a message content reading module, configured to read message content included in the target message block;
a channel attribute determining module, configured to obtain a channel attribute of each target message in the target message block;
and the channel content acquisition module is used for acquiring the channel content of the message content from each channel block included in the target file according to the file index and the channel attribute.
6. The apparatus of claim 5, further comprising:
and the message playback module is used for playing back the message content according to the message content read from the target message block and the channel content of the message content after the channel content of the message content is acquired from each channel block included in the target file.
7. The apparatus of claim 5, further comprising:
and the data recovery module is used for recovering the channel block according to the file index of the target file if the defect of any channel block in the target file is detected.
8. The apparatus of claim 5, wherein the length of the header is fixed, and the length of each piece of header data of the header is fixed, and the length of the header is greater than the sum of the lengths of each piece of header data.
9. A computer device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of processing drone vehicle data according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the method of processing unmanned vehicle data according to any one of claims 1 to 4.
CN201810997644.0A 2018-08-29 2018-08-29 Method, device and equipment for processing data of unmanned vehicle and storage medium Active CN109147091B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210344470.4A CN114780493A (en) 2018-08-29 2018-08-29 Unmanned vehicle data processing method, device, equipment and storage medium
CN201810997644.0A CN109147091B (en) 2018-08-29 2018-08-29 Method, device and equipment for processing data of unmanned vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810997644.0A CN109147091B (en) 2018-08-29 2018-08-29 Method, device and equipment for processing data of unmanned vehicle and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210344470.4A Division CN114780493A (en) 2018-08-29 2018-08-29 Unmanned vehicle data processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109147091A CN109147091A (en) 2019-01-04
CN109147091B true CN109147091B (en) 2022-04-19

Family

ID=64829162

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810997644.0A Active CN109147091B (en) 2018-08-29 2018-08-29 Method, device and equipment for processing data of unmanned vehicle and storage medium
CN202210344470.4A Pending CN114780493A (en) 2018-08-29 2018-08-29 Unmanned vehicle data processing method, device, equipment and storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202210344470.4A Pending CN114780493A (en) 2018-08-29 2018-08-29 Unmanned vehicle data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (2) CN109147091B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190392042A1 (en) * 2018-06-20 2019-12-26 TuSimple Method and system of managing error data associated with a vehicle
CN110896533B (en) * 2019-06-28 2023-07-14 腾讯科技(深圳)有限公司 Vehicle communication message processing method and device
CN110502475A (en) * 2019-07-25 2019-11-26 长沙行深智能科技有限公司 A kind of more data access methods of unmanned vehicle, device, medium and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521306A (en) * 2011-12-01 2012-06-27 苏州迈科网络安全技术股份有限公司 Application method for data storage system
CN102891997A (en) * 2011-07-20 2013-01-23 深圳市快播科技有限公司 Audio and video frequency multi-media file format for fast play, playing method and playing device
CN103778188A (en) * 2013-12-31 2014-05-07 网秦(北京)科技有限公司 Method and equipment for inquiring and/or maintaining data in library file
CN107632996A (en) * 2016-07-18 2018-01-26 福特全球技术公司 Vehicle data library storage and search method and system
CN108460075A (en) * 2017-12-28 2018-08-28 上海顶竹通讯技术有限公司 A kind of file content search method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891997A (en) * 2011-07-20 2013-01-23 深圳市快播科技有限公司 Audio and video frequency multi-media file format for fast play, playing method and playing device
CN102521306A (en) * 2011-12-01 2012-06-27 苏州迈科网络安全技术股份有限公司 Application method for data storage system
CN103778188A (en) * 2013-12-31 2014-05-07 网秦(北京)科技有限公司 Method and equipment for inquiring and/or maintaining data in library file
CN107632996A (en) * 2016-07-18 2018-01-26 福特全球技术公司 Vehicle data library storage and search method and system
CN108460075A (en) * 2017-12-28 2018-08-28 上海顶竹通讯技术有限公司 A kind of file content search method and system

Also Published As

Publication number Publication date
CN114780493A (en) 2022-07-22
CN109147091A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
US20220319253A1 (en) Autonomous Vehicle Data Recorders
US11670124B2 (en) Data recorders of autonomous vehicles
US11321122B2 (en) Method, apparatus, device and medium for processing topological relation of tasks
KR102525502B1 (en) Method and apparatus for storing auto-drive test data, electronic device, storage medium and program
US20200294489A1 (en) Methods, computing devices, and storage media for generating training corpus
CN109147091B (en) Method, device and equipment for processing data of unmanned vehicle and storage medium
CN110472095B (en) Voice guidance method, device, equipment and medium
US20140189674A1 (en) Information processing apparatus and information processing method
CN109635861B (en) Data fusion method and device, electronic equipment and storage medium
CN110377682B (en) Track type determination method and device, computing equipment and storage medium
CN109284801B (en) Traffic indicator lamp state identification method and device, electronic equipment and storage medium
CN102298636B (en) Global position system (GPS) data-based monitoring system and device and method for uploading GPS data
US6820001B2 (en) Navigation system for vehicle
CN114490910A (en) Map generation method and device, electronic equipment and storage medium
CN112102648B (en) Vacant parking space pushing method, device, equipment and storage medium
US11104329B2 (en) Parking control method and apparatus, and storage medium
CN109272602B (en) Unmanned vehicle data recording method, device, equipment and storage medium
CN109446437B (en) Information mining method, device, server and storage medium
CN112328272A (en) Algorithm upgrading method, device, equipment and storage medium
CN112506871B (en) Automated task management and log management method, system, electronic device and medium
CN112925796A (en) Write consistency control method, device, equipment and storage medium
CN111262727A (en) Service capacity expansion method, device, equipment and storage medium
CN112329500A (en) Scene segment implementation method and device based on discrete frame and storage medium
CN113742410A (en) Data processing method, data processing apparatus, electronic device, storage medium, and program product
CN111339046A (en) Data writing, reading and deleting method and device for file

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