CN116030211A - Method and device for constructing simulation map, storage medium and electronic equipment - Google Patents

Method and device for constructing simulation map, storage medium and electronic equipment Download PDF

Info

Publication number
CN116030211A
CN116030211A CN202310159660.3A CN202310159660A CN116030211A CN 116030211 A CN116030211 A CN 116030211A CN 202310159660 A CN202310159660 A CN 202310159660A CN 116030211 A CN116030211 A CN 116030211A
Authority
CN
China
Prior art keywords
map
color
simulation
graph
color value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310159660.3A
Other languages
Chinese (zh)
Other versions
CN116030211B (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.)
Zhejiang Lab
Original Assignee
Zhejiang Lab
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 Zhejiang Lab filed Critical Zhejiang Lab
Priority to CN202310159660.3A priority Critical patent/CN116030211B/en
Publication of CN116030211A publication Critical patent/CN116030211A/en
Application granted granted Critical
Publication of CN116030211B publication Critical patent/CN116030211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The specification discloses a method, a device, a storage medium and electronic equipment for constructing a simulation map. The simulation map is in a bitmap format, and each color channel in the simulation map corresponds to one simulation layer. Firstly, each material graph is acquired, and the material graph is in a bitmap format. And secondly, determining a color channel of the color value of each position point in the material map in the simulation map to be constructed according to the determined map type corresponding to the material map as a color channel corresponding to the material map. And then, constructing a color value matrix according to the color values corresponding to the positions in each material graph and the color channels corresponding to the material graphs, wherein the color value matrix is used for representing the color values corresponding to the positions in the material graphs on different color channels. And then, constructing a simulation layer corresponding to each color channel according to the color value matrix. And finally, constructing a simulation map according to the simulation layers corresponding to the color channels. The method can improve the efficiency of constructing the simulation map.

Description

