Waiting time determination method and apparatus
Patent Information
- Application Number
- CN202211407994.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-10
- Publication Date
- 2026-09-04
- Estimated Expiration
- 2042-11-10
AI Technical Summary
[0004]本发明实施例提供了一种候车时间确定方法及装置,以至少解决相关技术中由于矿井内信号差,道路曲折,造成的确定车辆所属路段误差大,从而确定出的候车时间不准确,矿井人员存在盲目候车的技术问题
[0015]根据本发明实施例的一个方面,提供了一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现上述任一项所述的候车时间确定方法。
Smart Images

Figure CN115853588B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computers, and more specifically, to a method and apparatus for determining waiting time. Background Technology
[0002] The terrain within mines is complex, and miners typically travel to their work sites by personnel vehicle. Fixed waiting areas are established within the mine for miners to wait for their vehicles. However, as production progresses, the tunnels become longer, the number of waiting areas increases, and waiting times gradually lengthen. Furthermore, the poor signal strength and winding roads within mines lead to significant errors in determining the vehicle's route, resulting in inaccurate waiting times.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a method and apparatus for determining waiting time, which at least solves the technical problem in related technologies where poor signal and winding roads in mines cause large errors in determining the road segment to which a vehicle belongs, resulting in inaccurate waiting time and mine personnel waiting blindly for buses.
[0005] According to one aspect of the present invention, a method for determining waiting time is provided, comprising: acquiring the two-dimensional coordinate position of a target vehicle within a mine, the vehicle speed of the target vehicle, and a predetermined travel route of the target vehicle, wherein the two-dimensional coordinate position is obtained based on a coordinate system established with the predetermined position as the origin; determining a plurality of enclosed areas based on the predetermined travel route; determining a target enclosed area from the plurality of enclosed areas based on the two-dimensional coordinate position; determining a target distance from the target vehicle to a target waiting location based on the two-dimensional coordinate position and the target enclosed area; and determining the waiting time for the target vehicle to travel to the target waiting location based on the vehicle speed and the target distance.
[0006] Optionally, determining multiple closed areas based on the predetermined driving route includes: constructing multiple square areas corresponding to the predetermined driving route, wherein each of the multiple square areas has at least one side adjacent to another square area; determining multiple corner points corresponding to the predetermined driving route within the multiple square areas, wherein two corner points located in a square area are diagonally related; and determining the multiple closed areas based on the multiple corner points.
[0007] Optionally, determining the plurality of closed regions based on the plurality of corner points includes: determining a plurality of sets of adjacent corner points among the plurality of corner points; determining the corner point coordinate positions corresponding to the plurality of sets of adjacent corner points respectively, wherein the corner point coordinate positions are obtained based on the coordinate system established with the predetermined position as the origin; and determining the plurality of closed regions based on the corner point coordinate positions corresponding to the plurality of sets of adjacent corner points respectively.
[0008] Optionally, after determining the waiting time for the target vehicle to reach the target waiting location based on the vehicle speed and the target distance, the method further includes: if a waiting screen device is installed at the target waiting location, sending the target distance and the waiting time to the waiting screen device so that the target distance and the waiting time are displayed on the waiting screen device.
[0009] Optionally, after determining the waiting time for the target vehicle to reach the target waiting location based on the vehicle speed and the target distance, the method further includes: if there are multiple target vehicles, obtaining the license plate numbers corresponding to each target vehicle; sending multiple vehicle information messages to the waiting screen device so that the waiting screen device displays the multiple vehicle information messages, wherein each of the multiple vehicle information messages includes a license plate number, the target distance of the target vehicle corresponding to the license plate number, and the waiting time.
[0010] Optionally, determining the target closed region from the plurality of closed regions based on the two-dimensional coordinate position includes: determining the region coordinate range corresponding to the plurality of closed regions respectively; determining the target coordinate range to which the two-dimensional coordinate position belongs from the region coordinate range; and determining the closed region whose coordinate range is the target coordinate range as the target closed region.
[0011] Optionally, obtaining the predetermined driving route of the target vehicle includes: obtaining the computer-aided design CAD drawing of the management software corresponding to the mine, and the target driving task of the target vehicle; determining the route layout corresponding to the mine based on the CAD drawing; and determining the predetermined driving route of the target vehicle from the route layout based on the target driving task.
[0012] Optionally, determining the target distance from the target vehicle to the target waiting location based on the two-dimensional coordinate position and the target enclosed area includes: determining the target order of the target enclosed location within the multiple enclosed areas when the multiple enclosed areas have a predetermined order; and determining the distance from the two-dimensional coordinate position to the target waiting location as the target distance when the target order is the last order.
[0013] Optionally, it further includes: if the target order is not the last order, determining the corner distance from the two-dimensional coordinate position to the target corner point in the target enclosed area, and the diagonal distance of the enclosed area arranged after the target enclosed area; and determining the target distance for the target vehicle to travel to the target waiting position based on the corner distance and the diagonal distance.
[0014] According to one aspect of the present invention, a waiting time determination device is provided, comprising: an acquisition module, configured to acquire a two-dimensional coordinate position of a target vehicle within a mine, the vehicle speed of the target vehicle, and a predetermined travel route of the target vehicle, wherein the two-dimensional coordinate position is obtained based on a coordinate system established with the predetermined position as the origin; a first determination module, configured to determine a plurality of enclosed areas based on the predetermined travel route; a second determination module, configured to determine a target enclosed area from the plurality of enclosed areas based on the two-dimensional coordinate position; a third determination module, configured to determine a target distance from the target vehicle to a target waiting position based on the two-dimensional coordinate position and the target enclosed area; and a fourth determination module, configured to determine the waiting time from the target vehicle to the target waiting position based on the vehicle speed and the target distance.
[0015] According to one aspect of the present invention, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the waiting time determination method described in any of the preceding embodiments.
[0016] According to one aspect of the present invention, a computer-readable storage medium is provided, which, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the waiting time determination method described above.
[0017] In this embodiment of the invention, the two-dimensional coordinate position, speed, and predetermined route of the target vehicle within the mine are obtained. The two-dimensional coordinate position is obtained based on a coordinate system established with the predetermined position as the origin. Multiple closed areas are then determined based on the predetermined route. A target closed area is then determined from these closed areas based on the two-dimensional coordinate position. The target distance from the target vehicle to the target waiting location is then determined based on the two-dimensional coordinate position and the target closed area. Finally, the waiting time for the target vehicle to reach the target waiting location is determined based on the vehicle speed and the target distance. Since the target distance and speed between the target vehicle and the target waiting location can be determined, the waiting time for the target vehicle to reach the target waiting location can be determined. Furthermore, because the road segment to which the target vehicle belongs is determined by identifying the target closed area, the determined road segment is more accurate. This achieves the technical effect of accurately and quickly determining the waiting time, thereby solving the technical problem in related technologies where poor signal and winding roads in mines cause large errors in determining the road segment to which the vehicle belongs, resulting in inaccurate waiting times and mine personnel waiting blindly. Attached Figure Description
[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0019] Figure 1 This is a flowchart of a method for determining waiting time according to an embodiment of the present invention;
[0020] Figure 2 This is a schematic diagram of the positioning coordinates of the target vehicle provided by an optional embodiment of the present invention;
[0021] Figure 3 This is a schematic diagram of two roads provided by an optional embodiment of the present invention;
[0022] Figure 4 This is a schematic diagram of the route from the wellhead to the LED waiting screen provided by an optional embodiment of the present invention;
[0023] Figure 5 This is a schematic diagram of multiple quadrilateral regions provided in an optional embodiment of the present invention;
[0024] Figure 6 This is a schematic diagram of multiple corner points provided by an optional embodiment of the present invention;
[0025] Figure 7 This is a structural block diagram of a waiting time determination device according to an embodiment of the present invention. Detailed Implementation
[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0028] Example 1
[0029] According to an embodiment of the present invention, an embodiment of a waiting time determination method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0030] Figure 1 This is a flowchart of a waiting time determination method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0031] Step S102: Obtain the two-dimensional coordinate position of the target vehicle in the mine, the vehicle speed of the target vehicle, and the predetermined driving route of the target vehicle. The two-dimensional coordinate position is obtained based on a coordinate system established with the predetermined position as the origin.
[0032] Step S104: Based on the predetermined driving route, determine multiple closed areas;
[0033] Step S106: Determine the target closed region from multiple closed regions based on the two-dimensional coordinate position;
[0034] Step S108: Determine the target distance from the target vehicle to the target waiting position based on the two-dimensional coordinate position and the target closed area;
[0035] Step S110: Determine the waiting time for the target vehicle to travel to the target waiting location based on the vehicle speed and the target distance.
[0036] Through the above steps, the two-dimensional coordinates of the target vehicle within the mine, its speed, and its predetermined route are obtained. The two-dimensional coordinates are derived from a coordinate system established with the predetermined location as the origin. Multiple enclosed areas are then determined based on the predetermined route. A target enclosed area is then identified from these areas based on the two-dimensional coordinates. The target distance from the target vehicle to the target waiting location is then determined based on the two-dimensional coordinates and the target enclosed area. Finally, the waiting time for the vehicle to reach the target waiting location is determined based on the vehicle speed and the target distance. Because the target distance and speed between the target vehicle and the target waiting location can be determined, the waiting time can be accurately calculated. Furthermore, since the target road segment is determined by identifying the target enclosed area to which the vehicle belongs, the determined road segment is more accurate. This achieves the technical effect of accurately and quickly determining the waiting time, thereby solving the technical problem in related technologies where poor signal strength and winding roads in mines lead to large errors in determining the vehicle's road segment, resulting in inaccurate waiting times and mine personnel waiting blindly.
[0037] As an optional embodiment, the two-dimensional coordinate position, speed, and predetermined route of the target vehicle within the mine are obtained. The two-dimensional coordinate position is obtained based on a coordinate system established with the predetermined position as the origin. The predetermined position can be the lower left corner of the CAD drawing in the management software's computer-aided design, with the positive x-axis pointing to the right of the CAD drawing and the positive y-axis pointing to the top. By establishing this coordinate system, the two-dimensional coordinate position of the target vehicle can be accurately obtained. The vehicle speed can be obtained through an on-board diagnostic (OBD) system. If the vehicle speed cannot be obtained through OBD, it can be determined by acquiring the distance and time traveled by the vehicle over a historical period. The predetermined route can be determined by the driving instructions transmitted to the vehicle by the system, meaning the vehicle knows which section of road to travel from and where to stop. By obtaining the two-dimensional coordinate position, speed, and predetermined route of the target vehicle within the mine, the smooth movement of the target vehicle can be ensured.
[0038] As an optional embodiment, the predetermined driving route of the target vehicle can be obtained in various ways. For example, it can be obtained by acquiring the computer-aided design (CAD) drawings of the management software corresponding to the mine, as well as the target driving task of the target vehicle. The CAD drawings can reflect in detail the number, location, and direction of roads within the mine, while the target driving task can include the target vehicle's driving direction and destination. Based on the CAD drawings, the route layout corresponding to the mine is determined. Based on the target driving task, the predetermined driving route of the target vehicle is determined from the route layout. In this way, the route layout corresponding to the mine can be determined quickly and accurately, thereby accurately determining the predetermined driving route of the target vehicle.
[0039] As an optional embodiment, multiple closed areas are determined based on a predetermined driving route. These closed areas are large regions defined according to the driving route, used to determine which road segment the target vehicle belongs to. Due to poor signal in mines, winding roads, and the possibility that vehicles may not travel in a straight line, it is difficult to determine which road segment a vehicle belongs to based solely on the coordinate range covered by the road segment, and accurately obtaining the coordinate range covered by the road segment is also very difficult. Therefore, to determine which road segment a vehicle belongs to based on its two-dimensional coordinate position, it is necessary to determine it from large, non-overlapping closed areas. By identifying which closed area the target vehicle belongs to, the road segment can be determined, facilitating subsequent determination of distance and waiting time.
[0040] As an optional embodiment, determining multiple closed areas based on a predetermined driving route can be achieved in various ways. For example, multiple square areas corresponding to the predetermined driving route can be constructed, wherein each of the multiple square areas has at least one side adjacent to another square area. Within these multiple square areas, multiple corner points corresponding to the predetermined driving route are determined, wherein two corner points located within a square area are diagonally related. Based on these corner points, multiple closed areas are determined. This can be understood as follows: in a winding road, whenever two adjacent turning points are encountered, a square area can be constructed. When another turning point is encountered, this turning point and the previous adjacent turning point can also form a square area. These two square areas have one side adjacent to each other, i.e., a common edge. Then, corner points that are diagonally related are determined within the adjacent areas. Based on these corner points, multiple closed areas are determined. The specific steps for determining the closed areas are not described in detail here; the specific determination steps will be introduced in the optional embodiments below. This method can reasonably determine non-overlapping closed areas, which is beneficial for determining the road segment to which the vehicle belongs.
[0041] As an optional embodiment, when determining multiple closed regions based on multiple corner points, various methods can be used. For example, multiple sets of adjacent corner points can be determined; the coordinate positions of the corner points corresponding to the multiple sets of adjacent corner points can be determined respectively, wherein the corner point coordinate positions are obtained based on a coordinate system established with a predetermined position as the origin; and multiple closed regions can be determined based on the coordinate positions of the corner points corresponding to the multiple sets of adjacent corner points respectively. Based on the corner point coordinate positions of two corner points in a quadrilateral region, the closed region corresponding to this quadrilateral region can be quickly determined, and thus multiple closed regions can be quickly determined. As above, the specific steps for determining the closed regions are not described in detail here, but the specific determination steps will be described in the optional embodiments below.
[0042] As an optional implementation, a target enclosed area is determined from multiple enclosed areas based on two-dimensional coordinates. When the two-dimensional coordinates of the target vehicle are located within one of the multiple enclosed areas, it indicates that the target vehicle is located within that enclosed area, i.e., that enclosed area is the target enclosed area. In this way, the target enclosed area where the target vehicle is located can be quickly determined, which is beneficial for subsequent determination of distance and waiting time.
[0043] As an optional implementation, when determining the target closed area from multiple closed areas based on two-dimensional coordinate positions, various methods can be used. For example, this can be achieved by separately determining the coordinate ranges corresponding to the multiple closed areas; determining the target coordinate range to which the two-dimensional coordinate position belongs from the coordinate ranges; and identifying the closed area whose coordinate range is the target coordinate range as the target closed area. In this way, the target closed area can be accurately determined from multiple closed areas using the two-dimensional coordinates of the target vehicle. This avoids the problem of determining the wrong road segment due to positional deviations caused by poor signal strength or winding roads, ensuring that the determined target closed area is the closed area corresponding to the road segment where the target vehicle is located.
[0044] As an optional embodiment, the target distance from the target vehicle to the target waiting location is determined based on the two-dimensional coordinate position and the target enclosed area; the waiting time for the target vehicle to travel to the target waiting location is determined based on the vehicle speed and the target distance. The waiting time can be accurately determined by using the vehicle speed and the target distance.
[0045] As an optional embodiment, after determining the waiting time for the target vehicle to reach the target waiting location based on the vehicle speed and target distance, if a waiting screen device is installed at the target waiting location, the target distance and waiting time can be sent to the waiting screen device so that the target distance and waiting time can be displayed on the waiting screen device. In this way, it can be ensured that people waiting at the target waiting location can accurately and directly obtain the target distance and waiting time of the target vehicle, and the display through the waiting screen device can clearly and prominently display the target distance and waiting time of the target vehicle so that miners can observe it.
[0046] It should be noted that instead of setting up a waiting screen at the target waiting location, the target distance and waiting time of the target vehicle can be sent to other devices that miners can observe, such as their mobile phones. This can also solve the problem of miners waiting blindly in related technologies.
[0047] As an optional embodiment, after determining the waiting time for a target vehicle to reach the target waiting location based on vehicle speed and target distance, if there are multiple target vehicles, the license plate numbers corresponding to each target vehicle can be obtained. Multiple vehicle information entries are then sent to the waiting screen device, causing the screen to display these entries. Each entry includes a license plate number, the target distance to the vehicle corresponding to that license plate number, and the waiting time. This method ensures that people waiting at the target waiting location can accurately and directly obtain multiple vehicle information entries; that is, they can obtain the number of target vehicles, their respective distances from the target waiting location, and their corresponding waiting times.
[0048] As an optional embodiment, determining the target distance from the target vehicle to the target waiting location based on the two-dimensional coordinate position and the target enclosed area includes: when multiple enclosed areas have a predetermined order, determining the target order in which the target enclosed location is located among the multiple enclosed areas, wherein the predetermined order is arranged according to the direction of travel of the target vehicle, that is, the enclosed area first passed by the target vehicle is the first, and the enclosed area last passed by the target vehicle is the last. When the target order is the last, the distance from the two-dimensional coordinate position to the target waiting location is determined as the target distance. That is, when the target vehicle does not need to pass through any turning points to reach the target waiting location, the distance from the two-dimensional coordinate position to the target waiting location is directly determined as the target distance.
[0049] Optionally, if the target order is not the last order, the corner distance from the two-dimensional coordinate position to the target corner point in the target closed area is determined. Generally, there are two corner points in a closed area. The target corner point is the corner point in the direction of travel of the target vehicle. Determining the corner distance from the two-dimensional coordinate position to the target corner point in the target closed area can determine the remaining distance that the target vehicle needs to travel in this closed area, as well as the diagonal distance of the closed areas arranged after the target closed area, that is, the distance that the target vehicle needs to travel in the remaining closed areas. Based on the corner distance and the diagonal distance, the target distance of the target vehicle to the target waiting position can be determined, achieving the effect of accurately and quickly determining the target distance.
[0050] Based on the above embodiments and optional embodiments, an optional implementation method is provided, which is described in detail below.
[0051] The relevant technology cannot determine the waiting time for personnel inside the mine.
[0052] In view of this, an optional embodiment of the present invention provides a method for determining waiting time, which can determine the waiting time of personnel in the mine.
[0053] Figure 2 This is a schematic diagram of the positioning coordinates of the target vehicle provided by an optional embodiment of the present invention. Figure 2 The point in the diagram represents the two-dimensional coordinate position of the target vehicle, such as... Figure 2 As shown, the two-dimensional coordinates of the target vehicle can be determined at regular intervals, thus determining the target vehicle's position on the predetermined driving route in real time.
[0054] Figure 3 This is a schematic diagram of two roads provided in an optional embodiment of the present invention. Figure 3 In the middle: the wellhead, working face 1, and working face 2 are three locations; waiting screen 1 and waiting screen 2 are two target waiting locations, such as... Figure 3 As shown in the figure, there are two roads: the road between the wellhead and working face 1, and the road between the wellhead and working face 2. There are four routes in the figure: wellhead to working face 1, wellhead to working face 2, working face 1 to wellhead, and working face 2 to wellhead.
[0055] To calculate the distance from the vehicle's current location to the LED bus stop screen (equivalent to the target bus stop location mentioned above) in real time, route planning is first required. This means knowing the driving route from the manhole to each LED bus stop screen, as well as information on all the turning points encountered. Figure 4 This is a schematic diagram of the route from the wellhead to the LED waiting screen provided in an optional embodiment of the present invention. Figure 4 In this context, the wellhead and the main tunnel are two locations, and the route is from the wellhead to the main tunnel. Figure 4As shown, there are three straight sections from the wellhead to the LED waiting screen, requiring two turns.
[0056] This optional implementation divides the driving route into several related quadrilaterals according to the inflection points. Figure 5 This is a schematic diagram of multiple quadrilateral regions provided in an optional embodiment of the present invention. Figure 5 In the diagram, the wellhead and the main tunnel are two locations; A, B, C, D, E, F, G, and H are all corner points; and quadrilaterals ABCD, CDFE, and EFGH are three quadrilateral regions. Figure 5 As shown, based on the predetermined travel route from the wellhead to the main tunnel, three quadrilateral regions are constructed. Quadrilateral region ABCD is adjacent to quadrilateral region CDFE by one side CD, and quadrilateral region CDFE is adjacent to quadrilateral region EFGH by one side EF. Multiple corner points can be determined as points A, C, F and H, and multiple corner points can be determined as points B, D, E and G.
[0057] Figure 6 This is a schematic diagram of multiple corner points provided by an optional embodiment of the present invention. Figure 6 In the diagram, there are multiple corner points: A, C, F, and H. The coordinates of point A are (x1, y1), the coordinates of point C are (x2, y2), the coordinates of point F are (x3, y3), and the coordinates of point H are (x4, y4). Figure 6 As shown, the target vehicle's planned route is from point A to point C, then from point C to point F, and finally from point F to point H. After determining the planned route and multiple corner points, to determine the target distance, the planned route must first be segmented. That is, the total length of the planned route is divided into several line segments according to the multiple corner points. Assuming point A is the manhole cover and point H is the LED bus stop screen, the distance from the manhole cover to the LED bus stop screen is the sum of the lengths of each line segment, namely the lengths of line segments AC, CF, and FH. According to the formula for the distance between two points:
[0058]
[0059]
[0060]
[0061] The distance from the wellhead to the waiting screen can be obtained as |AC|+|CF|+|FH|.
[0062] In practical applications, it is necessary to determine the distance from the vehicle's current location to the LED bus stop screen, and to dynamically calculate the distance as the vehicle moves. The steps to determine the target distance and waiting time from the target vehicle to the LED bus stop screen are as follows:
[0063] S1, acquiring the two-dimensional coordinate position, license plate number, speed and predetermined driving route of vehicles in a mine.
[0064] wherein, the vehicle speed V is obtained. If the real vehicle speed can be obtained through the on-board diagnostic system OBD, the OBD data shall be adopted as the vehicle speed V. If no OBD data can be obtained, the vehicle speed can be calculated by the following method:
[0065] Continuously acquiring the last 10 two-dimensional coordinate positions of the target vehicle: p1(x1,y1), p2(x2,y2), ..., p10(x10,y10) and storing them in a coordinate array, and simultaneously storing the time t1, t2, ..., t10 when each two-dimensional coordinate position is acquired in a time array. According to the method for calculating distance between two points, the distances between P1P2, P2P3, ..., P9P10 are calculated sequentially, and the 9 distances among the 10 coordinates obtained are added to obtain the total distance L. The elapsed time T=t10-t1. According to speed=distance / time, V=L / T is obtained. When the vehicle moves forward continuously, the latest 10 coordinates are always stored in the coordinate array (discarding the first coordinate and additionally storing the latest coordinate). Meanwhile, the acquisition time of the latest 10 coordinates is always stored in the time array (discarding the first time and additionally storing the latest time).
[0066] S2, determining a plurality of closed areas according to the predetermined driving route.
[0067] as Figure 6 shown, assuming Figure 6 the route shown in is the predetermined driving route, point A and point C are a set of adjacent corner points, point C and point F are a set of adjacent corner points, and point F and point H are a set of adjacent corner points. Taking the set of adjacent corner points of point A(x1,y1) and point C(x2,y2) as an example, the method for determining the coordinates of 4 vertices of a closed area with the line segment AC as the diagonal is described as follows:
[0068] Calculating the x-coordinates and y-coordinates of the 4 vertices respectively. If x1>x2, the x-coordinates of the 4 vertices are sequentially: {x2, x1, x1, x2}; if x1<x2, the x-coordinates of the 4 vertices are sequentially: {x1, x2, x2, x1}. If y1>y2, the y-coordinates of the 4 vertices are sequentially: {y2, y2, y1, y1}; if y1<y2, the y-coordinates of the 4 vertices are sequentially: {y1, y1, y2, y2}.
[0069] Combining the x-coordinates and y-coordinates in order to obtain the 4 vertex coordinates of the closed area: {(x2,y2), (x1,y2), (x1,y1), (x2,y1)}, and the closed area can be determined according to the 4 vertex coordinates. By analogy, a plurality of closed areas can be determined according to multiple sets of adjacent corner points.
[0070] S3 determines the target closed region from multiple closed regions based on two-dimensional coordinate positions.
[0071] That is, based on the target vehicle's current two-dimensional coordinates, determine which of several closed regions the target vehicle belongs to. Iterate through all closed regions using the target vehicle's current two-dimensional coordinates, and call the region determination function in the system function library to determine whether a point is within a closed region to obtain the closed region the vehicle is currently in.
[0072] S4, determine the distance L1 from the target vehicle's current 2D coordinate position to the first corner point. For example: if the target vehicle is currently in the closed area formed by points A and C, the distance L1 to be calculated is the distance from the target vehicle's current 2D coordinate position to corner point C. If the target vehicle is currently in the closed area formed by points C and F, the distance L1 to be calculated is the distance from the target vehicle's current 2D coordinate position to corner point F.
[0073] S5, Determine the target distance. This is calculated by adding the lengths of all line segments from the first corner point of the target vehicle's current 2D coordinate position to the LED waiting screen to L1. For example: if the vehicle is currently in the closed area formed by points A and C, the target distance = L1 (same as the corner point distance) + the length of line segment CF (same as the diagonal distance) + the length of line segment FH (same as the diagonal distance); if the vehicle is currently in the closed area formed by points F and H, the target distance = L1 (the distance from the 2D coordinate position to the target waiting position).
[0074] S6 calculates the waiting time for the target vehicle to reach the LED bus stop screen by dividing the target distance by the vehicle speed. The license plate number, target distance, and waiting time information are then combined and displayed on the LED bus stop screen.
[0075] S7: During the movement of the target vehicle, after obtaining the new coordinates of the vehicle each time, repeat S2, S3, S4, S5, and S6 to complete the function of real-time updating of information on the LED waiting screen.
[0076] The above-described optional implementation methods can accurately and quickly determine the waiting time of personnel in the mine, avoiding the beneficial effect of personnel waiting blindly. This solves the problem in related technologies where poor signal strength and winding roads in mines lead to large errors in determining the road segment to which a vehicle belongs, resulting in inaccurate waiting times.
[0077] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0078] It should also be noted that while the foregoing method embodiments are applied to mining operations, those skilled in the art should understand that the present invention is not limited to a single scenario. The methods described herein can be applied to tunnel operations, such as those in rail transit. They can be widely extended to various scenarios for implementing the methods provided in this application.
[0079] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.
[0080] Example 2
[0081] According to an embodiment of the present invention, an apparatus for implementing the above-described method for determining waiting time is also provided. Figure 7 This is a structural block diagram of a waiting time determination device according to an embodiment of the present invention, such as... Figure 7 As shown, the device includes: an acquisition module 702, a first determination module 704, a second determination module 706, a third determination module 708, and a fourth determination module 710. The device will be described in detail below.
[0082] The acquisition module 702 is used to acquire the two-dimensional coordinate position of the target vehicle within the mine, the vehicle speed of the target vehicle, and the predetermined driving route of the target vehicle, wherein the two-dimensional coordinate position is obtained based on a coordinate system established with the predetermined position as the origin; the first determination module 704 is connected to the acquisition module 702 and is used to determine multiple closed areas based on the predetermined driving route; the second determination module 706 is connected to the first determination module 702 and is used to determine a target closed area from the multiple closed areas based on the two-dimensional coordinate position; the third determination module 708 is connected to the second determination module 706 and is used to determine the target distance from the target vehicle to the target waiting position based on the two-dimensional coordinate position and the target closed area; the fourth determination module 710 is connected to the third determination module 708 and is used to determine the waiting time from the target vehicle to the target waiting position based on the vehicle speed and the target distance.
[0083] It should be noted that the above-mentioned acquisition module 702, first determination module 704, second determination module 706, third determination module 708 and fourth determination module 710 correspond to steps S102 to S110 in the method for determining waiting time. The multiple modules and the corresponding steps implement the same instances and application scenarios, but are not limited to the content disclosed in the above embodiment 1.
[0084] Example 3
[0085] According to another aspect of the present invention, an electronic device is also provided, comprising: a processor; and a memory for storing processor-executable instructions, wherein the processor is configured to execute instructions to implement the waiting time determination method of any of the above embodiments.
[0086] Example 4
[0087] According to another aspect of the present invention, a computer-readable storage medium is also provided, which, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the above-described waiting time determination methods.
[0088] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0089] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0090] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0091] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0092] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0093] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0094] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for determining waiting time, characterized in that, include: The two-dimensional coordinate position of the target vehicle in the mine, the vehicle speed of the target vehicle, and the predetermined driving route of the target vehicle are obtained, wherein the two-dimensional coordinate position is obtained based on a coordinate system established with the predetermined position as the origin; Based on the predetermined driving route, multiple closed areas are identified; Based on the two-dimensional coordinate position, a target closed region is determined from the plurality of closed regions; Based on the two-dimensional coordinates and the target enclosed area, the target distance from the target vehicle to the target waiting location is determined. Based on the vehicle speed and the target distance, determine the waiting time for the target vehicle to travel to the target waiting location; The step of determining multiple closed areas based on the predetermined driving route includes: constructing multiple quadrilateral areas corresponding to the predetermined driving route, wherein each quadrilateral area has at least one side adjacent to another quadrilateral area; determining multiple corner points corresponding to the predetermined driving route within the multiple quadrilateral areas, wherein two corner points located within a quadrilateral area are diagonally related; and determining the multiple closed areas based on the multiple corner points. The step of determining the multiple closed regions based on the multiple corner points includes: determining multiple sets of adjacent corner points among the multiple corner points; determining the corner point coordinate positions corresponding to the multiple sets of adjacent corner points respectively, wherein the corner point coordinate positions are obtained based on the coordinate system established with the predetermined position as the origin; and determining the multiple closed regions based on the corner point coordinate positions corresponding to the multiple sets of adjacent corner points respectively.
2. The method according to claim 1, characterized in that, After determining the waiting time for the target vehicle to reach the target waiting location based on the vehicle speed and the target distance, the method further includes: If a waiting screen device is installed at the target waiting location, the target distance and the waiting time are sent to the waiting screen device so that the target distance and the waiting time are displayed on the waiting screen device.
3. The method according to claim 2, characterized in that, After determining the waiting time for the target vehicle to reach the target waiting location based on the vehicle speed and the target distance, the method further includes: When there are multiple target vehicles, obtain the license plate numbers corresponding to each target vehicle. Multiple vehicle information messages are sent to the waiting screen device so that the waiting screen of the waiting screen device displays the multiple vehicle information messages. Each of the multiple vehicle information messages includes a license plate number, the target distance to the target vehicle corresponding to the license plate number, and the waiting time.
4. The method according to claim 1, characterized in that, The step of determining the target enclosed region from the plurality of enclosed regions based on the two-dimensional coordinate position includes: Determine the coordinate range of the regions corresponding to the plurality of closed regions respectively; Determine the target coordinate range to which the two-dimensional coordinate position belongs from the range of regional coordinates; The closed region within the coordinate range of the target coordinate range is defined as the target closed region.
5. The method according to claim 1, characterized in that, Determining the target distance from the target vehicle to the target waiting location based on the two-dimensional coordinate position and the target enclosed area includes: Given that the plurality of enclosed areas have a predetermined order, the target enclosed location is determined to be located in the target order of the plurality of enclosed areas. When the target order is the last one, the distance from the two-dimensional coordinate position to the target waiting position is determined as the target distance.
6. The method according to claim 5, characterized in that, Also includes: If the target order is not the last order, determine the corner distance from the two-dimensional coordinate position to the target corner point in the target closed area, and the diagonal distance of the closed area arranged after the target closed area; Based on the corner distance and the diagonal distance, the target distance for the target vehicle to travel to the target waiting position is determined.
7. The method according to any one of claims 1 to 6, characterized in that, Obtaining the predetermined driving route of the target vehicle includes: Obtain the computer-aided design CAD drawings of the management software corresponding to the mine, as well as the target driving task of the target vehicle; Based on the CAD drawing, determine the route layout corresponding to the mine; Based on the target driving task, the predetermined driving route of the target vehicle is determined from the route layout.
8. A device for determining waiting time, characterized in that, include: The acquisition module is used to acquire the two-dimensional coordinate position of the target vehicle in the mine, the vehicle speed of the target vehicle, and the predetermined driving route of the target vehicle, wherein the two-dimensional coordinate position is obtained based on a coordinate system established with the predetermined position as the origin; The first determining module is used to determine multiple closed areas based on the predetermined driving route; The second determining module is used to determine the target closed region from the plurality of closed regions based on the two-dimensional coordinate position; The third determining module is used to determine the target distance from the target vehicle to the target waiting position based on the two-dimensional coordinate position and the target enclosed area; The fourth determining module is used to determine the waiting time for the target vehicle to travel to the target waiting location based on the vehicle speed and the target distance; The first determining module is further configured to construct multiple quadrilateral regions corresponding to the predetermined driving route, wherein each quadrilateral region is adjacent to at least one other quadrilateral region by one side; determine multiple corner points corresponding to the predetermined driving route within the multiple quadrilateral regions, wherein two corner points located within a quadrilateral region are diagonally related; and determine multiple closed regions based on the multiple corner points. The first determining module is further configured to determine multiple sets of adjacent corner points among the multiple corner points; determine the corner point coordinate positions corresponding to the multiple sets of adjacent corner points respectively, wherein the corner point coordinate positions are obtained based on the coordinate system established with the predetermined position as the origin; and determine the multiple closed regions based on the corner point coordinate positions corresponding to the multiple sets of adjacent corner points respectively.
Citation Information
Patent Citations
Method for constructing simulated vehicle ring-entering path at signal-controlled roundabout
CN113152180A