Graph image creation method
The described method generates graph images that accurately depict production line equipment layouts by placing 3D models in a virtual space and setting camera viewpoints, enhancing representation and model reuse in graph images.
Patent Information
- Application Number
- JP2023065357
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2024-10-25
Smart Images

Figure 2024151727000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a graph image generating method. [Background technology]
[0002] Graphs that express the relationships between multiple objects with nodes and edges are used in various fields because they can express complex relationships concisely. Patent Document 1 discloses an information processing device that includes a device extraction unit that extracts a description of each device from a control program in which multiple devices are described and dependencies between the devices are described, and a control algorithm for the multiple devices is defined by the descriptions of the multiple devices and the descriptions of the dependencies between the devices, a dependency extraction unit that extracts a description of the dependencies between the devices from the control program, and a graph generation unit that generates a closed-loop directed graph in which nodes represent devices, directed edges represent dependencies between devices, and the control algorithm defined in the control program is represented by connections between nodes and directed edges, based on the descriptions of the devices extracted by the device extraction unit and the descriptions of the dependencies between the devices extracted by the dependency extraction unit. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2012-256178 A Summary of the Invention [Problem to be solved by the invention]
[0004] The invention described in Patent Document 1 leaves room for improvement in the generation of graph images. [Means for solving the problem]
[0005] A graph image generating method according to a first aspect of the present invention is a graph image generating method executed by a computing device having a memory unit that stores a graph having each of a plurality of pieces of equipment that constitute a production line as a node, and a three-dimensional model corresponding to each of the nodes, and includes a three-dimensional arrangement step of arranging the three-dimensional models of the plurality of pieces of equipment in a virtual space, a camera setting step of setting a camera viewpoint in the virtual space, and a graph image generating step of arranging the nodes at positions corresponding to each of the pieces of equipment as seen from the camera viewpoint, and generating a graph image. Effect of the Invention
[0006] According to the present invention, a graph image that reflects facility layout can be provided. [Brief description of the drawings]
[0007] [Figure 1] Functional block diagram of the computing device [Diagram 2] FIG. 1 is a diagram showing an example of graph data in the first embodiment; [Diagram 3] Hardware configuration diagram of the computing device [Figure 4] FIG. 13 is a diagram showing an example of a facility image and a graph image. [Diagram 5] Flowchart showing processing by a simple viewpoint determination unit [Figure 6] A flowchart showing a process performed by a detailed viewpoint determination unit. [Figure 7] FIG. 13 is a diagram showing an example of step S312 and step S314. [Figure 8] FIG. 13 is a diagram for explaining the process of step S315. [Figure 9] A diagram showing the processing of steps S316, S317, and S319. [Figure 10] A diagram showing a display screen output by a simulation program. [Figure 11] FIG. 13 is a diagram showing an example of graph data in the second embodiment; [Figure 12] FIG. 12 shows the movement of the work model corresponding to FIG. 11. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] --First embodiment-- Hereinafter, a first embodiment of a graph image generating method will be described with reference to FIGS.
[0009] FIG. 1 is a functional block diagram showing the functions of the arithmetic device 10 as blocks. However, FIG. 1 also shows data stored in a storage device 4 included in the arithmetic device 10. The arithmetic device 10 reads data related to a production line and outputs it as an image. The arithmetic device 10 includes, as its functions, a model placement unit 11, a simple viewpoint determination unit 12, a detailed viewpoint determination unit 13, an equipment image generation unit 14, a graph image generation unit 15, and an input / output unit 19. Hereinafter, the process executed by the model placement unit 11 is also referred to as a "three-dimensional placement step." The process executed by the simple viewpoint determination unit 12 and the detailed viewpoint determination unit 13 is also referred to as a "camera setting step." The process executed by the graph image generation unit 15 is also referred to as a "graph image generation step."
[0010] The storage device 4 stores a plurality of graph data 41, a group of 3D models 42, a simulation program 43, an equipment image 45, and a graph image 46. The plurality of graph data 41, the group of 3D models 42, and the simulation program 43 are stored in advance in the storage device 4. The equipment image 45 and the graph image 46 are generated by the simulation program 43.
[0011] Each piece of graph data 41 includes a plurality of nodes and edges connecting the nodes. Each piece of graph data 41 represents, for example, an entire or part of a production line. The nodes are, for example, feeders, conveyors, robot arms, grippers, etc. The graph data 41 will be described in detail later.
[0012] The 3D model group 42 is a three-dimensional model, i.e., a 3D model, of all the equipment included in the production line. The 3D model group 42 is used to generate an equipment image 45. Each 3D model included in the 3D model group 42 is associated with a model ID 413, which is an identifier of the 3D model and will be described later. Each 3D model includes at least data of the outer shape including dimensions, and data of the connection points with other equipment. In this embodiment, the connection points with other equipment are called a first connection, a second connection, a third connection, and the like. The 3D model may include data such as material, weight, texture, and the like, and may include dimensions of a bounding box, which is the smallest rectangular parallelepiped that contains the 3D model.
[0013] The simulation program 43 executes a simulation regarding a production line. Hereinafter, a production line that is the processing target of the simulation program 43 is called a "processing target line." As will be described later, equipment can be added to the processing target line by using a graph image 46.
[0014] The equipment image 45 is a two-dimensional image of a production line arranged in a virtual space. The graph image 46 is an image showing the graph structure of the production line. As will be described in detail later, the equipment image 45 and the graph image 46 are representations of the same production line in different formats.
[0015] Fig. 2 is a diagram showing an example of graph data 41. The graph data 41 includes data on all nodes and edges that make up a certain production line. Although only three nodes are shown in Fig. 2 for convenience of drawing, the number of nodes that make up a production line can be two or more, and there is no upper limit. The graph data 41 includes a node identifier 411, a display name 412, a model ID 413, a first connection 414, a second connection 415, and a third connection 416 for each node.
[0016] The node identifier 411 is an identifier for identifying a node. All the node identifiers 411 included in the same graph data 41 have different values. The display name 412 is the name of the facility corresponding to the node and is used to generate the graph image 46. The model ID 413 is an identifier of the three-dimensional model of the facility corresponding to the node. By using this three-dimensional model identifier, a desired three-dimensional model can be identified from multiple three-dimensional models stored in the 3D model group 42. Facility of the same type, or more precisely, facility with the same model number, will have the same model ID 413 value.
[0017] The first connection 414, the second connection 415, and the third connection 416 are node identifiers of other facilities connected to the facility. The connection locations are specified in advance for each type of facility, more precisely, for each model number of the facility. For example, in the three-dimensional model of each facility included in the 3D model group 42, locations corresponding to the first connection, the second connection, and the third connection are set. However, if there are less than three connection locations, a message indicating that the connection is not possible, such as "n / a," is written, and if the connection is possible but the connection destination is not set, "none" is written.
[0018] In the example shown in FIG. 2, the first connection 414 of the first conveyor with the node identifier 411 of "N001" is "N002". Also, the second connection 415 of the second conveyor with the node identifier 411 of "N002" is "N001". Therefore, it is shown that the first connection point of the three-dimensional model with the model ID 413 of "M1021" is connected to the second connection point of the three-dimensional model with the model ID 413 of "M1022". Also, it is shown that the gripper with the node identifier 411 of "N010" has only one connection point and is connected to the equipment with the node identifier 411 of "N032". Returning to FIG. 1, the explanation will be continued.
[0019] The model placement unit 11 reads any of the graph data 41, and places a 3D model of the production line in a virtual space, which is a virtual three-dimensional space. For example, the origin of the virtual space is set to the central coordinates of the first equipment in the graph data 41. The processing of the model placement unit 11 is not particularly limited, but for example, the production line can be placed in the virtual space by the following method.
[0020] First, the model placement unit 11 identifies the graph data 41 to be read, and reads the 3D model corresponding to the model ID 413 of the node described first from the 3D model group 42. Next, the model placement unit 11 places the first 3D model read in an arbitrary position in the virtual space in an arbitrary posture. Next, the model placement unit 11 reads from the 3D model group 42 the model ID 413 of the node identifier 411 described in the first connection 414, the second connection 415, and the third connection 416 of the first 3D model. Then, it connects to the corresponding connection location. The model placement unit 11 continues this process until 3D models corresponding to all nodes included in the graph data 41 to be read are placed in the virtual space.
[0021] For example, in the example shown in Fig. 2, a first conveyor with node identifier 411 "N001" written at the top is placed in the virtual space. Next, a second conveyor with node identifier 411 "N002" written in first connection 414 of the first conveyor is placed in the virtual space. Furthermore, a piece of equipment with node identifier 411 "N003" written in first connection 414 of the second conveyor is placed in the virtual space.
[0022] The input / output unit 19 accepts operations by a human user who uses the arithmetic device 10, and outputs the generated equipment image 45 and graph image 46. The input by the user to the arithmetic device 10 is the selection of graph data 41 and a change of the camera viewpoint in the virtual space. The input / output unit 19 is, for example, a mouse, a keyboard, and a liquid crystal display. However, the input / output unit 19 may substitute data input / output for accepting operations from a human and outputting images. In this case, the input / output unit 19 is realized by a network interface card or the like.
[0023] The simple viewpoint determination unit 12 determines an initial camera viewpoint in the virtual space using principal component analysis. The detailed viewpoint determination unit 13 determines an initial camera viewpoint in the virtual space using a calculation method described later. The simple viewpoint determination unit 12 and the detailed viewpoint determination unit 13 have in common the fact that they both determine a camera viewpoint. The user may select which one to use, or one may be selected in advance.
[0024] The equipment image generation unit 14 generates an equipment image 45 based on a 3D model of the production line arranged in the virtual space and the set camera viewpoint. An initial value of the camera viewpoint is set by the simple viewpoint determination unit 12 or the detailed viewpoint determination unit 13, and is updated by a user's input to the input / output unit 19. The processing by the equipment image generation unit 14 is a rendering process known in the field of three-dimensional computer graphics.
[0025] The graph image generating unit 15 generates a graph image 46 based on the 3D model of the production line arranged in the virtual space and the set camera viewpoint. The initial value of the camera viewpoint is set by the simple viewpoint determining unit 12 or the detailed viewpoint determining unit 13, and is updated by a user's input to the input / output unit 19. Specifically, the graph image generating unit 15 first places the display name 412 of the node at the center position of each piece of equipment as seen from the camera viewpoint.
[0026] Next, the graph image generating unit 15 refers to the graph data 41 and connects the nodes that are physically connected with each other with edges. Specifically, the graph image generating unit 15 identifies the node described in the first connection 414 in each node, and sets an edge connecting the node and the node described in the first connection 414. Similarly, it sets edges connecting the nodes described in the second connection 415 and the third connection 416. However, the graph image generating unit 15 adjusts the positions so that the display names 412 do not overlap each other. For example, if the center position of another node exists within a predetermined number of pixels, the graph image generating unit 15 moves the display name 412 away from the center by a distance according to the size of the display name 412.
[0027] 3 is a hardware configuration diagram of the arithmetic device 10. The arithmetic device 10 includes a CPU 1 which is a central processing unit, a ROM 2 which is a read-only storage device, a RAM 3 which is a readable and writable storage device, a storage device 4 which is a non-volatile storage device, an input / output device 5 which is a user interface, and a communication device 7. The CPU 1 deploys a program stored in the ROM 2 into the RAM 3 and executes it to realize a model placement unit 11, a simple viewpoint determination unit 12, a detailed viewpoint determination unit 13, an equipment image generation unit 14, and a graph image generation unit 15.
[0028] The arithmetic device 10 may be realized by a field programmable gate array (FPGA) that is a rewritable logic circuit or an application specific integrated circuit (ASIC) that is an integrated circuit for a specific application, instead of the combination of the CPU 1, the ROM 2, and the RAM 3. The arithmetic device 10 may also be realized by a combination of different configurations, for example, a combination of the CPU 1, the ROM 2, the RAM 3, and an FPGA, instead of the combination of the CPU 1, the ROM 2, and the RAM 3.
[0029] Fig. 4 is a diagram showing an example of an equipment image 45 and a graph image 46. In the equipment image 45 shown in Fig. 4, there are a vertically extending conveyor and a horizontally extending conveyor, and a robot arm is disposed near the position where the two conveyors intersect. In addition, a controller is disposed to the left of the robot arm.
[0030] 4, the display names 412 are arranged at the center positions of the pieces of equipment in the graph image 46. That is, in the graph image 46 generated by the calculation device 10, the positional relationship between the pieces of equipment is substantially the same as that of the equipment image 45. However, the positions are adjusted so that the display names 412 do not overlap each other.
[0031] FIG. 5 is a flowchart showing the processing by the simple viewpoint determination unit 12. Before the simple viewpoint determination unit 12 starts the processing, the model placement unit 11 has completed placement of the 3D model in the virtual space. First, in step S301, the simple viewpoint determination unit 12 calculates the center coordinates of each piece of equipment placed in the virtual space. In the following step S302, the simple viewpoint determination unit 12 extracts two axes with the largest variation in each center coordinate by principal component analysis. In the following step S303, the simple viewpoint determination unit 12 specifies the camera position and camera orientation corresponding to the two axes extracted in step S302, and ends the processing shown in FIG. 5. In step S303, the camera position and orientation are determined so that all the equipment placed in the virtual space fits within the camera's angle of view.
[0032] Fig. 6 is a flowchart showing the processing by the detailed viewpoint determination unit 13. The processing of the flowchart shown in Fig. 6 will be described below with reference to Fig. 7 to Fig. 9. Before the simple viewpoint determination unit 12 starts the processing, the model placement unit 11 has completed placement of the 3D model in the virtual space.
[0033] First, in step S311, the detailed viewpoint determination unit 13 calculates a bounding box, which is a rectangular parallelepiped that covers the entire production line placed in the virtual space by the model placement unit 11. In the following step S312, the detailed viewpoint determination unit 13 generates the smallest sphere or hemisphere that contains the bounding box calculated in step S311, generates n viewpoint coordinates with uniform density on the spherical surface, and proceeds to step S313. Note that one of these n viewpoint coordinates will be selected later as the camera position.
[0034] In step S313, the detailed viewpoint determination unit 13 sets target viewpoint coordinates, which are the viewpoint coordinates of the processing target. Specifically, the detailed viewpoint determination unit 13 sets one unselected viewpoint coordinate among the n viewpoint coordinates as the target viewpoint coordinates. In the following step S314, the detailed viewpoint determination unit 13 generates a parallel projection image when looking from the target viewpoint coordinates toward the center of the sphere generated in step S312. Hereinafter, this parallel projection image may be referred to as a "temporary plane image."
[0035] Fig. 7 is a diagram showing an example of step S312 and step S314. The spiral curve described above the production line in Fig. 7 is arranged on the surface of the generated sphere. The white circle arranged on this curve is the viewpoint coordinate. Fig. 7 also shows a parallel projection image generated in step S314 when the viewpoint coordinates of V1 and V2 are set as the target viewpoint coordinates. Returning to Fig. 6, the explanation will be continued.
[0036] In the next step S315, the detailed viewpoint determination unit 13 counts the number of pixels occupied by each piece of equipment in the parallel projection image.
[0037] FIG. 8 is a diagram for explaining the process of step S315. The upper part of FIG. 8 shows a parallel projection image in the case where the viewpoint coordinate V2 in FIG. 7 is set as the target viewpoint coordinate, and the lower part of FIG. 8 shows a conceptual diagram for counting the occupied pixels of each piece of equipment. In the parallel projection image at the viewpoint coordinate V2, four conveyors are lined up in the horizontal direction as shown, and a robot arm with a gripper is arranged at the back of the four conveyors toward the right of the center. In addition, three conveyors are lined up in the vertical direction as shown at the back of the four conveyors toward the left of the center. A cubic controller is arranged behind the robot arm. Note that in FIG. 8, for convenience of drawing, the grippers are drawn integrally with the robot arm with a space between each piece of equipment.
[0038] In step S315, the area of each hatch, which is the pixels occupied by each piece of equipment, is counted as shown in the lower part of Fig. 8. At this time, if the entirety of a piece of equipment is not visible because other equipment is placed in front of it, only the area that is shown is evaluated without taking into account the hidden area. For example, if there is other equipment in front of a piece of equipment and it is completely invisible from the viewpoint to be evaluated, the number of pixels occupied by that equipment is zero. Let's return to Fig. 6 and continue the explanation.
[0039] In the next step S316, the detailed viewpoint determination unit 13 calculates the normalized pixel count for each piece of equipment. The normalized pixel count is the value obtained by dividing the pixel count for each piece of equipment counted in step S315 by the area of the bounding box for each piece of equipment. The normalized pixel count is calculated for each piece of equipment in the production line.
[0040] In the next step S317, the detailed viewpoint determination unit 13 calculates the minimum value of the normalized pixel counts calculated in step S316 as a viewpoint evaluation value. In the next step S318, the detailed viewpoint determination unit 13 judges whether or not all viewpoint coordinates generated in step S312 have been processed. If the detailed viewpoint determination unit 13 judges that all viewpoint coordinates have been processed, the process proceeds to step S319, and if it judges that at least one viewpoint coordinate has not been processed, the process returns to step S313. In step S319, the detailed viewpoint determination unit 13 identifies the viewpoint with the maximum viewpoint evaluation value and ends the process shown in FIG. 6.
[0041] Fig. 9 is a diagram showing the processing of steps S316, S317, and S319. In the example shown in Fig. 9, however, there are three viewpoint coordinates, V1 to V3, and seven pieces of equipment constituting the production line, N001 to N007. Since the minimum normalized pixel count at viewpoint coordinate V1 is "10", the viewpoint evaluation value of viewpoint coordinate V1 is "10". Similarly, the viewpoint evaluation value of viewpoint coordinate V2 is "12", and the viewpoint evaluation value of viewpoint coordinate V3 is "8". Since the maximum of the three viewpoint evaluation values is "12", viewpoint coordinate V2 is selected.
[0042] 10 is a diagram showing a display screen 430 output by the simulation program 43. A processing target line 431 is displayed at the top of the display screen 430. When the user presses an existing model load button 432, a list of existing models (not shown) is displayed, and when the user selects one of the models, a graph image 46 of the selected model is displayed. The list of existing models may be displayed by file name or creation date and time, or may be a thumbnail of the graph image 46.
[0043] The user can select each node of the graph image 46 on the display screen 430 by using the input / output unit 19. The user selects the necessary nodes according to the purpose while checking the connection relationship of the nodes, and when the user presses the selected model addition button 433, a three-dimensional model corresponding to the selected node is added to the processing target line 431. When the user wants to reuse the "third conveyor", it can be assumed that the directly connected nodes are necessary to reproduce its function, so the user also selects the "second conveyor" and the "fourth conveyor". In order to support the selection operation of such highly related nodes, the selection mode switching radio button 434 can be used to switch between manual selection, automatic selection of any number of connection destinations, and selection of all connected nodes at once. For example, in the case of a mode in which up to one destination is selected, when the user selects the "third conveyor", the "second conveyor" and the "fourth conveyor" are also automatically selected, and in the case of a mode in which all connection destinations are selected, the "first conveyor", the "third conveyor", and the "fourth conveyor" are also selected.
[0044] According to the above-described first embodiment, the following advantageous effects can be obtained. (1) A calculation device 10 having a storage device 4 storing a graph having, as a node, each of a plurality of pieces of equipment constituting a production line, and a group of 3D models 42 corresponding to each of the nodes, executes the following graph image generation method. That is, this graph image generation method includes a three-dimensional arrangement step of arranging three-dimensional models of a plurality of pieces of equipment in a virtual space, executed by a model arrangement unit 11, a camera setting step of setting a camera viewpoint in the virtual space, executed by a simple viewpoint determination unit 12 and a detailed viewpoint determination unit 13, and a graph image generation step of arranging the nodes at positions corresponding to each piece of equipment as seen from the camera viewpoint, and generating a graph image 46, executed by a graph image generation unit 15. Therefore, the calculation device 10 can provide a graph image 46 that reflects the equipment arrangement.
[0045] (2) In the graph image generation step, edges that connect nodes together are set based on physical connections.
[0046] (3) The arithmetic device 10 includes an input / output unit 19 that accepts input from a user, and a simulation program 43 that executes a simulation of a target line, which is a production line to be processed. The processing of the simulation program 43 includes a three-dimensional model adding step of adding a three-dimensional model corresponding to a selected node in the graph image 46 to the target line when an add selected model button 433 is pressed by an input to the input / output unit 19. Therefore, an existing model can be easily added to the target line, and the model can be easily reused.
[0047] (4) The simple viewpoint determination unit 12 sets the camera viewpoint so that the variation in the positions of the multiple pieces of equipment is large using principal component analysis, so that the camera viewpoint can be determined quickly with a small amount of calculation.
[0048] (5) The detailed viewpoint determination unit 13 sets the camera viewpoint so that the ratio of pixels and area of the equipment that occupies the smallest number of pixels to the proportion of each equipment area among the pixels in which each of the multiple equipment is drawn in a planar image of the multiple equipment from the camera viewpoint is maximized. Therefore, the graph image 46 can be generated from a viewpoint where the equipment does not overlap with each other.
[0049] (6) The detailed viewpoint determination unit 13 includes a provisional setting step (S312 in FIG. 6) of setting a plurality of provisional viewpoints, a provisional image generation step (S314) of generating provisional plane images which are planar images when a three-dimensional model of the production line is viewed from the plurality of provisional viewpoints, and a viewpoint evaluation step (S315-S319) of calculating a viewpoint evaluation value which is the minimum value among values obtained by dividing the number of occupied pixels for each piece of equipment in each provisional plane image by the area of the bounding box for each piece of equipment, and setting the provisional viewpoint corresponding to the provisional plane image with the largest viewpoint evaluation value as the camera viewpoint.
[0050] (7) A virtual plane image is generated as a parallel projection image (S314), and the number of pixels occupied by each piece of equipment is normalized by dividing it by the area of the bounding box for each equipment model (S316). This makes it possible to evaluate the proportion of equipment that appears in the image without being affected by factors such as the focal length of the camera or the size of each equipment model.
[0051] (8) The arithmetic device 10 has an input / output unit 19 that receives input from a user, and changes the camera viewpoint based on the input to the input / output unit 19. This allows the user to adjust the camera viewpoint.
[0052] (Variation 1) In the first embodiment described above, edges are set by physical connections between the equipment. However, the generation of edges is not limited to physical connections between the equipment. For example, edges may be set based on the connection relationship of signal lines or the input / output relationship of operation commands. For example, a controller that outputs an operation command to a robot arm may be connected to the robot arm by an edge. The input / output relationship of the operation command may be included in the graph data 41 or may be included in data not shown.
[0053] (Variation 2) In the first embodiment described above, normalization is performed by dividing by the area of the bounding box in the 3D model of each facility in step S316 in FIG. 6. However, the value by which the number of pixels is divided for normalization is not limited to the area of the bounding box, and may be any value related to the dimensions of the 3D model. For example, the length of the diagonal of the bounding box may be used instead of the area of the bounding box, or the diameter of the smallest sphere that contains the 3D model may be used. Furthermore, step S316 may be substituted by setting the number of projected pixels for each facility to a constant value while ignoring the overlap between facilities in the parallel projection image.
[0054] (Variation 3) In the above-mentioned first embodiment, it has been explained that the model placement unit 11, the simple viewpoint determination unit 12, the detailed viewpoint determination unit 13, the equipment image generation unit 14, and the graph image generation unit 15 are realized by the programs stored in the ROM 2. However, the model placement unit 11, the simple viewpoint determination unit 12, the detailed viewpoint determination unit 13, the equipment image generation unit 14, and the graph image generation unit 15 may be included in the simulation program 43.
[0055] (Variation 4) The arithmetic device 10 does not need to include the equipment image generating unit 14. The arithmetic device 10 is essentially configured to generate the graph image 46, and the function of outputting the equipment image 45 is optional.
[0056] (Variation 5) In the first embodiment described above, in step S316, the number of pixels occupied by each piece of equipment is normalized by dividing the area in which the equipment is drawn in the virtual planar image by the area of the bounding box in the 3D model of the equipment. However, the value by which the number of pixels is divided for normalization is not limited to the area of the bounding box, and may be any value related to the dimensions of the 3D model. For example, the length of the diagonal of the bounding box may be used instead of the area of the bounding box, or the diameter of the smallest sphere that contains the 3D model may be used.
[0057] --Second embodiment-- A second embodiment of the graph image generating method will be described with reference to Figs. 11 and 12. In the following description, the same components as in the first embodiment are given the same reference numerals, and differences will be mainly described. Points that are not particularly described are the same as in the first embodiment. This embodiment differs from the first embodiment mainly in that connections between pieces of equipment are determined based on the movement of a work model.
[0058] FIG. 11 is a diagram showing an example of graph data 41A in the second embodiment. Graph data 41A includes not only physical connections but also movement data of a work model moving on a production line. Specifically, graph data 41A includes an object 417, a movement source 418, and a movement destination 419 in addition to the data contained in graph data 41 in the first embodiment. Object 417 is an identifier of the work model to be moved by equipment. Move source 418 is a node identifier 411 of equipment on which the work model is placed before the movement. Move destination 419 is a node identifier 411 of equipment on which the work model is placed after the movement.
[0059] The example shown in FIG. 11 indicates that a piece of equipment with a display name 412 of “Gripper” is moving a work model with an identifier “W001” from a piece of equipment with a node identifier 411 of “N005” to a piece of equipment with a node identifier 411 of “N003.”
[0060] Fig. 12 is a diagram showing the movement of the work model corresponding to Fig. 11. In Fig. 12, the gripper with node identifier "N010" moves the work model W001 from the second conveyor with node identifier "N005" to the conveyor with node identifier "N003".
[0061] The graph image generating unit 15A in this embodiment performs the following process in addition to the process of the graph image generating unit 15 in the first embodiment. That is, the graph image generating unit 15A sets an edge based on the movement of the work model by referring to the graph data 41A. Specifically, the graph image generating unit 15A identifies the nodes described in the movement source 418 and the movement destination 419 for each node, sets an edge between the node and the movement source 418, and sets an edge between the node and the movement destination 419.
[0062] According to the above-described second embodiment, the following advantageous effects can be obtained in addition to the advantageous effects of the first embodiment. (9) In the graph image generation step, edges are set to connect nodes based on the movement of the work model. Therefore, the source and destination of the work model, and the equipment to which the work model is moved can be connected together with edges, so that related nodes can be selected at once.
[0063] In each of the above-mentioned embodiments and modifications, the configuration of the functional blocks is merely an example. Some functional configurations shown as separate functional blocks may be integrated, or a configuration shown in one functional block diagram may be divided into two or more functions. In addition, some of the functions of each functional block may be provided by other functional blocks.
[0064] In the above-described embodiments and modifications, the program is stored in the ROM 2, but the program may be stored in the storage device 4. The arithmetic device 10 may have an input / output interface (not shown), and the program may be read from another device via the input / output interface and a medium available to the arithmetic device 10 when necessary. The medium here refers to, for example, a storage medium that is detachable from the input / output interface, or a communication medium, i.e., a network such as a wired, wireless, or optical network, or a carrier wave or digital signal that propagates through the network. Some or all of the functions realized by the program may be realized by a hardware circuit or an FPGA.
[0065] The above-mentioned embodiments and modifications may be combined with each other. Although various embodiments and modifications have been described above, the present invention is not limited to these. Other aspects that are conceivable within the scope of the technical idea of the present invention are also included in the scope of the present invention. [Explanation of symbols]
[0066] 10: Arithmetic device 11: Model placement section 12: Simple viewpoint determination unit 13: Detailed viewpoint determination section 14: Facility image generation unit 15: Graph image generation section 19: Input / output section 41: Graph data 42: 3D models 43: Simulation program 45: Facility image 46: Graph image W001: Work model
Claims
1. A graph image generating method executed by a computing device having a memory unit that stores a graph having a plurality of pieces of equipment constituting a production line as nodes and a three-dimensional model corresponding to each of the nodes, the method comprising: a three-dimensional arrangement step of arranging three-dimensional models of the plurality of facilities in a virtual space; a camera setting step of setting a camera viewpoint in the virtual space; a graph image generating step of arranging the nodes at positions corresponding to each of the pieces of equipment as seen from the camera viewpoint and generating a graph image.
2. 2. The graph image generating method according to claim 1, A graph image generating method, wherein in the graph image generating step, edges connecting the nodes together are set based on physical connections.
3. 2. The graph image generating method according to claim 1, A graph image generating method, wherein in the graph image generating step, edges connecting the nodes are set based on a movement of a work model.
4. 2. The graph image generating method according to claim 1, The arithmetic device further includes an input unit that receives an input from a user, and a simulation execution unit that executes a simulation regarding a processing target line that is a processing target production line, The graph image generating method further includes a three-dimensional model adding step of selecting one or more of the nodes in the graph image as a selected node by inputting to the input unit, and adding the selected node to the processing target line by executing an instruction to add a model to the processing target line.
5. 2. The graph image generating method according to claim 1, A graph image generating method, wherein in the camera setting step, the camera viewpoint is set so that the variation in the positions of each of the multiple pieces of equipment is increased using principal component analysis.
6. 2. The graph image generating method according to claim 1, The camera setting step includes: A graph image generating method in which the camera viewpoint is set so that in a planar image of the multiple pieces of equipment viewed from the camera viewpoint, the ratio of pixels to area of the equipment that occupies the smallest number of pixels among the pixels in which each of the multiple pieces of equipment is drawn is maximized.
7. 7. The graph image generating method according to claim 6, The camera setting step includes: A provisional setting step of setting a plurality of provisional viewpoints; a provisional image generating step of generating provisional planar images which are planar images obtained when the three-dimensional model of the production line is viewed from each of the plurality of provisional viewpoints; a viewpoint evaluation step of calculating a viewpoint evaluation value, which is the minimum value among values obtained by dividing the number of occupied pixels for each piece of equipment in each of the virtual plane images by a value related to a dimension of the three-dimensional model for each piece of equipment, and setting the virtual viewpoint corresponding to the virtual plane image with the largest viewpoint evaluation value as the camera viewpoint.
8. The graph image generating method according to claim 7, A graph image generation method in which the number of projected pixels for each piece of equipment, ignoring overlap between the pieces of equipment on the temporary planar image generated in the temporary image generation step, is the same, or the number of occupied pixels for each piece of equipment is normalized by dividing it by a value related to the dimensions of the three-dimensional model of each piece of equipment.
9. 2. The graph image generating method according to claim 1, The computing device further includes an input unit that receives an input from a user, The graph image generating method further includes a viewpoint updating step of changing the camera viewpoint based on an input to the input unit.
10. 2. The graph image generating method according to claim 1, The graph image generating method further includes a planar image generating step of generating a planar image of the plurality of facilities viewed from the camera viewpoint.
Citation Information
Patent Citations
Information processor, information processing method and program
JP2012256178A