Method and device for constructing simulation map, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for constructing a simulation map, a storage medium, and an electronic device.
Background
At present, a simulation map in Agent-based modeling (ABM) requires technicians to construct the simulation map with reference to an existing planar construction map, and the method has low efficiency in constructing the simulation map.
Therefore, how to improve the efficiency of constructing the simulation map is a problem to be solved.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a storage medium, and an electronic device for constructing a simulated map, so as to partially solve the foregoing problems in the prior art.
The technical scheme adopted in the specification is as follows:
the present specification provides a method for constructing a simulated map, where the simulated map is in a bitmap format, and the simulated map includes a plurality of color channels, each color channel corresponds to a simulated map layer, and the method includes:
acquiring each material graph, wherein the material graph is in a bitmap format;
for each material graph, determining a color channel of the color value of each position point in the material graph in the simulation map to be constructed according to the determined graph type corresponding to the material graph, and taking the color channel as the color channel corresponding to the material graph;
Constructing a color value matrix according to color values corresponding to all the positions in each material graph and color channels corresponding to each material graph, wherein the color value matrix is used for representing the color values corresponding to all the positions in the material graph on different color channels;
constructing a simulation layer corresponding to each color channel according to the color value matrix;
and constructing a simulation map according to the simulation layers corresponding to the color channels.
Optionally, determining the graph type corresponding to the material graph specifically includes:
for each material graph, if the color value corresponding to each position point in the material graph is determined to be an extremum and the material graph is a construction graph, determining the graph type corresponding to the material graph as a basic topographic map;
according to the color value matrix, constructing a simulation layer corresponding to each color channel, which specifically comprises the following steps:
determining passable areas and non-passable areas in the basic topographic map according to color values of color channels corresponding to the basic topographic map in the color value matrix, wherein the areas with the color values being the first set color values are passable areas, and the areas with the color values being the second set color values are non-passable areas;
and constructing a simulation layer corresponding to the color channel corresponding to the basic topographic map according to the passable area and the non-passable area in the basic topographic map.
Optionally, determining the graph type corresponding to the material graph specifically includes:
for each material graph, if the color value corresponding to each position point in the material graph is determined to be in the set color value range and the material graph is a topography graph, the graph type corresponding to the material graph is a sloping field topography graph;
according to the color value matrix, constructing a simulation layer corresponding to each color channel, which specifically comprises the following steps:
determining the topography height in the sloping field topography map according to the color value of the color channel corresponding to the sloping field topography map in the color value matrix, wherein the larger the color value is, the higher the topography height is;
and constructing a simulation layer corresponding to a color channel corresponding to the sloping field topographic map according to the topography height in the sloping field topographic map.
Optionally, constructing a simulation layer corresponding to each color channel according to the color value matrix specifically includes:
for each material graph, if the graph type corresponding to the material graph is determined to be a functional graph, determining a functional area in the functional graph according to the color value of the color channel corresponding to the functional graph in the color value matrix;
and constructing a simulation layer corresponding to the color channel corresponding to the functional diagram according to the functional area in the functional diagram.
Optionally, constructing a simulation layer corresponding to each color channel according to the color value matrix specifically includes:
normalizing the color value matrix to obtain a normalized color value matrix;
and constructing a simulation layer corresponding to each color channel according to the normalized color value matrix.
Optionally, acquiring each material graph specifically includes:
and obtaining a construction drawing from the building information model BIM.
Optionally, acquiring each material graph specifically includes:
and obtaining a relief map and a functional map from the geographic information system GIS.
Optionally, the method further comprises:
performing an agent simulation experiment on the simulation map to obtain a simulation result;
and optimizing each material graph according to the simulation result.
Optionally, performing an agent simulation experiment on the simulation map to obtain a simulation result, which specifically includes:
determining an initial area where an intelligent agent is located and a target area where the intelligent agent is to arrive;
generating each intelligent agent in the initial area on the simulation map, and obtaining the path of each intelligent agent reaching the target area on the simulation map through a preset path finding algorithm, wherein the path is used as a simulation result.
Optionally, generating each agent in the initial area on the simulation map, and obtaining a path of each agent reaching the target area on the simulation map through a preset path finding algorithm, where the path is used as a simulation result, and specifically includes:
generating each intelligent agent in the initial area on the simulation map, and determining an influence value corresponding to each position point in the simulation map according to the color value corresponding to each position point in the simulation layer corresponding to each color channel through a preset path finding algorithm;
and obtaining the path of each intelligent agent reaching the target area on the simulation map according to the influence value corresponding to each position point in the simulation map, and taking the path as a simulation result.
Optionally, the routing algorithm is an AStar algorithm.
The present specification provides a device for constructing a simulated map, the simulated map is in a bitmap format, the simulated map includes a plurality of color channels, each color channel corresponds to a simulated map layer, and the device includes:
the acquisition module is used for acquiring each material graph, wherein the material graph is in a bitmap format;
the determining module is used for determining a color channel of the color value of each position point in each material graph in the simulation map to be constructed according to the determined graph type corresponding to the material graph as a color channel corresponding to the material graph;
The matrix module is used for constructing a color value matrix according to the color values corresponding to all the positions in each material graph and the color channels corresponding to all the material graphs, wherein the color value matrix is used for representing the color values corresponding to all the positions in the material graph on different color channels;
the layer module is used for constructing a simulation layer corresponding to each color channel according to the color value matrix;
the building module is used for building a simulation map according to the simulation layers corresponding to the color channels.
The present specification provides a computer readable storage medium storing a computer program which when executed by a processor implements the above method of constructing a simulated map.
The present specification provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above method of constructing a simulated map when executing the program.
The above-mentioned at least one technical scheme that this specification adopted can reach following beneficial effect:
in the method for constructing the simulation map provided by the specification, the simulation map is in a bitmap format, and the simulation map comprises a plurality of color channels, and each color channel corresponds to one simulation layer. Firstly, each material graph is acquired, and the material graph is in a bitmap format. And secondly, determining a color channel of the color value of each position point in the material map in the simulation map to be constructed according to the determined map type corresponding to the material map as a color channel corresponding to the material map. And then, constructing a color value matrix according to the color values corresponding to the positions in each material graph and the color channels corresponding to the material graphs, wherein the color value matrix is used for representing the color values corresponding to the positions in the material graphs on different color channels. And then, constructing a simulation layer corresponding to each color channel according to the color value matrix. And finally, constructing a simulation map according to the simulation layers corresponding to the color channels.
As can be seen from the above method for constructing a simulated map, the method can determine, for each material map, a color channel corresponding to the material map according to the determined map type corresponding to the material map. And then, constructing a color value matrix according to the color values corresponding to the bit points in each material graph and the color channels corresponding to the material graphs. And then, constructing a simulation layer corresponding to each color channel according to the color value matrix. And finally, constructing a simulation map according to the simulation layers corresponding to the color channels. The method can improve the efficiency of constructing the simulation map.
Drawings
The accompanying drawings, which are included to provide a further understanding of the specification, illustrate and explain the exemplary embodiments of the present specification and their description, are not intended to limit the specification unduly. In the drawings:
FIG. 1 is a flow chart of a method for constructing a simulated map according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a simulated map structure according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a simulation map according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus for constructing a simulation map according to an embodiment of the present disclosure;
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present specification more apparent, the technical solutions of the present specification will be clearly and completely described below with reference to specific embodiments of the present specification and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present specification. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present specification with reference to the accompanying drawings.
Fig. 1 is a flow chart of a method for constructing a simulation map according to an embodiment of the present disclosure, which specifically includes the following steps:
s100: and obtaining each material graph, wherein the material graph is in a bitmap format.
In the embodiment of the present specification, the execution body of the method for constructing a simulated map provided in the present specification may be a server, or may be an electronic device such as a desktop computer, and for convenience of description, the method for constructing a simulated map provided in the present specification will be described below with only the server as the execution body.
In the embodiment of the present specification, the server may acquire each material drawing. The material map mentioned here is in a bitmap format. Different businesses correspond to different material drawings. For example, if the service is a queuing scenario simulation, the material graph corresponding to the service includes a construction graph. For another example, if the service is a fire scene simulation, the material map corresponding to the service includes a construction map, a temperature distribution map, a smoke distribution map, and the like.
Specifically, the server may obtain the construction map from a building information model (Building Information Modeling, BIM). Since a part of the information loss may occur in the construction map obtained from the building information model, the server may modify the construction map through an image processing technique. Of course, manual modifications may also be made by the skilled person.
The server can acquire the map and the function map from the geographic information system (Geographic Information System, GIS).
If the obtained material map is in a vector format, the server can convert the material map in the vector format into a bitmap format.
S102: and determining a color channel of the color value of each position point in the material map in the simulation map to be constructed according to the determined map type corresponding to the material map as a color channel corresponding to the material map.
S104: and constructing a color value matrix according to the color values corresponding to the positions in each material graph and the color channels corresponding to the material graphs, wherein the color value matrix is used for representing the color values corresponding to each position in the material graph on different color channels.
S106: and constructing a simulation layer corresponding to each color channel according to the color value matrix.
In this embodiment of the present disclosure, for each material map, the server may determine, according to the determined map type corresponding to the material map, a color channel to which a color value of each location point in the material map belongs in a simulated map to be constructed, as the color channel corresponding to the material map. The simulated map is in a bitmap format, and comprises a plurality of color channels, wherein each color channel corresponds to one simulated map layer. The simulation map may be composed of multiple simulation layers. For example, the bitmap-format simulation map may include four color channels of R (red), G (green), B (blue), and a (transparency), that is, the simulation map may be composed of at most four simulation layers.
And secondly, the server can construct a color value matrix according to the color values corresponding to the bit points in each material graph and the color channels corresponding to the material graphs. The color value matrix mentioned here is used to represent the color value corresponding to each position in the material map on different color channels. For example, the representation of one element in the color value matrix may be (color value in R channel, color value in G channel, color value in B channel, color value in A channel).
Finally, the server can construct a simulation layer corresponding to each color channel according to the color value matrix.
Specifically, for each material graph, if the color value corresponding to each position point in the material graph is determined to be an extremum and the material graph is a construction graph, determining the graph type corresponding to the material graph as a basic topographic map. Extrema as referred to herein may refer to maxima and minima in the range of color values. For example, if the color value ranges from 0 to 255, the extremum is 0 or 255.
The server can determine the color channel of the color value of each position point in the basic topographic map in the simulation map to be constructed according to the basic topographic map, and the color channel is used as the color channel corresponding to the basic topographic map.
If the color value corresponding to each position point in the material map is determined to be in the set color value range and the material map is a topography map, the map type corresponding to the material map is a sloping field topography map. The set color value range may be 0 to 255.
The server can determine the color channel of the color value of each position point in the sloping field topographic map in the simulation map to be constructed as the color channel corresponding to the sloping field topographic map.
If the graph type corresponding to the material graph is determined to be the functional graph, the server can determine the color channel of the color value of each site in the functional graph in the simulation map to be constructed according to the functional graph, and the color channel is used as the color channel corresponding to the functional graph.
Further, the server may determine the passable area and the non-passable area in the base topography according to the color values of the color channels corresponding to the base topography in the color value matrix, where the area with the color value being the first set color value is the passable area, and the area with the color value being the second set color value is the non-passable area. For example, if the color value ranges from 0 to 255, the first set color value may be 0 and the second color value may be 255. Of course, the first setting color value and the second setting color value can also be modified according to the service requirement.
Then, the server can construct a simulation layer corresponding to the color channel corresponding to the basic topographic map according to the passable area and the non-passable area in the basic topographic map.
And the server can determine the terrain height in the sloping field topographic map according to the color values of the color channels corresponding to the sloping field topographic map in the color value matrix. Wherein, the larger the color value is, the higher the relief height is. The smaller the color value, the lower the topography height.
Then, the server can construct a simulation layer corresponding to the color channel corresponding to the hillside land topographic map according to the height of the hillside land topographic map.
Similarly, the server may determine the functional area in the functional diagram according to the color value of the color channel corresponding to the functional diagram in the color value matrix. Reference herein to a functional diagram may refer to a diagram of custom functions that are independent of physical topography. For example, parking spaces (areas occupied in a specific manner) of a parking lot. As another example, a showroom where people gather after the start of an exhibition activity (draw people to approach at a characteristic time). As another example, the temperature distribution at the fire site (flame spread is started at the point of ignition).
Then, the server can construct a simulation layer corresponding to the color channel corresponding to the function diagram according to the function area in the function diagram.
In the embodiment of the present disclosure, the server may normalize the color value matrix to obtain a normalized color value matrix.
Secondly, the server can construct a simulation layer corresponding to each color channel according to the normalized color value matrix.
S108: and constructing a simulation map according to the simulation layers corresponding to the color channels.
In the embodiment of the present disclosure, the server may construct a simulation map according to the simulation layers corresponding to the color channels. As particularly shown in fig. 2.
Fig. 2 is a schematic diagram of a simulated map structure according to an embodiment of the present disclosure.
In fig. 2, the server may construct a color value matrix from each material map. And constructing a simulation layer corresponding to each color channel according to the color value matrix. The color channel includes: r channel, G channel, B channel, and a channel.
In this embodiment of the present disclosure, the server may use the R channel in the color channel as a color channel corresponding to the basic topography, the G channel in the color channel as a color channel corresponding to the sloping field topography, the B channel in the color channel as a color channel corresponding to the functional map, and the a channel in the color channel as a color channel corresponding to another functional map. The server may also use the a-channel as an optional color channel, as it is not easily observed by the technician, and not apply the a-channel. Of course, each color channel can be allocated according to the service requirement.
It should be noted that the constructed simulation map is stored in a bitmap format, so that the constructed simulation map has good readability, and common image editing software can be used for modifying the constructed simulation map.
In the embodiment of the specification, the server may perform an agent simulation experiment on a simulation map to obtain a simulation result.
And secondly, the server can optimize each material graph according to the simulation result. For example, if the service is queuing scene simulation, it is determined that the queuing time of the agent in the simulation result is too long, the construction diagram can be modified to reduce the queuing time of the agent.
Specifically, the server may determine a starting area where the agent is located and a target area where the agent is to arrive.
Secondly, the server can generate each intelligent agent in the initial area on the simulation map, and obtain the path of each intelligent agent reaching the target area on the simulation map through a preset path finding algorithm, and the path is used as a simulation result. The routing algorithm referred to herein may be referred to as the AStar algorithm. The AStar algorithm is a direct search algorithm that is effective in solving the optimal path in the static path, and the search direction is determined by a cost function. The AStar algorithm expands from the initial area to the periphery, the cost value of each surrounding site is obtained through calculation through a cost function, the site with the minimum cost is selected as the next expansion point, and the process is repeated until the target area is reached, so that the optimal path is obtained.
For example, if the service is queuing scene simulation, the server may determine the passable area and the non-passable area on the simulated map according to the color values corresponding to the respective positions in the simulated layer corresponding to the color channel corresponding to the basic topography map, so as to plan a path, so that the agent avoids the non-passable area and moves on the passable area. As particularly shown in fig. 3.
Fig. 3 is a schematic diagram of a simulation map according to an embodiment of the present disclosure.
In fig. 3, the simulation map is constructed from a base topography. The white area is a passable area, and the black area is an unviewable area. The agent simulation experiment can be simulated on the simulation map.
Further, the server may generate each agent in the initial area on the simulation map, and determine, according to a preset path-finding algorithm, an impact value corresponding to each bit point in the simulation map according to the color value corresponding to each bit point in the simulation layer corresponding to each color channel. The impact values referred to herein may refer to influencing factors that influence the path of the agent.
For example, if the service is fire scene simulation, the server may determine the impact value corresponding to each location point in the simulation map according to the color value corresponding to each location point in the simulation layer corresponding to the color channel corresponding to the temperature distribution map. The higher the temperature, the higher the color value and the larger the influence value. By influencing the values, the agent is moved toward the region where the temperature is low.
For another example, if the service is depth detection scene simulation, the server may determine the impact value corresponding to each location point in the simulation map according to the color value corresponding to each location point in the simulation layer corresponding to the color channel corresponding to the slope topography. Wherein the higher the height, the larger the color value and the larger the influence value. Through the influence value, the intelligent agent is biased to the area with lower height to move so as to finish depth detection.
And secondly, the server can obtain the path of each intelligent agent reaching the target area on the simulation map according to the influence value corresponding to each position point in the simulation map, and the path is used as a simulation result.
From the above process, it can be seen that, according to the determined graph type corresponding to each material graph, the method can determine the color channel corresponding to the material graph. And then, constructing a color value matrix according to the color values corresponding to the bit points in each material graph and the color channels corresponding to the material graphs. And then, constructing a simulation layer corresponding to each color channel according to the color value matrix. And finally, constructing a simulation map according to the simulation layers corresponding to the color channels. The method can improve the efficiency of constructing the simulation map.
The above method for constructing a simulated map provided for one or more embodiments of the present disclosure further provides a corresponding apparatus for constructing a simulated map, based on the same concept, as shown in fig. 4.
Fig. 4 is a schematic structural diagram of an apparatus for constructing a simulated map according to an embodiment of the present disclosure, where the simulated map is in a bitmap format, and includes a plurality of color channels, each color channel corresponds to a simulated layer, and specifically includes:
the obtaining module 400 is configured to obtain each material map, where the material map is in a bitmap format;
the determining module 402 is configured to determine, for each material graph, a color channel to which a color value of each position point in the material graph belongs in a simulation map to be constructed according to the determined graph type corresponding to the material graph, as a color channel corresponding to the material graph;
the matrix module 404 is configured to construct a color value matrix according to color values corresponding to each bit point in each material graph and color channels corresponding to each material graph, where the color value matrix is used to represent color values corresponding to each bit point in the material graph on different color channels;
a layer module 406, configured to construct a simulation layer corresponding to each color channel according to the color value matrix;
The construction module 408 is configured to construct a simulation map according to the simulation layers corresponding to the color channels.
Optionally, the determining module 402 is specifically configured to determine, for each material graph, if it is determined that the color value corresponding to each location point in the material graph is an extremum and the material graph is a construction graph, determine that the graph type corresponding to the material graph is a basic topography graph, determine, according to the color value of the color channel corresponding to the basic topography graph in the color value matrix, a passable area and an unvented area in the basic topography graph, where the color value is a passable area of a first set color value, the color value is a passable area of a second set color value, and construct, according to the passable area and the unvented area in the basic topography graph, a simulated graph layer corresponding to the color channel corresponding to the basic topography graph.
Optionally, the determining module 402 is specifically configured to determine, for each material map, if it is determined that a color value corresponding to each location in the material map is within a set color value range and the material map is a land map, and the map type corresponding to the material map is a sloping field map, and determine a land height in the sloping field map according to a color value of a color channel corresponding to the sloping field map in the color value matrix, where the larger the color value is, the higher the land height is, and construct a simulated map layer corresponding to the color channel corresponding to the sloping field map according to the land height in the sloping field map.
Optionally, the layer module 406 is specifically configured to determine, for each material graph, a functional area in the functional graph according to a color value of a color channel corresponding to the functional graph in the color value matrix if it is determined that a graph type corresponding to the material graph is a functional graph, and construct, according to the functional area in the functional graph, a simulation layer corresponding to the color channel corresponding to the functional graph.
Optionally, the layer module 406 is specifically configured to normalize the color value matrix to obtain a normalized color value matrix, and construct a simulation layer corresponding to each color channel according to the normalized color value matrix.
Optionally, the obtaining module 400 is specifically configured to obtain the construction drawing from the building information model BIM.
Optionally, the obtaining module 400 is specifically configured to obtain the geographic map and the functional map from the geographic information system GIS.
Optionally, the construction module 408 is specifically further configured to perform an agent simulation experiment on the simulation map to obtain a simulation result, and optimize each material map according to the simulation result.
Optionally, the construction module 408 is further specifically configured to determine an initial area where an agent is located and a target area where the agent is to reach, generate each agent in the initial area on the simulation map, and obtain, by using a preset path-finding algorithm, a path of each agent reaching the target area on the simulation map as a simulation result.
Optionally, the building module 408 is specifically further configured to generate each agent in the initial area on the simulation map, determine, according to a preset path-finding algorithm, an impact value corresponding to each location point in the simulation map according to a color value corresponding to each location point in the simulation layer corresponding to each color channel, and obtain, according to the impact value corresponding to each location point in the simulation map, a path of each agent on the simulation map to reach the target area as a simulation result.
Optionally, the routing algorithm is an AStar algorithm.
The present specification also provides a computer readable storage medium storing a computer program operable to perform the method of constructing a simulated map provided in fig. 1 above.
The present specification also provides a schematic structural diagram of the electronic device shown in fig. 5. At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile storage, as illustrated in fig. 5, although other hardware required by other services may be included. The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to realize the method for constructing the simulation map provided by the figure 1.
Of course, other implementations, such as logic devices or combinations of hardware and software, are not excluded from the present description, that is, the execution subject of the following processing flows is not limited to each logic unit, but may be hardware or logic devices.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that 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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (14)

1. The method for constructing the simulated map is characterized in that the simulated map is in a bitmap format, the simulated map comprises a plurality of color channels, each color channel corresponds to one simulated map layer, and the method comprises the following steps:
acquiring each material graph, wherein the material graph is in a bitmap format;
for each material graph, determining a color channel of the color value of each position point in the material graph in the simulation map to be constructed according to the determined graph type corresponding to the material graph, and taking the color channel as the color channel corresponding to the material graph;
constructing a color value matrix according to color values corresponding to all the positions in each material graph and color channels corresponding to each material graph, wherein the color value matrix is used for representing the color values corresponding to all the positions in the material graph on different color channels;
constructing a simulation layer corresponding to each color channel according to the color value matrix;
and constructing a simulation map according to the simulation layers corresponding to the color channels.
2. The method of claim 1, wherein determining the type of the map corresponding to the material map specifically comprises:
for each material graph, if the color value corresponding to each position point in the material graph is determined to be an extremum and the material graph is a construction graph, determining the graph type corresponding to the material graph as a basic topographic map;
According to the color value matrix, constructing a simulation layer corresponding to each color channel, which specifically comprises the following steps:
determining passable areas and non-passable areas in the basic topographic map according to color values of color channels corresponding to the basic topographic map in the color value matrix, wherein the areas with the color values being the first set color values are passable areas, and the areas with the color values being the second set color values are non-passable areas;
and constructing a simulation layer corresponding to the color channel corresponding to the basic topographic map according to the passable area and the non-passable area in the basic topographic map.
3. The method of claim 1, wherein determining the type of the map corresponding to the material map specifically comprises:
for each material graph, if the color value corresponding to each position point in the material graph is determined to be in the set color value range and the material graph is a topography graph, the graph type corresponding to the material graph is a sloping field topography graph;
according to the color value matrix, constructing a simulation layer corresponding to each color channel, which specifically comprises the following steps:
determining the topography height in the sloping field topography map according to the color value of the color channel corresponding to the sloping field topography map in the color value matrix, wherein the larger the color value is, the higher the topography height is;
And constructing a simulation layer corresponding to a color channel corresponding to the sloping field topographic map according to the topography height in the sloping field topographic map.
4. The method of claim 1, wherein constructing a simulation layer corresponding to each color channel according to the color value matrix specifically comprises:
for each material graph, if the graph type corresponding to the material graph is determined to be a functional graph, determining a functional area in the functional graph according to the color value of the color channel corresponding to the functional graph in the color value matrix;
and constructing a simulation layer corresponding to the color channel corresponding to the functional diagram according to the functional area in the functional diagram.
5. The method of claim 1, wherein constructing a simulation layer corresponding to each color channel according to the color value matrix specifically comprises:
normalizing the color value matrix to obtain a normalized color value matrix;
and constructing a simulation layer corresponding to each color channel according to the normalized color value matrix.
6. The method of claim 1, wherein obtaining each material graph specifically comprises:
and obtaining a construction drawing from the building information model BIM.
7. The method of claim 1, wherein obtaining each material graph specifically comprises:
and obtaining a relief map and a functional map from the geographic information system GIS.
8. The method of claim 1, wherein the method further comprises:
performing an agent simulation experiment on the simulation map to obtain a simulation result;
and optimizing each material graph according to the simulation result.
9. The method of claim 8, wherein performing an agent simulation experiment on the simulation map results in a simulation result, comprising:
determining an initial area where an intelligent agent is located and a target area where the intelligent agent is to arrive;
generating each intelligent agent in the initial area on the simulation map, and obtaining the path of each intelligent agent reaching the target area on the simulation map through a preset path finding algorithm, wherein the path is used as a simulation result.
10. The method of claim 9, wherein generating each agent in the initial area on the simulation map, and obtaining a path of each agent on the simulation map to the target area through a preset path finding algorithm, as a simulation result, specifically includes:
Generating each intelligent agent in the initial area on the simulation map, and determining an influence value corresponding to each position point in the simulation map according to the color value corresponding to each position point in the simulation layer corresponding to each color channel through a preset path finding algorithm;
and obtaining the path of each intelligent agent reaching the target area on the simulation map according to the influence value corresponding to each position point in the simulation map, and taking the path as a simulation result.
11. The method of claim 9, wherein the routing algorithm is an asar algorithm.
12. The device for constructing the simulated map is characterized in that the simulated map is in a bitmap format, the simulated map comprises a plurality of color channels, each color channel corresponds to one simulated map layer, and the device comprises:
the acquisition module is used for acquiring each material graph, wherein the material graph is in a bitmap format;
the determining module is used for determining a color channel of the color value of each position point in each material graph in the simulation map to be constructed according to the determined graph type corresponding to the material graph as a color channel corresponding to the material graph;
the matrix module is used for constructing a color value matrix according to the color values corresponding to all the positions in each material graph and the color channels corresponding to all the material graphs, wherein the color value matrix is used for representing the color values corresponding to all the positions in the material graph on different color channels;
The layer module is used for constructing a simulation layer corresponding to each color channel according to the color value matrix;
the building module is used for building a simulation map according to the simulation layers corresponding to the color channels.
13. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method of any of the preceding claims 1-11.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-11 when executing the program.
CN202310159660.3A 2023-02-20 2023-02-20 Method and device for constructing simulation map, storage medium and electronic equipment Active CN116030211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310159660.3A CN116030211B (en) 2023-02-20 2023-02-20 Method and device for constructing simulation map, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310159660.3A CN116030211B (en) 2023-02-20 2023-02-20 Method and device for constructing simulation map, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN116030211A true CN116030211A (en) 2023-04-28
CN116030211B CN116030211B (en) 2023-06-20

Family

ID=86077709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310159660.3A Active CN116030211B (en) 2023-02-20 2023-02-20 Method and device for constructing simulation map, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116030211B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105374053A (en) * 2015-11-12 2016-03-02 启安动物行为学科技股份有限公司 Sole pressure distribution acquisition method in rat gait analysis, device and system
US20160092620A1 (en) * 2014-09-29 2016-03-31 Siemens Aktiengesellschaft Method for power station simulation for test and training purposes by means of a piece of distributed simulation hardware
US10186061B1 (en) * 2013-01-11 2019-01-22 Electronic Arts Inc. Proximate-tile-type-based map generation
KR102021979B1 (en) * 2018-06-28 2019-09-18 (주)아레스 ABM-based route search method and system for emergency response of radiation accident
US10679521B1 (en) * 2017-05-15 2020-06-09 Lockheed Martin Corporation Generating a three-dimensional physical map using different data sources
CN113392106A (en) * 2021-05-31 2021-09-14 东南大学 Multi-agent traffic simulation data storage and updating method
CN113593051A (en) * 2021-08-06 2021-11-02 浙江远算科技有限公司 Live-action visualization method, dam visualization method and computer equipment
CN113724386A (en) * 2021-08-05 2021-11-30 甘肃科诺影视科技有限责任公司 Method for making three-dimensional map
CN113761618A (en) * 2021-08-03 2021-12-07 武汉光庭信息技术股份有限公司 3D simulation road network automation construction method and system based on real data
CN114067062A (en) * 2022-01-17 2022-02-18 深圳慧拓无限科技有限公司 Method and system for simulating real driving scene, electronic equipment and storage medium
CN115290104A (en) * 2022-07-14 2022-11-04 襄阳达安汽车检测中心有限公司 Simulation map generation method, device, equipment and readable storage medium
CN115563745A (en) * 2022-08-25 2023-01-03 湖南视比特机器人有限公司 Construction method of industrial simulation role, simulation system and industrial production line
CN115574834A (en) * 2022-10-13 2023-01-06 云控智行科技有限公司 Intelligent driving scene simulation method, device and equipment based on script

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10186061B1 (en) * 2013-01-11 2019-01-22 Electronic Arts Inc. Proximate-tile-type-based map generation
US20160092620A1 (en) * 2014-09-29 2016-03-31 Siemens Aktiengesellschaft Method for power station simulation for test and training purposes by means of a piece of distributed simulation hardware
CN105374053A (en) * 2015-11-12 2016-03-02 启安动物行为学科技股份有限公司 Sole pressure distribution acquisition method in rat gait analysis, device and system
US10679521B1 (en) * 2017-05-15 2020-06-09 Lockheed Martin Corporation Generating a three-dimensional physical map using different data sources
KR102021979B1 (en) * 2018-06-28 2019-09-18 (주)아레스 ABM-based route search method and system for emergency response of radiation accident
CN113392106A (en) * 2021-05-31 2021-09-14 东南大学 Multi-agent traffic simulation data storage and updating method
CN113761618A (en) * 2021-08-03 2021-12-07 武汉光庭信息技术股份有限公司 3D simulation road network automation construction method and system based on real data
CN113724386A (en) * 2021-08-05 2021-11-30 甘肃科诺影视科技有限责任公司 Method for making three-dimensional map
CN113593051A (en) * 2021-08-06 2021-11-02 浙江远算科技有限公司 Live-action visualization method, dam visualization method and computer equipment
CN114067062A (en) * 2022-01-17 2022-02-18 深圳慧拓无限科技有限公司 Method and system for simulating real driving scene, electronic equipment and storage medium
CN115290104A (en) * 2022-07-14 2022-11-04 襄阳达安汽车检测中心有限公司 Simulation map generation method, device, equipment and readable storage medium
CN115563745A (en) * 2022-08-25 2023-01-03 湖南视比特机器人有限公司 Construction method of industrial simulation role, simulation system and industrial production line
CN115574834A (en) * 2022-10-13 2023-01-06 云控智行科技有限公司 Intelligent driving scene simulation method, device and equipment based on script

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JUNG-HWAN KIM等: "Hemispherical 3D Around View Monitoring Algorithm Using Image Synthesis of Multi-Channel Cameras", 《2018 15TH INTERNATIONAL CONFERENCE ON CONTROL, AUTOMATION, ROBOTICS AND VISION (ICARCV)》 *
刘素琼;王万亮;邢晓刚;顾鸣;周莉;: "扎染复杂图案的数字仿真设计", 印染助剂, no. 06 *
赵昌亮;: "Arcgis在坡耕地水土流失综合治理设计中的应用", 山西水土保持科技, no. 02 *

Also Published As

Publication number Publication date
CN116030211B (en) 2023-06-20

Similar Documents

Publication Publication Date Title
CN116306856B (en) Deep learning model deployment method and device based on search
CN114554395A (en) Positioning accuracy prediction method and device, and signal source layout determination method and device
CN116030211B (en) Method and device for constructing simulation map, storage medium and electronic equipment
CN117635822A (en) Model training method and device, storage medium and electronic equipment
CN117093862A (en) Model training method and device, electronic equipment and storage medium
CN116091895B (en) Model training method and device oriented to multitask knowledge fusion
CN116245051A (en) Simulation software rendering method and device, storage medium and electronic equipment
CN115618748B (en) Model optimization method, device, equipment and storage medium
CN115618649B (en) Chess deduction system
CN107369192B (en) Connection relation processing method and device
CN115526058A (en) Command decision system
CN115018866A (en) Boundary determining method and device, storage medium and electronic equipment
CN117173321B (en) Method and device for selecting three-dimensional reconstruction texture view
CN116384038B (en) Combat behavior modeling simulation system
CN114520770B (en) Topology diagram generation method, device, equipment and medium of network equipment
CN116109008B (en) Method and device for executing service, storage medium and electronic equipment
CN117406982B (en) Integrated storage and calculation application generation system and method, storage medium and equipment
CN115841335B (en) Data processing method, device and equipment
CN115880685B (en) Three-dimensional target detection method and system based on volntet model
CN115830196B (en) Virtual image processing method and device
CN116563387A (en) Training method and device of calibration model, storage medium and electronic equipment
CN118053153A (en) Point cloud data identification method and device, storage medium and electronic equipment
CN117591217A (en) Information display method, device, equipment and storage medium
CN114115672A (en) Object processing method, device, equipment and medium
CN117079274A (en) Training method and device for recognition model, storage medium and electronic equipment

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